Example #1
0
  * we need to check the database for possible existing username first
  * if username exists, error and say "Please choose a different name."
  * if username does not exist, insert user information into database
  * then allow the user to 'click here to login'
  * possibly by logging them in right then and there with their current info
  * and 'click here to login' would just be a link back to index.php
  */
 $fullname = scrub_in($_POST['fullname']);
 $username = scrub_in($_POST['username']);
 $email = scrub_in($_POST['email']);
 $website = scrub_in($_POST['website']);
 $pass1 = scrub_in($_POST['password_1']);
 $pass2 = scrub_in($_POST['password_2']);
 /* If we're using the captcha stuff */
 if (AmpConfig::get('captcha_public_reg')) {
     $captcha = captcha::solved();
     if (!isset($captcha)) {
         Error::add('captcha', T_('Error Captcha Required'));
     }
     if (isset($captcha)) {
         if ($captcha) {
             $msg = "SUCCESS";
         } else {
             Error::add('captcha', T_('Error Captcha Failed'));
         }
     }
     // end if we've got captcha
 }
 // end if it's enabled
 if (AmpConfig::get('user_agreement')) {
     if (!$_POST['accept_agreement']) {
Example #2
0
 public static function check()
 {
     return captcha::solved();
 }
Example #3
0
 function check()
 {
     return captcha::solved();
 }