editAvatar.php (1315B)
1 <div class="container"> 2 <h1>Edit your avatar</h1> 3 4 <!-- echo out the system feedback (error and success messages) --> 5 <?php $this->renderFeedbackMessages(); ?> 6 7 <div class="box"> 8 <h3>Upload an Avatar</h3> 9 10 <div class="feedback info"> 11 If you still see the old picture after uploading a new one: Hard-Reload the page with F5! Your browser doesn't 12 realize there's a new image as new and old one have the same filename. 13 </div> 14 15 <form action="<?php echo Config::get('URL'); ?>/login/uploadAvatar_action" method="post" enctype="multipart/form-data"> 16 <label for="avatar_file">Select an avatar image from your hard-disk (will be scaled to 44x44 px, only .jpg currently):</label> 17 <input type="file" name="avatar_file" required /> 18 <!-- max size 5 MB (as many people directly upload high res pictures from their digital cameras) --> 19 <input type="hidden" name="MAX_FILE_SIZE" value="5000000" /> 20 <input type="submit" value="Upload image" /> 21 </form> 22 </div> 23 24 <div class="box"> 25 <h3>Delete your avatar</h3> 26 <p>Click this link to delete your (local) avatar: <a href="<?php echo Config::get('URL'); ?>/login/deleteAvatar_action">Delete your avatar</a> 27 </div> 28 </div>