Changeset 142 for minimanager/user.php


Ignore:
Timestamp:
Nov 23, 2007, 11:29:33 PM (17 years ago)
Author:
george
Message:

Minimanager 0.1.5b

File:
1 edited

Legend:

Unmodified
Added
Removed
  • minimanager/user.php

    r19 r142  
    312312//#####################################################################################################
    313313function 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;
    316316
    317317 $sql = new SQL;
     
    354354//#####################################################################################################
    355355function 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;
    357357
    358358 $sql = new SQL;
     
    419419        fclose($fp);
    420420       
    421         foreach ($mangos_db as $db){
     421        foreach ($characters_db as $db){
    422422                $file_name_new = $acc[0]."_{$db['name']}.sql";
    423423                $fp = fopen("$subdir/$file_name_new", 'w') or die (error($lang_backup['file_write_err']));
     
    430430                while ($char = $sql->fetch_array($all_char_query)){
    431431                                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) {
    433433                                        $char_query = $sql->query("SELECT * FROM $value[0] WHERE $value[1] = $char[0]");
    434434                                        $num_fields = $sql->num_fields($char_query);
     
    595595//###########################################################################################################
    596596function 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;
    598598 
    599599 if (empty($_GET['id'])) redirect("user.php?error=10");
     
    716716    $tot_chars = $sql->result($query, 0);
    717717
    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']);
    719719        $query = $sql->query("SELECT count(*) FROM `character` WHERE account = $id");
    720720        $chars_on_realm = $sql->result($query, 0);
Note: See TracChangeset for help on using the changeset viewer.