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ů.

File:
1 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);
Note: See TracChangeset for help on using the changeset viewer.