"; $subject = "Jpmaster77's Site - Welcome!"; $body = $user.",\n\n" ."Welcome! You've just registered at Jpmaster77's Site " ."with the following information:\n\n" ."Username: ".$user."\n" ."Password: ".$pass."\n\n" ."If you ever lose or forget your password, a new " ."password will be generated for you and sent to this " ."email address, if you would like to change your " ."email address you can do so by going to the " ."My Account page after signing in.\n\n" ."- Jpmaster77's Site"; //return mail($email,$subject,$body,$from); } /** * sendNewPass - Sends the newly generated password * to the user's email address that was specified at * sign-up. */ function sendNewPass($user, $email, $pass){ $from = "From: ".EMAIL_FROM_NAME." <".EMAIL_FROM_ADDR.">"; $subject = "علي فرزات - تغيير كلمة المرور"; $body = $user.",\n\n" ."كلمة المرور الجديدة" ." " ."\n\n" ."Username: ".$user."\n" ."New Password: \n\n".$pass."\n\n" ."بامكانك تغيير كلمة المرور من اعدادات حسابك بعد تسجيل الدخول"; return mail($email,$subject,$body,$from); } }; /* Initialize mailer object */ $mailer = new Mailer; ?> values = $_SESSION['value_array']; $this->errors = $_SESSION['error_array']; $this->num_errors = count($this->errors); unset($_SESSION['value_array']); unset($_SESSION['error_array']); } else{ $this->num_errors = 0; } } /** * setValue - Records the value typed into the given * form field by the user. */ function setValue($field, $value){ $this->values[$field] = $value; } /** * setError - Records new form error given the form * field name and the error message attached to it. */ function setError($field, $errmsg){ $this->errors[$field] = $errmsg; $this->num_errors = count($this->errors); } /** * value - Returns the value attached to the given * field, if none exists, the empty string is returned. */ function value($field){ if(array_key_exists($field,$this->values)){ return htmlspecialchars(stripslashes($this->values[$field])); }else{ return ""; } } /** * error - Returns the error message attached to the * given field, if none exists, the empty string is returned. */ function error($field){ if(array_key_exists($field,$this->errors)){ return "".$this->errors[$field].""; }else{ return ""; } } /* getErrorArray - Returns the array of error messages */ function getErrorArray(){ return $this->errors; } }; ?>
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/aliferz/public_html/include/mailer.php:48) in /home/aliferz/public_html/include/session.php on line 59

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/aliferz/public_html/include/mailer.php:48) in /home/aliferz/public_html/include/session.php on line 59

Fatal error: Class 'Form' not found in /home/aliferz/public_html/include/session.php on line 421