Legend:
- Unmodified
- Added
- Removed
-
gm.php
r11 r14 17 17 18 18 <?php 19 include 'administrace/SubFiles/DatabaseConection.php'; 20 $Database = new Database($DatabaseHost, $DatabaseUser, $DatabasePassword); 21 $Database->SelectDatabase('wow'); 22 23 $ID = $Database->SQLCommand("SELECT * FROM user WHERE ban = 0"); 24 while ($Line = mysql_fetch_array($ID)) { 19 $Database->select_db('wow'); 20 $Result = $Database->query('SELECT * FROM user WHERE ban = 0'); 21 while ($Line = $Result->fetch_array()) 22 { 25 23 echo '<table border="0">'; 26 24 echo '<tr><td><p>Pøezdívka:</p></td>';; … … 36 34 } 37 35 $Acc = $Line['AccID']; 38 $Database-> SelectDatabase('mangos');36 $Database->select_db('mangos'); 39 37 if ($Acc <> '0') { 40 38 echo '<tr><td><p>GM Postavy ve høe:</p></td>'; 41 39 echo '<td><p><b>'; 42 $IDMangos = $Database->SQLCommand("SELECT * FROM `character` WHERE account = '$Acc'"); 43 while ($LineMangos = mysql_fetch_array($IDMangos)) { 40 $ResultMangos = $Database->query('SELECT * FROM `character` WHERE account = "'.$Acc.'"'); 41 while ($LineMangos = $ResultMangos->fetch_array()) 42 { 44 43 if ($LineMangos['online'] == 1) 45 44 echo $LineMangos['name'].'(online) ';
Note:
See TracChangeset
for help on using the changeset viewer.