Changeset 73 for registrace


Ignore:
Timestamp:
Sep 15, 2007, 9:59:22 PM (17 years ago)
Author:
george
Message:

Oprava: Omezení registrací během dne podle počtu účtů.

Location:
registrace
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • registrace/check_registration.php

    r67 r73  
    11<?php
    22include('../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];
    38
    49$Database->select_db('statistic');
     
    1318fputs($ConfigFile, '$AllowedRegistrationCountPerDay = '.$AllowedRegistrationCountPerDay.';'."\n");
    1419fputs($ConfigFile, '$YesterdayMaxPlayers = '.$YesterdayMaxPlayers.'; '."\n");
     20fputs($ConfigFile, '$MaximumAccountCount = '.($AccountCount+$AllowedRegistrationCountPerDay).'; '."\n");
    1521fputs($ConfigFile, '?>'."\n");
    1622fclose($ConfigFile);
  • registrace/reg_config.php

    r67 r73  
    22$AllowedRegistrationCountPerDay = 0;
    33$YesterdayMaxPlayers = 91;
     4$MaximumAccountnCount = 0;
    45?>
Note: See TracChangeset for help on using the changeset viewer.