From 0c028fdc8d6cd56e3ed797d31b48d3a24aa2856a Mon Sep 17 00:00:00 2001 From: redray Date: Sat, 30 Mar 2013 15:20:39 +0000 Subject: [PATCH] login box: login with own login template --- interface/web/index.php | 12 +- interface/web/themes/default/css/styles.css | 23 ++- .../themes/default/templates/login.tpl.htm | 167 ++++++++++++++++++ 3 files changed, 196 insertions(+), 6 deletions(-) create mode 100644 interface/web/themes/default/templates/login.tpl.htm diff --git a/interface/web/index.php b/interface/web/index.php index a7d2965e13..7e06711214 100644 --- a/interface/web/index.php +++ b/interface/web/index.php @@ -31,10 +31,14 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. require_once('../lib/config.inc.php'); require_once('../lib/app.inc.php'); -if(!isset($_SESSION['s']['module']['name'])) $_SESSION['s']['module']['name'] = 'login'; - -$app->uses('tpl'); -$app->tpl->newTemplate('main.tpl.htm'); +if(!isset($_SESSION['s']['module']['name']) or $_SESSION['s']['module']['name']=='login') { + $_SESSION['s']['module']['name'] = 'login'; + $app->uses('tpl'); + $app->tpl->newTemplate('login.tpl.htm'); +} else { + $app->uses('tpl'); + $app->tpl->newTemplate('main.tpl.htm'); +} // tab change warning? // read misc config diff --git a/interface/web/themes/default/css/styles.css b/interface/web/themes/default/css/styles.css index 68f1cc9f83..14fc257e97 100644 --- a/interface/web/themes/default/css/styles.css +++ b/interface/web/themes/default/css/styles.css @@ -96,6 +96,17 @@ header, #nav, #main, footer { border-radius: 8px; box-shadow: 0 0px 0px 0px rgba(0, 0, 0, 0.05) inset, 0 0 18px rgba(0, 0, 0, 0.5); } +#page.loginpage { + width: 400px !important; + min-width: 400px !important; + min-height: 300px !important; + background-color: #ffffff; + text-align:left; + margin: 0 auto; + padding: 10px; + border-radius: 8px; + box-shadow: 0 0px 0px 0px rgba(0, 0, 0, 0.05) inset, 0 0 18px rgba(0, 0, 0, 0.5); +} .skip, .hideme, .print { height: 1px; left: -1000em; @@ -314,7 +325,12 @@ header span { margin-right: 0; padding: 0px 10px 10px 20px; } - +.loginpage #content { + margin-left: 0px; + margin-right: 0; + padding: 0px; +} + /* footer -------------------------------------------------------------- */ @@ -1164,7 +1180,7 @@ select.flags option[value=ZW], select.flags option[value=zw], .country-ZW {backg .panel_login { max-width: 80%; - min-width: 680px; + min-width: 400px; } div.subsectiontoggle { border:1px solid #ccc; @@ -1786,6 +1802,9 @@ p.value { .uniForm .inlineLabels label, .uniForm .inlineLabels .label{ width: 20%; /* <- Required property */ margin: .3em 2% 0 0; /* <- Required property */ } +.loginpage .uniForm .inlineLabels label, +.loginpage .uniForm .inlineLabels .label{ width: 40%; /* <- Required property */ margin: .3em 2% 0 0; /* <- Required property */ } + .uniForm .inlineLabels .textInput, .uniForm .inlineLabels .fileUpload{ width: 35%; /* <- Required property */ } diff --git a/interface/web/themes/default/templates/login.tpl.htm b/interface/web/themes/default/templates/login.tpl.htm new file mode 100644 index 0000000000..67d5130c0b --- /dev/null +++ b/interface/web/themes/default/templates/login.tpl.htm @@ -0,0 +1,167 @@ + + + + + " /> + <tmpl_var name="app_title"> <tmpl_var name="app_version"> + + + + + + + + + + + + + + + + + +
+ +
+

ISPConfig 3

+
+ + + +
+ +
+
+
+
+
 
+ +
+ +
+ +
+ + + + + + + -- GitLab