This commit is contained in:
Laurent Destailleur 2021-12-12 21:20:12 +01:00
parent 5ea82a99bb
commit f6c1ad6094
2 changed files with 8 additions and 2 deletions

View File

@ -302,7 +302,6 @@ if (!defined('NOSESSION')) {
// Init the 5 global objects, this include will make the 'new Xxx()' and set properties for: $conf, $db, $langs, $user, $mysoc
require_once 'master.inc.php';
// If software has been locked. Only login $conf->global->MAIN_ONLY_LOGIN_ALLOWED is allowed.
if (!empty($conf->global->MAIN_ONLY_LOGIN_ALLOWED)) {
$ok = 0;
@ -364,6 +363,12 @@ if (isset($_SERVER["HTTP_USER_AGENT"])) {
}
}
// If theme is forced
if (GETPOST('theme', 'aZ09')) {
$conf->theme = GETPOST('theme', 'aZ09');
$conf->css = "/theme/".$conf->theme."/style.css.php";
}
// Set global MAIN_OPTIMIZEFORTEXTBROWSER (must be before login part)
if (GETPOST('textbrowser', 'int') || (!empty($conf->browser->name) && $conf->browser->name == 'lynxlinks')) { // If we must enable text browser
$conf->global->MAIN_OPTIMIZEFORTEXTBROWSER = 1;
@ -1089,6 +1094,7 @@ if (!defined('NOLOGIN')) {
}
}
// Case forcing style from url
if (GETPOST('theme', 'alpha')) {
$conf->theme = GETPOST('theme', 'alpha', 1);

View File

@ -2717,7 +2717,7 @@ form#login {
border: none;
/* border-bottom: solid 1px rgba(180,180,180,.4); */
padding: 5px;
margin-left: 18px;
margin-left: 5px;
margin-top: 5px;
margin-bottom: 5px;
}