"; $subject = "New User Registration at " . Config::get('site_title'); $body = "Thank you for registering\n\n" . "Please keep this e-mail for your records. Your account information is as follows:\n\n" . "----------------------\n" . "Username: $username\n" . "Password: $password\n" . "----------------------\n\n" . "Your account is currently inactive. You cannot use it until you've visited the following link:\n\n" . Config::get('web_path') . "/register.php?action=validate&username=$username&auth=$validation\n\n" . "Thank you for registering\n"; // Send the mail! mail($email,$subject,$body,$headers); // Check to see if the admin should be notified if (Config::get('admin_notify_reg')) { $body = "A new user has registered\n\n" . "The following values were entered.\n\n" . "Username:$username\nFullname:$fullname\nE-mail:$mail\n\n"; mail(Config::get('mail_from'),$subject,$body,$headers); } return true; } // send_confirmation /** * show_agreement * This shows the registration agreement, /config/registration_agreement.php */ public static function show_agreement() { $filename = Config::get('prefix') . '/config/registration_agreement.php'; if (!file_exists($filename)) { return false; } /* Check for existance */ $fp = fopen($filename,'r'); if (!$fp) { return false; } $data = fread($fp,filesize($filename)); /* Scrub and show */ echo $data; } // show_agreement } // end registration class ?>