Changeset 15


Ignore:
Timestamp:
Aug 12, 2007, 2:30:23 AM (17 years ago)
Author:
george
Message:

Do konfigurace přidána položka Mangos-ClientVersion, která obsahuje číslo verze hry. Údaj se zobrazuje na úvodní stránce v tabulce.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • config.sample.php

    r14 r15  
    1616    'SilverDBVersion' => '0.7',
    1717    'SilverDBRevision' => '204',
     18    'ClientVersion' => '2.1.3',
    1819  ),
    1920  'Web' => array(
  • css/style.css

    r14 r15  
    152152.MiniTable
    153153{
    154   width: 250px;
     154  width: 220px;
    155155  color: white;
    156156  font-size: 14px;
     157  text-align: center;
    157158}
    158159
  • index.php

    r14 r15  
    2727<div align="center">
    2828<table class="MiniTable" border="1" cellspacing="0" cellpadding="2">
    29 <tr><th>Emulátor</th><td>MaNGOS TBC</td></tr>
     29<tr><th>Emulátor</th><td>MaNGOS</td></tr>
     30<tr><th>Verze hry</th><td><?php echo($Config['Mangos']['ClientVersion']); ?></td></tr>
    3031<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>
    31 <tr><th>Online hráèù</th><td><a href="<?php echo('http://'.$WoWServer); ?>/online_player.php"><? echo(file_get_contents('http://'.$WoWServer.'/mangos/players.php')); ?></a></td></tr>
     32<tr><th>Online hráèù</th><td><a href="<?php echo('http://'.$WoWServer); ?>/online_player.php">
     33<?php
     34$Database->select_db('realmd');
     35$Result = $Database->select('account', 'COUNT(*)', 'online=1');
     36$Row = $Result->fetch_array();
     37$PlayersOnlineCount = $Row[0];
     38echo($PlayersOnlineCount);
     39?>
     40</a></td></tr>
    3241<tr><th>Návod</th><td><a href="jak_zacit.php">zde</a></td></tr>
    3342<tr><th>Stav registrací</th><td><?php echo('POVOLENÉ');
Note: See TracChangeset for help on using the changeset viewer.