Changeset 73 for registrace
- Timestamp:
- Sep 15, 2007, 9:59:22 PM (17 years ago)
- Location:
- registrace
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
registrace/check_registration.php
r67 r73 1 1 <?php 2 2 include('../global.php'); 3 4 $Database->select_db('realmd'); 5 $DbResult = $Database->query('SELECT COUNT(*) FROM account'); 6 $Row = $DbResult->fetch_array(); 7 $AccountCount = $Row[0]; 3 8 4 9 $Database->select_db('statistic'); … … 13 18 fputs($ConfigFile, '$AllowedRegistrationCountPerDay = '.$AllowedRegistrationCountPerDay.';'."\n"); 14 19 fputs($ConfigFile, '$YesterdayMaxPlayers = '.$YesterdayMaxPlayers.'; '."\n"); 20 fputs($ConfigFile, '$MaximumAccountCount = '.($AccountCount+$AllowedRegistrationCountPerDay).'; '."\n"); 15 21 fputs($ConfigFile, '?>'."\n"); 16 22 fclose($ConfigFile); -
registrace/reg_config.php
r67 r73 2 2 $AllowedRegistrationCountPerDay = 0; 3 3 $YesterdayMaxPlayers = 91; 4 $MaximumAccountnCount = 0; 4 5 ?>
Note:
See TracChangeset
for help on using the changeset viewer.