Changeset 142 for minimanager/cleanup.php
- Timestamp:
- Nov 23, 2007, 11:29:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
minimanager/cleanup.php
r19 r142 62 62 //######################################################################################################## 63 63 function run_cleanup(){ 64 global $lang_cleanup, $lang_global, $output, $realm_db, $ mangos_db, $realm_id, $user_lvl;64 global $lang_cleanup, $lang_global, $output, $realm_db, $characters_db, $realm_id, $user_lvl; 65 65 66 66 if( empty($_GET['cleanup_by']) || empty($_GET['cleanup_sign']) ) redirect("cleanup.php?error=1"); … … 76 76 // clean by lvl 77 77 case "char_lvl": 78 $sql->connect($ mangos_db[$realm_id]['addr'], $mangos_db[$realm_id]['user'], $mangos_db[$realm_id]['pass'], $mangos_db[$realm_id]['name']);78 $sql->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']); 79 79 80 80 $result = $sql->query("SELECT guid FROM `character` WHERE SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', 35), ' ', -1) $cleanup_sign $cleanup_value"); … … 241 241 //clean chars with given total time played 242 242 case "totaltime": 243 $sql->connect($ mangos_db[$realm_id]['addr'], $mangos_db[$realm_id]['user'], $mangos_db[$realm_id]['pass'], $mangos_db[$realm_id]['name']);243 $sql->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']); 244 244 245 245 $result = $sql->query("SELECT guid FROM `character` WHERE totaltime $cleanup_sign $cleanup_value"); … … 333 333 while($acc = $sql->fetch_row($result)){ 334 334 $total_chars_in_acc = 0; 335 foreach ($ mangos_db as $db){335 foreach ($characters_db as $db){ 336 336 $sql->connect($db['addr'], $db['user'], $db['pass'], $db['name']); 337 337 … … 401 401 //guild without chars or specified number of chars 402 402 case "num_of_char_in_guild": 403 $sql->connect($ mangos_db[$realm_id]['addr'], $mangos_db[$realm_id]['user'], $mangos_db[$realm_id]['pass'], $mangos_db[$realm_id]['name']);403 $sql->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']); 404 404 405 405 $result = $sql->query("SELECT guildid FROM guild"); … … 481 481 //################################################################################################ 482 482 function docleanup(){ 483 global $lang_cleanup, $lang_global, $output, $realm_db, $ mangos_db, $realm_id, $user_lvl,484 $tab_del_user_ mangos, $tab_del_user_realmd;483 global $lang_cleanup, $lang_global, $output, $realm_db, $characters_db, $realm_id, $user_lvl, 484 $tab_del_user_characters, $tab_del_user_realmd; 485 485 486 486 if (!isset($_POST['type']) || $_POST['type'] === '') redirect("cleanup.php?error=1");
Note:
See TracChangeset
for help on using the changeset viewer.