Changeset 596 for trunk/pages
- Timestamp:
- May 20, 2009, 8:26:17 AM (16 years ago)
- Location:
- trunk/pages
- Files:
-
- 3 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pages/register.php
r583 r596 1 1 <?php 2 3 include('inc/registration_limit.php'); 4 5 $RegistrationLimit = new RegistrationLimit($db, $server, $Config); 2 6 3 7 function sha_password($account, $password) … … 36 40 37 41 $db->select_db($Config['Mangos']['DatabaseRealmd']); 38 $DbResult = $db->query('SELECT COUNT(*) FROM `account`'); 39 if($DbResult->num_rows >= $Config['Mangos']['MaxAccountCount']) 42 if($RegistrationLimit->GetFreeRegistrationCount() == 0) 40 43 { 41 echo('<div class="h10">Registrace jsou uzavřeny</div>');42 echo('<div class="h1 1">Limit vyčerpán</div>');44 echo('<div class="h10">Registrace pro dnešní den vyčerpány</div>'); 45 echo('<div class="h10">Dnes bylo '.$RegistrationLimit->GetPerDeyRegistrationCount().' volných registrací</div>'); 43 46 } else 44 47 { 45 echo('<div class="h11">Registrace otevřeny</div>'); 48 echo('<div class="h11">Pro tento den je povoleno '.$RegistrationLimit->GetPerDeyRegistrationCount().' volných registrací</div>'); 49 echo('<div class="h11">Zbývá ještě '.$RegistrationLimit->GetFreeRegistrationCount().' volných registrací</div>'); 46 50 echo('<br />'); 47 51
Note:
See TracChangeset
for help on using the changeset viewer.