if (($result = validate($password, "password", 45, 6)) !== true) { $errorText .= "<LI>Your password is {$result}"; } if ($_POST["readTerms"] != "on") { $errorText .= "<LI>Please read the terms and then tick the box to proceed"; } if ($errorText == "") { $query = $db->Query("SELECT * FROM onlineuser WHERE email='" . $db->Escape($email) . "' LIMIT 1"); if ($db->Rows() > 0) { $errorText .= "<LI>The email address you have entered is taken"; } else { $user = new OnlineUser($email, $first_name, $last_name, $password, $address1, $address2, $address3, $postcode, $telephone, $fax, '', 'temp'); if (isSuperUser(false) && $status != "") { $user->user_status = $status; } $userId = $user->Save(); $user = $user->Get($userId); $created = strtotime($user->dt_created); $mail = new Emailer(); $mail->setTo($email); $mail->setFrom($configuration["fromEmail"]); $mail->setSubject("Fastfoodjobsuk Registration"); $url = "http://www.fastfoodjobsuk.co.uk/register_activate.php?email={$email}&code={$created}"; $mail->bodyAdd("Dear {$first_name} {$last_name}"); $mail->bodyAdd(""); $mail->bodyAdd("Thank you for registering with Fast Food Jobs but as we take your privacy seriously, we just wanted to check you did register with our site."); $mail->bodyAdd("In order to gain access to all of the web site functionality please click on here: {$url}"); $mail->bodyAdd(""); $mail->bodyAdd("If you should not have received this e-mail, please click on the e-mail link below and just put \"remove\" in the heading and we will remove your details from our system."); $mail->bodyAdd(""); $mail->bodyAdd("Regards");