$comment = $_POST['ban_comment']; //var_dump($charname, $typeid, $actionid, $reasonid, $time, $comment); if (set_rule_violation($charname, $typeid, $actionid, $reasonid, $time, $comment)) { $errors[] = 'Violation entry has been set for ' . $charname . '.'; } else { $errors[] = 'Website character name: ' . $config['website_char'] . ' does not exist. Create this character name or configure another name in config.php'; $errors[] = 'Website failed to recognize a character it can represent while inserting a rule violation.'; } } else { $errors[] = 'Character ' . $_POST['ban_char'] . ' does not exist.'; } } // delete character: if (empty($_POST['del_name']) === false) { if (user_character_exist($_POST['del_name'])) { user_delete_character(user_character_id($_POST['del_name'])); $errors[] = 'Character ' . $_POST['del_name'] . ' permanently deleted.'; } else { $errors[] = 'Character ' . $_POST['del_name'] . ' does not exist.'; } } // Reset password for char name if (empty($_POST['reset_pass']) === false && empty($_POST['new_pass']) === false) { // reset_pass = character name if (user_character_exist($_POST['reset_pass'])) { $acc_id = user_character_account_id($_POST['reset_pass']); if ($acc_id != $session_user_id) { if ($config['TFSVersion'] == 'TFS_02') { user_change_password($acc_id, $_POST['new_pass']); } else { if ($config['TFSVersion'] == 'TFS_03') {
<?php } break; //end } } } if ($render_page) { $char_count = user_character_list_count($session_user_id); $pending_delete = user_pending_deletes($session_user_id); if ($pending_delete) { foreach ($pending_delete as $delete) { if (new DateTime($delete['time']) > new DateTime()) { echo '<b>CAUTION!</b> Your character with name <b>' . $delete['character_name'] . ' will be deleted on ' . $delete['time'] . '</b>. <a href="myaccount.php?cancel_delete_id=' . $delete['id'] . '">Cancel this operation.</a><br/>'; } else { user_delete_character(user_character_id($delete['character_name'])); mysql_update('UPDATE `znote_deleted_characters` SET `done` = 1 WHERE `id` = ' . $delete['id'] . ''); echo '<b>Character ' . $delete['character_name'] . ' has been deleted</b>. This operation was requested by owner of this account.'; $char_count--; } } } ?> <div id="myaccount"> <h1>My account</h1> <p>Welcome to your account page, <?php echo $user_data['name']; ?> <br> You have <?php echo $user_data['premdays'];