Changeset 81


Ignore:
Timestamp:
Sep 29, 2007, 3:37:40 PM (17 years ago)
Author:
george
Message:

Oprava: Zobrazování stavu registrací na hlavní stránce.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • index.php

    r71 r81  
    4242<tr><th>Stav registrací</th><td>');
    4343include('registrace/reg_config.php');
    44 if($AllowedRegistrationCountPerDay == 0) echo('VYÈERPANÉ'); else echo('POVOLENÉ');
     44$Database->select_db('realmd');
     45$DbResult = $Database->query('SELECT COUNT(*) FROM account');
     46$Row = $DbResult->fetch_array();
     47$AccountCount = $Row[0];
     48$Remain = $MaximumAccountCount-$AccountCount;
     49if($Remain == 0) echo('VYÈERPANÉ'); else echo('POVOLENÉ');
    4550echo('</td></tr>
    4651<tr><th>Registrace</th><td>');
Note: See TracChangeset for help on using the changeset viewer.