Changeset 178 for minimanager/index.php


Ignore:
Timestamp:
Dec 23, 2007, 2:55:36 PM (17 years ago)
Author:
george
Message:

Minimanager 0.1.6b

File:
1 edited

Legend:

Unmodified
Added
Removed
  • minimanager/index.php

    r142 r178  
    1616
    1717$sql = new SQL;
     18
    1819$sql->connect($mangos_db[$realm_id]['addr'], $mangos_db[$realm_id]['user'], $mangos_db[$realm_id]['pass'], $mangos_db[$realm_id]['name']);
    1920
     
    2627        $online = true;
    2728        } else {
    28                 $output .= "<h1><font class=\"error\">{$lang_index['realm']} ".get_realm_name($realm_id)." {$lang_index['offline_or_let_height']}</font></h1>";
     29                $output .= "<h1><font class=\"error\">{$lang_index['realm']} ".get_realm_name($realm_id)." {$lang_index['offline_or_let_high']}</font></h1>";
    2930                $online = false;
    3031                }
     
    6465 }
    6566$output .= "</table><br />";
     67
    6668
    6769//print online chars
     
    110112        while($char = $sql->fetch_row($result)){
    111113
    112                 $guild_name = $sql->fetch_row($sql->query("SELECT `name` FROM `guild` WHERE `guildid`=".$char[9].";"));
    113 
     114                //$guild_name = 'dummy';
    114115                $accid = $char[8];
    115116
    116                 $sql->db("realmd");
     117        $sql->connect($realm_db['addr'], $realm_db['user'], $realm_db['pass'], $realm_db['name']);
     118                //$sql->db($realm_db['name']);
    117119                $gmlvl = $sql->query("SELECT `gmlevel` FROM `account`WHERE `id`='$accid';");
    118120                $gml = $sql->fetch_row($gmlvl);
    119121                $gm = $gml[0];
    120122
    121                 $sql->db($characters_db[$realm_id]['name']);
     123        $sql->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']);
     124                //$sql->db($characters_db[$realm_id]['name']);
     125                $guild_name = $sql->fetch_row($sql->query("SELECT `name` FROM `guild` WHERE `guildid`=".$char[9].";"));
     126
    122127
    123128                $level = $char[7];
Note: See TracChangeset for help on using the changeset viewer.