registration script UI tweak

This commit is contained in:
Andrew Dolgov 2009-01-19 08:19:05 +01:00
parent 1da195e277
commit c46a4a050d
1 changed files with 4 additions and 4 deletions

View File

@ -197,16 +197,16 @@
<? } else if ($action == "do_register") { ?> <? } else if ($action == "do_register") { ?>
<p><?php echo __('Processing registration...') ?></p>
<? <?
$login = mb_strtolower(trim(db_escape_string($_REQUEST["login"]))); $login = mb_strtolower(trim(db_escape_string($_REQUEST["login"])));
$email = trim(db_escape_string($_REQUEST["email"])); $email = trim(db_escape_string($_REQUEST["email"]));
$test = trim(db_escape_string($_REQUEST["turing_test"])); $test = trim(db_escape_string($_REQUEST["turing_test"]));
if (!$login || !$email || !$test) { if (!$login || !$email || !$test) {
print "<div class='error'>Please fill in the form.</div>"; print_error(__("Your registration information is incomplete."));
print "<p><a href='register.php'>Return to registration form</a></p>"; print "<p><form method=\"GET\" action=\"tt-rss.php\">
<input type=\"submit\" value=\"".__("Return to Tiny Tiny RSS")."\">
</form>";
return; return;
} }