Changeset 536 for trunk/pages
- Timestamp:
- Mar 24, 2009, 8:44:09 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pages/register.php
r535 r536 1 1 <?php 2 2 3 4 5 6 include('pages/reg_config.php'); 7 $MaxOnlinePlayers = 300; 8 $RequiredOnlinePlayers = 250; 9 10 11 12 $db->select_db($db_realmd); 13 $DbResult = $db->query('SELECT COUNT(*) FROM account'); 14 $Row = $DbResult->fetch_array(); 15 $AccountCount = $Row[0]; 16 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 < 10) $Remain = 10; 26 echo('Dnes zbývá ještě› '.$Remain.' registrací.<br/><br/>'); 27 28 if($Remain > 0) 29 { 30 $registrace_on = 1; 31 } else echo('<div style="color: red;" align="center"><strong>Registrace vyčerpány</strong></div>'); 32 echo('<br/>'); 33 34 35 if($registrace_on==1): 3 36 $html -> PrgStart(); 4 37 echo "<b>Registrace na server Heroes of Fantasy</b>";
Note:
See TracChangeset
for help on using the changeset viewer.