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/cleanup.php

    r19 r142  
    6262//########################################################################################################
    6363function 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;
    6565
    6666 if( empty($_GET['cleanup_by']) || empty($_GET['cleanup_sign']) ) redirect("cleanup.php?error=1");
     
    7676 // clean by lvl
    7777 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']);
    7979
    8080 $result = $sql->query("SELECT guid FROM `character` WHERE SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', 35), ' ', -1) $cleanup_sign $cleanup_value");
     
    241241//clean chars with given total time played
    242242case "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']);
    244244
    245245 $result = $sql->query("SELECT guid FROM `character` WHERE totaltime $cleanup_sign $cleanup_value");
     
    333333 while($acc = $sql->fetch_row($result)){
    334334        $total_chars_in_acc = 0;
    335         foreach ($mangos_db as $db){
     335        foreach ($characters_db as $db){
    336336                $sql->connect($db['addr'], $db['user'], $db['pass'], $db['name']);
    337337
     
    401401//guild  without chars or specified number of chars
    402402case "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']);
    404404
    405405 $result = $sql->query("SELECT guildid FROM guild");
     
    481481//################################################################################################
    482482function 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;
    485485       
    486486 if (!isset($_POST['type']) || $_POST['type'] === '') redirect("cleanup.php?error=1");
Note: See TracChangeset for help on using the changeset viewer.