email_send_new_pw_notification($uid, $fuid, $t_new_password); html_draw_top("title={$page_title}", 'class=window_title'); html_display_msg(gettext("Change Password"), gettext("Successfully Changed Password"), 'admin_user.php', 'get', array('back' => gettext("Back")), false, '_self', 'center'); html_draw_bottom(); exit; } } html_draw_error(gettext("Failed To Change Password"), 'admin_user.php', 'get', array('back' => gettext("Back")), array('uid' => $uid), '_self', 'center'); } } else { if (isset($_POST['delete_user_confirm'])) { if (!session::check_perm(USER_PERM_ADMIN_TOOLS, 0, 0)) { html_draw_error(gettext("You do not have permission to use this section."), 'admin_user.php', 'get', array('back' => gettext("Back")), array('uid' => $uid), '_self', 'center'); } $delete_content = isset($_POST['delete_content']) && $_POST['delete_content'] == 'Y'; if (admin_delete_user($uid, $delete_content)) { html_draw_top("title={$page_title}", 'class=window_title'); html_display_msg(gettext("Delete User"), gettext("User Successfully Deleted"), 'admin_users.php', 'get', array('back' => gettext("Back")), false, '_self', 'center'); html_draw_bottom(); exit; } else { html_draw_error(gettext("Failed To Delete User"), 'admin_user.php', 'get', array('back' => gettext("Back")), array('uid' => $uid), '_self', 'center'); } } else { if (isset($_POST['delete_posts_confirm'])) { if ($user_logon = user_get_logon($uid)) { if (admin_delete_users_posts($uid)) { admin_add_log_entry(DELETE_ALL_USER_POSTS, array($user_logon)); html_draw_top("title={$page_title}", 'class=window_title'); html_display_msg(gettext("Delete posts"), gettext("Posts were successfully deleted"), 'admin_user.php', 'get', array('back' => gettext("Back")), false, '_self', 'center'); html_draw_bottom();
if ($flag == 0 and $mapid > 0) { // вещи в продаже нет. выкидываем на карту list($dim_x, $dim_y) = mysql_fetch_array(myquery("SELECT xpos,ypos FROM game_maze WHERE map_name={$mapid} ORDER BY xpos DESC, ypos DESC LIMIT 1")); $sellab = myquery("SELECT xpos,ypos FROM game_maze WHERE (move_up+move_down+move_left+move_right)<=1 AND map_name={$mapid} AND (xpos<>0 AND ypos<>0) AND (xpos<>{$dim_x} AND ypos<>{$dim_y})"); $all = mysql_num_rows($sellab); $r = mt_rand(0, $all - 1); mysql_data_seek($sellab, $r); $pos_array = mysql_fetch_assoc($sellab); $posx = $pos_array['xpos']; $posy = $pos_array['ypos']; $up = myquery("UPDATE game_items SET map_name={$mapid}, map_xpos={$posx}, map_ypos={$posy}, user_id=0, priznak=2, item_cost=0, ref_id=1 WHERE id='" . $item['id'] . "'"); } else { // продаетс¤ в магазинах. удал¤ем $del = myquery("delete from game_items where id='" . $item['id'] . "'"); } } } if (admin_delete_user($user['user_id']) == 1) { echo '<center>»грок успешно удален из базы данных</center>'; echo '<meta http-equiv="refresh" content="1;url=?opt=main&option=users_del">'; } else { echo 'ѕроизошла ошибка при удалении игрока'; } } else { echo '<center>»грок не найден'; } } } if (function_exists("save_debug")) { save_debug(); }