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
  • minimanager/register.php

    r60 r73  
    1313// DO REGISTER
    1414//#####################################################################################################
    15 function doregister(){
     15function doregister()
     16{
    1617 global $lang_global, $realm_db, $disable_acc_creation, $limit_acc_per_ip, $valid_ip_mask,
    17                 $send_mail_on_creation, $create_acc_locked, $from_mail, $mailer_type, $smtp_cfg, $title;
     18                $send_mail_on_creation, $create_acc_locked, $from_mail, $mailer_type, $smtp_cfg, $title, $MaximumAccountCount;
    1819
    1920 if ( empty($_POST['pass']) || empty($_POST['email']) || empty($_POST['username']) ) {
     
    2122 }
    2223
     24 $result = $sql->query("SELECT COUNT(*) FROM account");
     25 $AccountCount = $sql->result($result, 0, 'COUNT(*)');
     26 if($AccountCount > $MaximumAccountCount) redirect("register.php?err=4");
     27 
    2328 if ($disable_acc_creation) redirect("register.php?err=4");
    2429
Note: See TracChangeset for help on using the changeset viewer.