diff --git a/reset.php b/reset.php index 5dd689e..c1a91c2 100644 --- a/reset.php +++ b/reset.php @@ -8,9 +8,14 @@ include_once './settings/translations/translations_US.php'; // Check if the user is already logged in, if yes then redirect him to welcome page if(isset($_SESSION["loggedin"]) && $_SESSION["loggedin"] === true){ header("location: index.php"); - exit; + exit(); } +//========================================= +//GET DOMAIN FOR CORRECT STYLING AND SETTINGS +$domain = getDomainName($_SERVER['SERVER_NAME']); +$custom_css = (file_exists(dirname(__FILE__).'/style/'.$domain.'/'.$domain.'_reset.css') ? './style/'.$domain.'/'.$domain.'_reset.css' : './style/admin_reset.css'); + // Define variables and initialize with empty values $username = $password = ''; $username_err = $password_err = ''; @@ -123,142 +128,13 @@ echo' '.site_title.' - + - + '; //Maintenance mode notification message -if (maintenance_mode){ +if (maintenance_mode_communication){ echo'

'.maintenance_mode_notification.' @@ -272,14 +148,14 @@ echo'

'.site_title.' -

Customer Portal

+

'.site_name.'

'; if (maintenance_mode) { //Maintenance mode is on => Show maintenance mode text echo ' -

'.maintenance_mode_notification.'

+

'.maintenance_mode_text.'

