Changeset 73 for minimanager/register.php
- Timestamp:
- Sep 15, 2007, 9:59:22 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
minimanager/register.php
r60 r73 13 13 // DO REGISTER 14 14 //##################################################################################################### 15 function doregister(){ 15 function doregister() 16 { 16 17 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; 18 19 19 20 if ( empty($_POST['pass']) || empty($_POST['email']) || empty($_POST['username']) ) { … … 21 22 } 22 23 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 23 28 if ($disable_acc_creation) redirect("register.php?err=4"); 24 29
Note:
See TracChangeset
for help on using the changeset viewer.