From e536e1500970fbe0e30816fa8257f2816eee7efd Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Thu, 13 Aug 2015 14:34:45 +0000 Subject: [PATCH] auth : Add the application name in authentication panel git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2234 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- auth.php | 8 +++++++- authentication.php | 5 +++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/auth.php b/auth.php index 91f8c9d..7f54cdf 100644 --- a/auth.php +++ b/auth.php @@ -6,6 +6,9 @@ /** User authentication (abstract class) */ class auth { + /** The application name */ + public $appName = null; + /** Display the authentication page The message is displayed to the user in case of error The url is the caller url to go back if authentication is correct @@ -28,7 +31,7 @@ class auth background-image: radial-gradient(ellipse at center -60px, #9da1ac 0%,#1c202a 100%); background-color: #eee; }\n"; - $res .= ".form-signin { max-width: 330px;padding:15px;margin:0 auto;}\n"; + $res .= ".form-signin { max-width: 430px;padding:15px;margin:0 auto;}\n"; $res .= ".form-signin .form-signin-heading, .form-signin .checkbox {"; $res .= " margin-bottom: 10px; }\n"; $res .= ".form-signin .checkbox { font-weight: normal; }\n"; @@ -65,11 +68,14 @@ class auth box-shadow: 0px 1px 0px rgba(255, 255, 255, 0.2) inset, 0px 1px 2px rgba(0, 0, 0, 0.05); background-color: #cccccc;}\n"; + $res .= "h1 { color: #bbb }\n"; $res .= "h2 { padding-top: 0px; padding-bottom: 30px;}\n"; $res .= " \n"; $res .= " \n"; $res .= " \n"; $res .= "
\n"; + if ($this->appName !== null) + $res .= "

".$this->appName."

\n"; $res .= "