'; } else { //Maintenance mode is off => Show login diff --git a/style/admin_reset.css b/style/admin_reset.css new file mode 100644 index 0000000..8d181b3 --- /dev/null +++ b/style/admin_reset.css @@ -0,0 +1,132 @@ +* { + padding: 0; + margin: 0; + box-sizing: border-box; + font-family: "Open Sans", Helvetica, sans-serif; + accent-color: '.color.'; +} + +body { + background-color: #fff; + font-family: sans-serif; + background-color:#2FAC66; + background-image: url(/assets/images/emergencyplug-auto-in-licht.jpg); + background-position: center center; + background-size: 100% 100%; + min-height: 100vh; + background-repeat: no-repeat; +} + +.logon { + margin: 0; + position: absolute; + top: 40%; + left: 50%; + transform: translate(-50%, -50%) +} + +#imagelogon { +background-image: url(/assets/images/TSS-logo3.png); +background-repeat: no-repeat; +opacity: inherit; +width: 85px; +height: 150px; +margin: 0 auto; +position: relative; +top: 87px; +-webkit-filter: drop-shadow(5px 5px 5px #222); +filter: drop-shadow(5px 5px 5px #222); +} + +.login-box{ + width: 350px; + height: 330px; + background-color:#005655; + padding: 55px 30px; + border-radius: 10px; + text-align: center; + -webkit-box-shadow: 10px 10px 5px -4px rgba(0,0,0,0.75); + -moz-box-shadow: 10px 10px 5px -4px rgba(0,0,0,0.75); + box-shadow: 10px 10px 5px -4px rgba(0,0,0,0.75); + + } + + .login-box h1{ + font-weight: 500; + color: #fff; + } + + .login-box input[type="text"], + .login-box input[type="password"]{ + width: 75%; + margin-bottom: 10px; + } + + .login-box input[type="text"], + .login-box input[type="password"]{ + border-radius: 10px; + //background: transparent; + border: none; + outline: none; + border: 2px solid #2FAC66; + font-size: 13px; + height: 40px; + text-align: center; + transition: 0.27s; + } + .login-box input[type="text"]:focus, + .login-box input[type="password"]:focus{ + width: 80%; + border-color:#6fd653; + } + + .login-box input[type="submit"]{ + width: 60%; + border: none; + outline: none; + background: #2FAC66; + padding: 10px 0; + border-radius: 10px; + color: #ffffff; + font-weight: 500; + text-transform: uppercase; + cursor: pointer; + margin-bottom: 20px; + position: relative; + bottom: -12px; + font-style: italic; + } + + .login-box input[type="submit"]:hover{ + background:#6FD653; + transition: .2s; + } + + .login-box input[type="submit"]:focus{ + transform: scaleX(1.1); + } + + .login-box a { + text-decoration: none; + font-size: 12px; + color: #00bcd4; + } + + .login-box a:hover{ + color: #6FD653; + } + + #reset a { + text-decoration: none; + font-size: 10px; + color: #00bcd4; + } + + #reset { + margin-top: -10px; + } + + #message p { + font-size: 15px; + color: #ffffff;; + } \ No newline at end of file diff --git a/style/soveliti/soveliti_reset.css b/style/soveliti/soveliti_reset.css new file mode 100644 index 0000000..b4c7993 --- /dev/null +++ b/style/soveliti/soveliti_reset.css @@ -0,0 +1,172 @@ +* { + padding: 0; + margin: 0; + box-sizing: border-box; + font-family: "Open Sans", Helvetica, sans-serif; + accent-color: #005655c2; +} + +body { + background-color: #fff; + font-family: sans-serif; + background-color:#0b1054; + background-image: url(veliti_intro.png); + background-position: center center; + background-size: 100% 100%; + min-height: 100vh; + background-repeat: no-repeat; +} + +.logon { + margin: 0; + position: absolute; + top: 40%; + left: 50%; + transform: translate(-50%, -50%); +} + +#imagelogon { +background-image: url(VeLiTi-Logo2.png); +background-repeat: no-repeat; +opacity: inherit; +width: 85px; +height: 150px; +margin: 0 auto; +position: relative; +top: 87px; +-webkit-filter: drop-shadow(5px 5px 5px #222); +filter: drop-shadow(5px 5px 5px #222); +} + +.login-box{ + width: 350px; + height: 330px; + background-color:#344fd5c2; + padding: 55px 30px; + border-radius: 10px; + text-align: center; + -webkit-box-shadow: 10px 10px 5px -4px rgba(0,0,0,0.75); + -moz-box-shadow: 10px 10px 5px -4px rgba(0,0,0,0.75); + box-shadow: 10px 10px 5px -4px rgba(0,0,0,0.75); + + } + + .login-box h1{ + font-weight: 500; + color: #fff; + } + + .login-box input[type="text"], + .login-box input[type="password"]{ + width: 75%; + margin-bottom: 10px; + } + + .login-box input[type="text"], + .login-box input[type="password"]{ + border-radius: 10px; + //background: transparent; + border: none; + outline: none; + border: 2px solid #0b1054; + font-size: 13px; + height: 40px; + text-align: center; + transition: 0.27s; + } + .login-box input[type="text"]:focus, + .login-box input[type="password"]:focus{ + width: 80%; + border-color:#ececec; + } + + .login-box input[type="submit"]{ + width: 60%; + border: none; + outline: none; + background: #0b1054; + padding: 10px 0; + border-radius: 10px; + color: #ffffff; + font-weight: 500; + text-transform: uppercase; + cursor: pointer; + margin-bottom: 20px; + position: relative; + bottom: -12px; + font-style: italic; + } + + .login-box input[type="submit"]:hover{ + background:#ececec; + transition: .2s; + } + + .login-box input[type="submit"]:focus{ + transform: scaleX(1.1); + } + + .login-box a { + text-decoration: none; + font-size: 12px; + color: #00bcd4; + } + + .login-box a:hover{ + color: #ececec; + } + + #reset a { + text-decoration: none; + font-size: 10px; + color: #00bcd4; + } + + #reset { + margin-top: -10px; + } + + #message p { + font-size: 15px; + color: #ffffff;; + } + + /* Slide 5 */ +.slider-checkbox { + width: 3em; + height: 1.5em; + margin: 20px auto; +} + +.slider-checkbox * { + transition: 250ms; + box-sizing: border-box; +} + +.slider-checkbox input[type="checkbox"] { + display: none; +} + +.slider-checkbox label { + display: inline-block; + width: 100%; + height: 95%; + background: #005655c2; + border-radius: 0.7em; + padding-top: 0.2em; + padding-left: 0.2em; +} + +.slider-checkbox span { + display: inline-block; + width: 1em; + height: 1em; + background: #FFF; + border: none; + border-radius: 2em; +} + +.slider-checkbox input[type="checkbox"]:checked ~ label { + background: #93ed49; + padding-left: 1.7em; +} \ No newline at end of file