From 4f2367eea2b3e3085cfcdf285c0f79c22603f9ec Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 21 May 2005 17:08:38 +0000 Subject: [PATCH] r186: Converting to our Message_Reporter::message() system --- register.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/register.php b/register.php index dde6930..84aef95 100755 --- a/register.php +++ b/register.php @@ -125,7 +125,7 @@ if ($_POST['do'] == 'insert') $mail->body = "Hi " . $bugsys->in['displayname'] . " you need to activate your account: http://devbox/bugtraq/register.php?do=activate&userid=" . $userid . "&activator=" . $activationid; $mail->send(); - echo 'You now need to activate your account via email.'; + $message->message('You now need to activate your account via email.'); } else if ($usergroupid == 4 OR $usergroupid == 2) { @@ -139,11 +139,11 @@ if ($_POST['do'] == 'insert') if ($usergroupid == 4) { - echo 'Your account is pending approval.'; + $message->message('Your account is pending approval.'); } else { - echo 'Registration complete!'; + $message->message('Registration complete!'); } } } @@ -156,7 +156,7 @@ if ($_REQUEST['do'] == 'activate') { $db->query("UPDATE " . TABLE_PREFIX . "user SET usergroupid = $useractivation[usergroupid] WHERE userid = " . intval($bugsys->in['userid'])); $db->query("DELETE FROM " . TABLE_PREFIX . "useractivation WHERE userid = " . intval($bugsys->in['userid'])); - echo 'your account is now activated and you can now login'; + $message->message('your account is now activated and you can now login'); } else { -- 2.43.5