X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=register.php;h=3694a5e75e108ccc4e38ce2dfd0c70b5b4cc327b;hb=107d0cf39e3801547a9a86b32762b772b25f6953;hp=cc453c0f28714170e4a22acde67f0b0584c5657d;hpb=31303c6bbdaeed42a5cc72bc01f610ed7ca99663;p=tt-rss.git diff --git a/register.php b/register.php index cc453c0f..3694a5e7 100644 --- a/register.php +++ b/register.php @@ -4,6 +4,8 @@ // 1) templates/register_notice.txt - displayed above the registration form // 2) register_expire_do.php - contains user expiration queries when necessary + set_include_path(get_include_path() . PATH_SEPARATOR . "include"); + require_once 'lib/phpmailer/class.phpmailer.php'; $action = $_REQUEST["action"]; @@ -93,7 +95,7 @@ Create new account - + @@ -232,7 +234,7 @@ -
+
"; ?> @@ -245,7 +247,7 @@ if (!$login || !$email || !$test) { print_error(__("Your registration information is incomplete.")); - print "

+ print "

"; return; @@ -260,7 +262,7 @@ if ($is_registered) { print_error(__('Sorry, this username is already taken.')); - print "

+ print "

"; } else { @@ -278,7 +280,7 @@ if (db_num_rows($result) != 1) { print_error(__('Registration failed.')); - print "

+ print "

"; } else { @@ -363,7 +365,7 @@ print_notice(__("Account created successfully.")); - print "

+ print "

"; @@ -373,7 +375,7 @@ } else { print_error('Plese check the form again, you have failed the robot test.'); - print "

+ print "

"; @@ -385,7 +387,7 @@ -
+
"; ?>