Changeset 533 for trunk/pages
- Timestamp:
- Mar 24, 2009, 8:32:29 PM (16 years ago)
- Location:
- trunk/pages
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pages/register.php
r442 r533 1 <?php1 <?php 2 2 3 3 … … 5 5 6 6 include('pages/reg_config.php'); 7 $MaxOnlinePlayers = 300;8 $RequiredOnlinePlayers = 250;9 7 10 8 11 9 12 $db->select_db($db_realmd);13 $DbResult = $db->query('SELECT COUNT(*) FROM account');14 $Row = $DbResult->fetch_array();15 $AccountCount = $Row[0];16 10 17 18 echo('Max. povolený počet online hráčů: '.$MaxOnlinePlayers.'<br/>');19 echo('Požadovaný počet online hráčů: '.$RequiredOnlinePlayers.'<br/>');20 echo('Včera nejvíce hráčů online: '.$YesterdayMaxPlayers.'<br/>');21 22 23 echo('Počet povolených registrací na dnešní den: <strong>'.$AllowedRegistrationCountPerDay.'</strong><br/>');24 $Remain = $MaximumAccountCount - $AccountCount;25 if($Remain < 0) $Remain = 0;26 echo('Dnes zbývá ještě› '.$Remain.' registrací.<br/><br/>');27 11 28 12 if($Remain > 0)
Note:
See TracChangeset
for help on using the changeset viewer.