From: Andrew Dolgov Date: Thu, 28 Mar 2013 09:19:28 +0000 (+0400) Subject: update utility.css related stuff some more X-Git-Tag: 1.7.6~209 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=483f15d5380425d00d31a1b6dbedcefa27b76d7e;p=tt-rss.git update utility.css related stuff some more --- diff --git a/classes/handler/public.php b/classes/handler/public.php index 84d6aa18..5adb3ab6 100644 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -740,17 +740,17 @@ class Handler_Public extends Handler { "; print ''; - print "

".__("Reset password")."

"; + print "

".__("Password recovery")."

"; print "
"; - print "

".__("You will need to provide valid account name and email. New password will be sent on your email address.")."

"; - @$method = $_POST['method']; if (!$method) { $secretkey = uniqid(); $_SESSION["secretkey"] = $secretkey; + print_notice(__("You will need to provide valid account name and email. New password will be sent on your email address.")); + print "
"; print ""; print ""; @@ -785,7 +785,10 @@ class Handler_Public extends Handler { if (($test != 4 && $test != 'four') || !$email || !$login) { print_error(__('Some of the required form parameters are missing or incorrect.')); - print "

".__("Go back")."

"; + print " + + +
"; } else if ($_SESSION["secretkey"] == $secretkey) { @@ -797,16 +800,30 @@ class Handler_Public extends Handler { Pref_Users::resetUserPassword($this->link, $id, false); - print "

".__("Completed.")."

"; + print "

"; + + print_notice("Completed."); + + print "

+ +
"; } else { print_error(__("Sorry, login and email combination not found.")); - print "

".__("Go back")."

"; + + print "
+ + +
"; + } } else { print_error(__("Form secret key incorrect. Please enable cookies and try again.")); - print "

".__("Go back")."

"; + print "
+ + +
"; } diff --git a/classes/pref/users.php b/classes/pref/users.php index 45260fd9..5b5120e1 100644 --- a/classes/pref/users.php +++ b/classes/pref/users.php @@ -290,7 +290,7 @@ class Pref_Users extends Handler_Protected { if ($show_password) { print T_sprintf("Changed password of user %s to %s", $login, $tmp_user_pwd); } else { - print T_sprintf("Sending new password of user %s to %s", $login, $email); + print_notice(T_sprintf("Sending new password of user %s to %s", $login, $email)); } require_once 'classes/ttrssmailer.php'; diff --git a/utility.css b/utility.css index bdf4fde5..d79a9daa 100644 --- a/utility.css +++ b/utility.css @@ -8,7 +8,7 @@ body { } form { - margin : 0px; + margin : 10px 0px 0px 0px; padding : 0px; } @@ -38,6 +38,8 @@ div.insensitive-small { .floatingLogo { float : right; + position : relative; + top : -10px; } a { @@ -75,10 +77,11 @@ div.warning img, div.notice img, div.error img { } h1 { - color : black; + color : #88b0f0; font-size : 32px; font-family : serif; - /* text-shadow : 2px 2px 2px #f0f0f0; */ + margin : 20px 0px 5px 0px; + text-shadow : 2px 2px 2px #fff; } h2 {