Changeset 126


Ignore:
Timestamp:
Nov 17, 2007, 3:39:00 PM (17 years ago)
Author:
george
Message:

Přidání volby názvu souboru chyb do configu.
Menší stylové úpravy kódu.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • config.sample.php

    r111 r126  
    3030    'AdminEmail' => 'wow@zdechov.net',
    3131    'ShowError' => 0,
     32    'ErrorLogFile' => 'php_script_error.log',
    3233  ),
    3334);
     
    3637$MangosVerison = $Config['Mangos']['Version'];
    3738$MangosRevision = $Config['Mangos']['Revision'];
    38 $SilverDBVersion = $Config['Mangos']['UDBVersion'];
    39 $SilverDBChangeset = $Config['Mangos']['UDBRevision'];
    4039$WoWServer = $Config['Web']['WoWServerAddr'];
    4140$DatabaseUser = $Config['Database']['User'];
  • error.php

    r54 r126  
    66$Error_Subject = $Config['Web']['Title'].' - Chybové hlá¹ení';          // Název zpráv o chybách
    77$Error_ShowDetails = $Config['Web']['ShowError'];                                                                       // Zobrazit detajly o chyby
    8 $ErrorLogFile = 'php_script_error.log';
     8$ErrorLogFile = $Config['Web']['ErrorLogFile'];
    99
    1010//error_reporting(0);                                   // Vypni interní obsluhu chyb
  • global.php

    r88 r126  
    175175    <td colspan="2">
    176176      <DIV class="DivPaticka">
    177    <A href="administrace/" class="Paticka">#</A>
     177   <A href="'.$Config['Web']['BaseURL'].'administrace/" class="Paticka">#</A>
    178178      | Správce serveru: '.$Config['Web']['Admin'].' | Email: '.$Config['Web']['AdminEmail'].' | Poèet pøístupù: <A HREF="http://counter.cnw.cz/" TARGET=_parent>
    179179      <IMG SRC="http://counter.cnw.cz/monika.cgi?wowzdechov&amp;5&amp;000000&amp;FFFFFF&amp;on" BORDER=0 ALT="CNW:Counter"></A><SCRIPT type="JavaScript">
  • index.php

    r105 r126  
    1 <?
     1<?php
    22  include('global.php');
    33  include('news.php');
    44  ShowHeader();
    5 ?>
    6 
    7 <TABLE width="100%" border="0">
     5  echo('<TABLE width="100%" border="0">
    86  <TR>
    97    <TD id="MainCell" valign="top">
    10 
    118<div>
    129Vítejte na serveru <span class="Nadpis">Heroes of Fantasy</span>, neoficiálním herním serveru hry <a href="http://www.worldofwarcraft.com/">World of Warcraft</a>!<br>
     
    1613</div>
    1714<table id="SplitTable" cellspacing="5" cellpadding="0" width="100%">
    18 <tr><td width="60%" valign="top">
     15<tr><td width="60%" valign="top">');
    1916
    20 <?php
    2117echo(ShowNews());
    22 ?>
     18echo('
    2319</td><td id="EmuInfo" valign="top">
    24 
    2520<br>
    26 
    2721<div align="center">
    2822<table class="MiniTable" border="1" cellspacing="0" cellpadding="2">
    2923<tr><th>Emulátor</th><td>MaNGOS</td></tr>
    30 <tr><th>Verze hry</th><td><?php echo($Config['Mangos']['ClientVersion']); ?></td></tr>
    31 <tr><th>Stav</th><td><?php if(CheckPortStatus($WoWServer, 8085)) echo('<span style="color: #33ff33;">ONLINE</span>'); else echo('<span style="color: red;">OFFLINE</span>'); ?></td></tr>
    32 <tr><th>Online hráèù</th><td><a href="<?php echo('http://'.$WoWServer); ?>/online_player.php">
    33 <?php
     24<tr><th>Verze hry</th><td>');
     25echo($Config['Mangos']['ClientVersion']);
     26echo('</td></tr>'.
     27'<tr><th>Stav</th><td>');
     28if(CheckPortStatus($WoWServer, 8085)) echo('<span style="color: #33ff33;">ONLINE</span>');
     29  else echo('<span style="color: red;">OFFLINE</span>');
     30echo('</td></tr>
     31<tr><th>Online hráèù</th><td><a href="http://'.$WoWServer.'/online_player.php">');
     32
    3433$Database->select_db('realmd');
    3534$Result = $Database->select('account', 'COUNT(*)', 'online=1');
     
    4746$AccountCount = $Row[0];
    4847$Remain = $MaximumAccountCount-$AccountCount;
    49 if($Remain == 0) echo('VYÈERPANÉ'); else echo('POVOLENÉ');
     48if($Remain <= 0) echo('VYÈERPANÉ'); else echo('VOLNÉ');
    5049echo('</td></tr>
    5150<tr><th>Registrace</th><td>');
     
    6564$AccountCount = $Row[0];
    6665echo($AccountCount);
    67 ?>
    68 </td></tr>
    69 <tr><th>Postav</th><td>
    70 <?php
     66
     67echo('</td></tr>
     68<tr><th>Postav</th><td>');
     69
    7170$Database->select_db('mangos');
    7271$Result = $Database->select('character', 'COUNT(*)');
     
    7473$CharactersCount = $Row[0];
    7574echo($CharactersCount);
    76 ?></td></tr>
     75
     76echo('</td></tr>
    7777</table>
    7878</div>
    79 <br>
    80 <?php
     79<br>');
     80
    8181echo('<div>
    8282RSS kanál diskusního fóra: <a href="forum/smartfeed_url.php"><img src="forum/templates/subSilver/images/rss20.png" alt="RSS"></a><br />
     
    8787</div>');
    8888//Dotazník pro nové Administrátory: <a href="FormGM/">Dotazník</a>
    89 ?>
     89
     90echo('
    9091<br>
    9192<a href="gm.php">Administrátoøi</a>
    92 <div>
    93 <?php
     93<div>');
     94
    9495  //include('administrace/SubFiles/DatabaseConection.php');
    9596  $Database->select_db('wow');
     
    9798  while($Row = $Result->fetch_array())
    9899    echo($Row['User'].' - '.$Row['Function'].'<br/>');
    99 ?>
    100 </div>
     100
     101echo('</div>
    101102
    102103</td></tr></table>
     
    109110border="0" width="88" height="60" alt="counter"></A>
    110111
    111 </TABLE>
     112</TABLE>');
    112113
    113 <?
    114114  ShowFooter();
    115115?>
Note: See TracChangeset for help on using the changeset viewer.