<commit_before><?
require_once('php/classes/member.php');

$profileEdited = new Member($_GET['member']);
if (!$currentUser->isAdmin() || !$profileEdited->exists()) {
  $profileEdited = $currentUser;
}

?><div class="row">
  <div class="large-12 columns">
    <h1>Edit Profile Picture: <?=$profileEdited->rcsid()?></h1>
    <p>This picture is displayed publicly on the "About Us" page:</p>
    <img src="<?=$profileEdited->photoURL()?>" alt="<?=$profileEdited->fullName()?>">
    <p>The new image must be a JPEG (*.jpg) file smaller than 1 MB.</p>
    <form enctype="multipart/form-data" action="post.php" method="post">
      <input type="hidden" name="rcsid" value="<?=$profileEdited->rcsid()?>">
      <input type="hidden" name="MAX_FILE_SIZE" value="1048576">
      <div class="row">
        <div class="medium-8 columns">
          <input name="new_profile_photo" type="file">
          <button type="submit" name="action"
            value="profile_photo_edit">Upload</button>
        </div>
      </div>
    </form>
  </div>
</div>
<commit_msg>Fix height of photo in profile picture edit page<commit_after><?
require_once('php/classes/member.php');

$profileEdited = new Member($_GET['member']);
if (!$currentUser->isAdmin() || !$profileEdited->exists()) {
  $profileEdited = $currentUser;
}

?><div class="row">
  <div class="large-12 columns">
    <h1>Edit Profile Picture: <?=$profileEdited->rcsid()?></h1>
    <p>This picture is displayed publicly on the "About Us" page:</p>
    <img class="editing" src="<?=$profileEdited->photoURL()?>" alt="<?=$profileEdited->fullName()?>">
    <p>The new image must be a JPEG (*.jpg) file smaller than 1 MB.</p>
    <form enctype="multipart/form-data" action="post.php" method="post">
      <input type="hidden" name="rcsid" value="<?=$profileEdited->rcsid()?>">
      <input type="hidden" name="MAX_FILE_SIZE" value="1048576">
      <div class="row">
        <div class="medium-8 columns">
          <input name="new_profile_photo" type="file">
          <button type="submit" name="action"
            value="profile_photo_edit">Upload</button>
        </div>
      </div>
    </form>
  </div>
</div>

{'fraction_non_alphanumeric': 0.200371920037192, 'fraction_numerical': 0.01208740120874012, 'mean_word_length': 4.051643192488263, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 69, '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': '814039', 'n_tokens_mistral': 710, 'n_tokens_neox': 705, 'n_words': 157}