]> git.wh0rd.org - tt-rss.git/commitdiff
registration script UI tweak
authorAndrew Dolgov <fox@bah.spb.su>
Mon, 19 Jan 2009 07:19:05 +0000 (08:19 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Mon, 19 Jan 2009 07:19:05 +0000 (08:19 +0100)
register.php

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