<commit_before><?php
  if (is_guest()) {
    echo('<p class="qmText">The guest account does not have a profile. If you register a personal account ');
    echo('you will be able to create you own quizzes and see your user information plus statistics here!</p>');
    echo('<br><br><br><br><br><br><br><br>');
    die;
  }

  # PREPROCESS INPUT
  $username = mysql_real_escape_string(canonical_username(get_client_username()));

  # EXECUTE QUERY
  $result = exec_query("SELECT * FROM qmtbl_users WHERE username='$username'");
  $profile = mysql_fetch_assoc($result);

?>

<h2>Profile</h2>

<a href="?action=serve_user_image&username=<?php echo $_COOKIE[QM_COOKIE_NAME__USERNAME] ?>">
<img id="userImage" class="qmProfileImage" src="?action=serve_user_image&username=<?php echo $_COOKIE[QM_COOKIE_NAME__USERNAME] ?>">
</a>

  <label>Username</label>
  <div class="qmFormFieldBox">
    <span class="qm_shadedText"><?php echo stripslashes($profile['username']) ?></span>
  </div>

  <label>Real name</label>
  <div class="qmFormFieldBox">
    <span class="qm_shadedText"><?php echo stripslashes($profile['realname']) ?></span
  </div>

  <label>E-mail</label>
  <div class="qmFormFieldBox"><commit_msg>Fix layout bug by properly closing SPAN element<commit_after><?php
  if (is_guest()) {
    echo('<p class="qmText">The guest account does not have a profile. If you register a personal account ');
    echo('you will be able to create you own quizzes and see your user information plus statistics here!</p>');
    echo('<br><br><br><br><br><br><br><br>');
    die;
  }

  # PREPROCESS INPUT
  $username = mysql_real_escape_string(canonical_username(get_client_username()));

  # EXECUTE QUERY
  $result = exec_query("SELECT * FROM qmtbl_users WHERE username='$username'");
  $profile = mysql_fetch_assoc($result);

?>

<h2>Profile</h2>

<a href="?action=serve_user_image&username=<?php echo $_COOKIE[QM_COOKIE_NAME__USERNAME] ?>">
<img id="userImage" class="qmProfileImage" src="?action=serve_user_image&username=<?php echo $_COOKIE[QM_COOKIE_NAME__USERNAME] ?>">
</a>

  <label>Username</label>
  <div class="qmFormFieldBox">
    <span class="qm_shadedText"><?php echo stripslashes($profile['username']) ?></span>
  </div>

  <label>Real name</label>
  <div class="qmFormFieldBox">
    <span class="qm_shadedText"><?php echo stripslashes($profile['realname']) ?></span>
  </div>

  <label>E-mail</label>
  <div class="qmFormFieldBox">
{'fraction_non_alphanumeric': 0.16810521989313604, 'fraction_numerical': 0.0016440608302507192, 'mean_word_length': 5.994252873563219, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 72, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1178790', 'n_tokens_mistral': 859, 'n_tokens_neox': 848, 'n_words': 176}