diff options
author | Andrew Dolgov <[email protected]> | 2019-02-19 14:59:29 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-02-19 14:59:29 +0300 |
commit | c11f32ac388fd1ac2f7402572db7afad04cd5ce4 (patch) | |
tree | 9130910b23d3bf7202e1819a0acf64d22f0cc8d4 /classes/handler/public.php | |
parent | 4f720f906e1a598d3c18f3de96bca00fa2464549 (diff) |
center and rework some utility screens
Diffstat (limited to 'classes/handler/public.php')
-rwxr-xr-x | classes/handler/public.php | 39 |
1 files changed, 26 insertions, 13 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php index 235aba3c6..aaeee8219 100755 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -781,9 +781,8 @@ class Handler_Public extends Handler { </head> <body class='claro ttrss_utility'> - <img class=\"floatingLogo\" src=\"images/logo_small.png\" - alt=\"Tiny Tiny RSS\"/> - <h1>".__("Subscribe to feed...")."</h1><div class='content'>"; + <div class=\"container\"> + <h1>".__("Subscribe to feed...")."</h1><div class='content'>"; $rc = Feeds::subscribe_to_feed($feed_url); @@ -858,7 +857,7 @@ class Handler_Public extends Handler { <input type=\"submit\" value=\"".__("Return to Tiny Tiny RSS")."\"> </form></p>"; - print "</div></body></html>"; + print "</div></div></body></html>"; } else { render_login_form(); @@ -885,9 +884,8 @@ class Handler_Public extends Handler { echo javascript_tag("lib/prototype.js"); print "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/> - </head><body class='claro ttrss_utility'>"; + </head><body class='claro ttrss_utility'><div class='container'>"; - print '<div class="floatingLogo"><img src="images/logo_small.png"></div>'; print "<h1>".__("Password recovery")."</h1>"; print "<div class='content'>"; @@ -928,12 +926,14 @@ class Handler_Public extends Handler { print_error("Some of the information provided is missing or incorrect."); } + print "<hr/>"; + print "<form method=\"GET\" action=\"index.php\"> <input type=\"submit\" value=\"".__("Return to Tiny Tiny RSS")."\"> </form>"; } else if (!$method) { - print_notice(__("You will need to provide valid account name and email. A password reset link will be sent to your email address.")); + print_notice(__("You will need to provide valid account name and email. Password reset link will be sent to your email address.")); print "<form method='POST' action='public.php'>"; print "<input type='hidden' name='method' value='do'>"; @@ -954,8 +954,10 @@ class Handler_Public extends Handler { print "<input class='input input-text' type='text' name='test' value='' required>"; print "</fieldset>"; - print "<p/>"; + print "<hr/>"; + print "<fieldset>"; print "<button type='submit'>".__("Reset password")."</button>"; + print "</fieldset>"; print "</form>"; } else if ($method == 'do') { @@ -974,13 +976,13 @@ class Handler_Public extends Handler { } else { - print_notice("Password reset instructions are being sent to your email address."); - $sth = $this->pdo->prepare("SELECT id FROM ttrss_users WHERE login = ? AND email = ?"); $sth->execute([$login, $email]); if ($row = $sth->fetch()) { + print_notice("Password reset instructions are being sent to your email address."); + $id = $row["id"]; if ($id) { @@ -1029,6 +1031,8 @@ class Handler_Public extends Handler { print_error("User ID not found."); } + print "<hr/>"; + print "<form method=\"GET\" action=\"index.php\"> <input type=\"submit\" value=\"".__("Return to Tiny Tiny RSS")."\"> </form>"; @@ -1036,6 +1040,8 @@ class Handler_Public extends Handler { } else { print_error(__("Sorry, login and email combination not found.")); + print "<hr/>"; + print "<form method=\"GET\" action=\"public.php\"> <input type=\"hidden\" name=\"op\" value=\"forgotpass\"> <input type=\"submit\" value=\"".__("Go back")."\"> @@ -1047,6 +1053,7 @@ class Handler_Public extends Handler { } print "</div>"; + print "</div>"; print "</body>"; print "</html>"; @@ -1065,7 +1072,7 @@ class Handler_Public extends Handler { <head> <title>Database Updater</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> - <link rel="stylesheet" type="text/css" href="css/default.css"/> + <?php echo stylesheet_tag("css/default.css") ?> <link rel=\"shortcut icon\" type=\"image/png\" href=\"images/favicon.png\"> <link rel=\"icon\" type=\"image/png\" sizes=\"72x72\" href=\"images/favicon-72px.png\"> </head> @@ -1080,8 +1087,7 @@ class Handler_Public extends Handler { } </script> - <div class="floatingLogo"><img src="images/logo_small.png"></div> - + <div class="container"> <h1><?php echo __("Database Updater") ?></h1> <div class="content"> @@ -1122,6 +1128,8 @@ class Handler_Public extends Handler { print_notice("Your Tiny Tiny RSS database is now updated to the latest version."); + print "<hr/>"; + print "<p><form method=\"GET\" action=\"index.php\"> <input type=\"submit\" value=\"".__("Return to Tiny Tiny RSS")."\"> </form>"; @@ -1129,6 +1137,8 @@ class Handler_Public extends Handler { } else { print "<h2>Your database is up to date.</h2>"; + print "<hr/>"; + print "<p><form method=\"GET\" action=\"index.php\"> <input type=\"submit\" value=\"".__("Return to Tiny Tiny RSS")."\"> </form>"; @@ -1154,6 +1164,8 @@ class Handler_Public extends Handler { print_notice("Tiny Tiny RSS database is up to date."); + print "<hr/>"; + print "<p><form method=\"GET\" action=\"index.php\"> <input type=\"submit\" value=\"".__("Return to Tiny Tiny RSS")."\"> </form>"; @@ -1163,6 +1175,7 @@ class Handler_Public extends Handler { ?> </div> + </div> </body> </html> <?php |