Changeset 142 for minimanager/user.php
- Timestamp:
- Nov 23, 2007, 11:29:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
minimanager/user.php
r19 r142 312 312 //##################################################################################################### 313 313 function dodel_user() { 314 global $lang_global, $lang_user, $output, $realm_db, $ mangos_db, $realm_id, $user_lvl,315 $tab_del_user_ mangos, $tab_del_user_realmd;314 global $lang_global, $lang_user, $output, $realm_db, $characters_db, $realm_id, $user_lvl, 315 $tab_del_user_characters, $tab_del_user_realmd; 316 316 317 317 $sql = new SQL; … … 354 354 //##################################################################################################### 355 355 function backup_user() { 356 global $lang_global, $lang_user, $output, $realm_db, $ mangos_db, $realm_id, $user_lvl,$backup_dir;356 global $lang_global, $lang_user, $output, $realm_db, $characters_db, $realm_id, $user_lvl,$backup_dir; 357 357 358 358 $sql = new SQL; … … 419 419 fclose($fp); 420 420 421 foreach ($ mangos_db as $db){421 foreach ($characters_db as $db){ 422 422 $file_name_new = $acc[0]."_{$db['name']}.sql"; 423 423 $fp = fopen("$subdir/$file_name_new", 'w') or die (error($lang_backup['file_write_err'])); … … 430 430 while ($char = $sql->fetch_array($all_char_query)){ 431 431 fwrite($fp, "-- Dumping data for character $char[1]\n")or die (error($lang_backup['file_write_err'])); 432 foreach ($tab_backup_user_ mangos as $value) {432 foreach ($tab_backup_user_characters as $value) { 433 433 $char_query = $sql->query("SELECT * FROM $value[0] WHERE $value[1] = $char[0]"); 434 434 $num_fields = $sql->num_fields($char_query); … … 595 595 //########################################################################################################### 596 596 function edit_user() { 597 global $lang_global, $lang_user, $output, $realm_db, $ mangos_db, $realm_id, $user_lvl, $user_name, $gm_level_arr;597 global $lang_global, $lang_user, $output, $realm_db, $characters_db, $realm_id, $user_lvl, $user_name, $gm_level_arr; 598 598 599 599 if (empty($_GET['id'])) redirect("user.php?error=10"); … … 716 716 $tot_chars = $sql->result($query, 0); 717 717 718 $sql->connect($ mangos_db[$realm_id]['addr'], $mangos_db[$realm_id]['user'], $mangos_db[$realm_id]['pass'], $mangos_db[$realm_id]['name']);718 $sql->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']); 719 719 $query = $sql->query("SELECT count(*) FROM `character` WHERE account = $id"); 720 720 $chars_on_realm = $sql->result($query, 0);
Note:
See TracChangeset
for help on using the changeset viewer.