CMXX - Multisite styling reset
This commit is contained in:
146
reset.php
146
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
|
// Check if the user is already logged in, if yes then redirect him to welcome page
|
||||||
if(isset($_SESSION["loggedin"]) && $_SESSION["loggedin"] === true){
|
if(isset($_SESSION["loggedin"]) && $_SESSION["loggedin"] === true){
|
||||||
header("location: index.php");
|
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
|
// Define variables and initialize with empty values
|
||||||
$username = $password = '';
|
$username = $password = '';
|
||||||
$username_err = $password_err = '';
|
$username_err = $password_err = '';
|
||||||
@@ -123,142 +128,13 @@ echo'
|
|||||||
<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
|
<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
|
||||||
<title>'.site_title.'</title>
|
<title>'.site_title.'</title>
|
||||||
<link rel="shortcut icon" href="'.icon_image.'" type="image/x-icon" />
|
<link rel="shortcut icon" href="'.icon_image.'" type="image/x-icon" />
|
||||||
<style>
|
<link href="'.$custom_css.'" rel="stylesheet" type="text/css">
|
||||||
* {
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
.logon {
|
|
||||||
margin: 0;
|
|
||||||
position: absolute;
|
|
||||||
top: 40%;
|
|
||||||
left: 50%;
|
|
||||||
transform: translate(-50%, -50%)
|
|
||||||
}
|
|
||||||
|
|
||||||
#imagelogon {
|
|
||||||
background-image: url('.icon_image.');
|
|
||||||
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;;
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
<body style="background-color:#2FAC66;background-image: url(./assets/images/emergencyplug-auto-in-licht.jpg);
|
<body>
|
||||||
background-position: center center;background-size: 100% 100%; min-height: 100vh;background-repeat: no-repeat;">
|
|
||||||
';
|
';
|
||||||
|
|
||||||
//Maintenance mode notification message
|
//Maintenance mode notification message
|
||||||
if (maintenance_mode){
|
if (maintenance_mode_communication){
|
||||||
echo'
|
echo'
|
||||||
<p style="text-align: center;">
|
<p style="text-align: center;">
|
||||||
<small>'.maintenance_mode_notification.'</small>
|
<small>'.maintenance_mode_notification.'</small>
|
||||||
@@ -272,14 +148,14 @@ echo'
|
|||||||
<div id="imagelogon"></div>
|
<div id="imagelogon"></div>
|
||||||
<div class="login-box">
|
<div class="login-box">
|
||||||
<small style="color:#fff;">'.site_title.'</small>
|
<small style="color:#fff;">'.site_title.'</small>
|
||||||
<h1>Customer Portal</h1>
|
<h1>'.site_name.'</h1>
|
||||||
';
|
';
|
||||||
|
|
||||||
if (maintenance_mode)
|
if (maintenance_mode)
|
||||||
{
|
{
|
||||||
//Maintenance mode is on => Show maintenance mode text
|
//Maintenance mode is on => Show maintenance mode text
|
||||||
echo '
|
echo '
|
||||||
<p style="margin-top: 10%;color: white;">'.maintenance_mode_notification.'</p>
|
<p style="margin-top: 10%;color: white;">'.maintenance_mode_text.'</p>
|
||||||
';
|
';
|
||||||
} else {
|
} else {
|
||||||
//Maintenance mode is off => Show login
|
//Maintenance mode is off => Show login
|
||||||
|
|||||||
132
style/admin_reset.css
Normal file
132
style/admin_reset.css
Normal file
@@ -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;;
|
||||||
|
}
|
||||||
172
style/soveliti/soveliti_reset.css
Normal file
172
style/soveliti/soveliti_reset.css
Normal file
@@ -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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user