Changeset 533
- Timestamp:
- Mar 24, 2009, 8:32:29 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 6 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bug_tracker/funkce.php
r529 r533 40 40 session_regenerate_id(); 41 41 $_SESSION["user"] = $user; 42 $_SESSION["pass"] = $pass;42 $_SESSION["pass"] = $pass; 43 43 } 44 44 … … 151 151 switch ($id): 152 152 case 1: 153 $f = "Alliance"; 154 break; 155 case 2: 153 156 $f = "Horda"; 154 break;155 case 2:156 $f = "Alliance";157 157 break; 158 158 -
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.