aboutsummaryrefslogtreecommitdiffstats
path: root/mod/register.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-08 18:12:52 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-08 18:12:52 -0700
commit9cd9ce9c170fbda524c06f62922cbe33a8fe9b82 (patch)
treead1449e213b199edc3f58f21bf893f5c9aa2ae66 /mod/register.php
parent5ca174ae34edb598e30546e67165b8a2ad77ed59 (diff)
downloadvolse-hubzilla-9cd9ce9c170fbda524c06f62922cbe33a8fe9b82.tar.gz
volse-hubzilla-9cd9ce9c170fbda524c06f62922cbe33a8fe9b82.tar.bz2
volse-hubzilla-9cd9ce9c170fbda524c06f62922cbe33a8fe9b82.zip
update to new function defs
Diffstat (limited to 'mod/register.php')
-rw-r--r--mod/register.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/mod/register.php b/mod/register.php
index 5e1487028..8678614ac 100644
--- a/mod/register.php
+++ b/mod/register.php
@@ -22,10 +22,10 @@ function register_post(&$a) {
default:
case REGISTER_CLOSED:
if((! x($_SESSION,'authenticated') && (! x($_SESSION,'administrator')))) {
- $_SESSION['sysmsg'] .= "Permission denied." . EOL;
+ notice( "Permission denied." . EOL );
return;
}
- $blocked = 0;
+ $blocked = 1;
$verified = 0;
break;
}
@@ -36,7 +36,7 @@ function register_post(&$a) {
$email =notags(trim($_POST['email']));
if((! x($username)) || (! x($email))) {
- $_SESSION['sysmsg'] .= "Please enter the required information.". EOL;
+ notice( "Please enter the required information.". EOL );
return;
}
@@ -53,9 +53,9 @@ function register_post(&$a) {
dbesc($email)
);
if($r !== false && count($r))
- $err .= " This email address is already registered." . EOL;
+ $err .= " This email address is already registered.";
if(strlen($err)) {
- $_SESSION['sysmsg'] .= $err;
+ notice( $err . EOL );
return;
}
@@ -101,7 +101,7 @@ function register_post(&$a) {
$newuid = intval($r[0]['uid']);
}
else {
- $_SESSION['sysmsg'] .= "An error occurred during registration. Please try again." . EOL;
+ notice( "An error occurred during registration. Please try again." . EOL );
return;
}
@@ -117,7 +117,7 @@ function register_post(&$a) {
);
if($r === false) {
- $_SESSION['sysmsg'] .= "An error occurred creating your default profile. Please try again." . EOL ;
+ notice( "An error occurred creating your default profile. Please try again." . EOL );
// Start fresh next time.
$r = q("DELETE FROM `user` WHERE `uid` = %d",
intval($newuid));
@@ -157,11 +157,11 @@ function register_post(&$a) {
}
if($res) {
- $_SESSION['sysmsg'] .= "Registration successful. Please check your email for further instructions." . EOL ;
+ notice( "Registration successful. Please check your email for further instructions." . EOL ) ;
goaway($a->get_baseurl());
}
else {
- $_SESSION['sysmsg'] .= "Failed to send email message. Here is the message that failed. $email_tpl " . EOL;
+ notice( "Failed to send email message. Here is the message that failed. $email_tpl " . EOL );
}
return;