} ?> <div id="AboutMe"> <div class="tables"> <p>Hi <?php echo get_sess_user(); ?> . You can change your password here.</p> <form action="index.php" method="POST"> <table> <tr> <td class="label">Username:</td> <td><input readonly value="<?php echo get_sess_user(); ?> " id="username" type="text" name="username"></td> </tr> <tr> <td class="label">Password:</td> <td><input type="password" name="password" id="changepw1"></td> </tr> <tr> <td class="label">Password again:</td> <td><input type="password" name="password2" id="changepw2"></td> </tr> <tr> <td></td> <td><input type="submit" name="submit" id="changepwsubmit" value="Change password!"></td> </tr>
function check_owner($zone) { return is_adminuser() or $zone['owner'] === get_sess_user(); }
function user_template_list() { global $templates; $templatelist = array(); foreach ($templates as $template) { if (is_adminuser() or isset($template['owner']) and ($template['owner'] == get_sess_user() or $template['owner'] == 'public')) { array_push($templatelist, $template); } } return $templatelist; }