Changeset 410


Ignore:
Timestamp:
Feb 9, 2009, 7:29:09 PM (16 years ago)
Author:
george
Message:
  • Opraveno: Povolování registrací. * Upraveno: Přehozeno pořadí vkládání logů mangosu do databáze. Největší naposled, nemusí se provést díky velikosti a chybě.
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • administrace/process_log.php

    r404 r410  
    4545$Database->query('UPDATE `debug` SET Log="'.$Log.'" WHERE Id='.$InsertId);
    4646//echo($Database->error);
    47 $Log = addslashes(file_get_contents($ErrOutLogFile));
    48 $Database->query('UPDATE `debug` SET ErrorLog="'.$Log.'" WHERE Id='.$InsertId);
    49 //echo($Database->error);
    5047$Log = addslashes(file_get_contents($MangosDbErrorsLogFile));
    5148$Database->query('UPDATE `debug` SET DbErrors="'.$Log.'" WHERE Id='.$InsertId);
     
    6158$Database->query('UPDATE `debug` SET Configuration="'.implode("\n", $Configuration).'" WHERE Id='.$InsertId);
    6259
     60//echo($Database->error);
     61$Log = addslashes(file_get_contents($ErrOutLogFile));
     62$Database->query('UPDATE `debug` SET ErrorLog="'.$Log.'" WHERE Id='.$InsertId);
     63
    6364// Clear log files
    6465unlink($MangosLogFile);
  • guildy.php

    r404 r410  
    7878    while($Member = $Result->fetch_array())
    7979    {
    80       if(array_key_exists($Member['rank']+1, $GuildRanks)) $GuildRank = $GuildRanks[$Member['rank']+1]['rname']; else $GuildRank = ' ';
     80      if(array_key_exists($Member['rank'] + 1, $GuildRanks))
     81        $GuildRank = $GuildRanks[$Member['rank'] + 1]['rname'];
     82        else $GuildRank = ' ';
    8183//    $DataParts = explode(' ', $Member['data']);
    8284//    $Member['level'] .= ','.$DataParts[34];
  • registrace/check_registration.php

    r403 r410  
    22include('../global.php');
    33
    4 $Database->select_db('realmd');
     4$Database->select_db($Config['Mangos']['DatabaseRealmd']);
    55$DbResult = $Database->query('SELECT COUNT(*) FROM account');
    66$Row = $DbResult->fetch_array();
Note: See TracChangeset for help on using the changeset viewer.