this adds two config options to System tab to set the default skin and css
This commit is contained in:
parent
d7586c2a28
commit
50e6784779
|
@ -92,6 +92,22 @@ our %types =
|
||||||
|
|
||||||
our @options =
|
our @options =
|
||||||
(
|
(
|
||||||
|
{
|
||||||
|
name => "ZM_SKIN_DEFAULT",
|
||||||
|
default => "classic",
|
||||||
|
description => "Default skin used by web interface",
|
||||||
|
help => "ZoneMinder allows the use of many different web interfaces. This option allows you to set the default skin used by the website. Users can change their skin later, this merely sets the default.",
|
||||||
|
type => $types{string},
|
||||||
|
category => "system",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name => "ZM_CSS_DEFAULT",
|
||||||
|
default => "classic",
|
||||||
|
description => "Default set of css files used by web interface",
|
||||||
|
help => "ZoneMinder allows the use of many different web interfaces, and some skins allow the use of different set of CSS files to control the appearance. This option allows you to set the default set of css files used by the website. Users can change their css later, this merely sets the default.",
|
||||||
|
type => $types{string},
|
||||||
|
category => "system",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name => "ZM_LANG_DEFAULT",
|
name => "ZM_LANG_DEFAULT",
|
||||||
default => "en_gb",
|
default => "en_gb",
|
||||||
|
|
|
@ -60,6 +60,8 @@ if ( isset($_GET['skin']) )
|
||||||
$skin = $_GET['skin'];
|
$skin = $_GET['skin'];
|
||||||
elseif ( isset($_COOKIE['zmSkin']) )
|
elseif ( isset($_COOKIE['zmSkin']) )
|
||||||
$skin = $_COOKIE['zmSkin'];
|
$skin = $_COOKIE['zmSkin'];
|
||||||
|
elseif ( ZM_SKIN_DEFAULT )
|
||||||
|
$skin = ZM_SKIN_DEFAULT;
|
||||||
else
|
else
|
||||||
$skin = "classic";
|
$skin = "classic";
|
||||||
|
|
||||||
|
@ -67,6 +69,8 @@ if ( isset($_GET['css']) )
|
||||||
$css = $_GET['css'];
|
$css = $_GET['css'];
|
||||||
elseif ( isset($_COOKIE['zmCSS']) )
|
elseif ( isset($_COOKIE['zmCSS']) )
|
||||||
$css = $_COOKIE['zmCSS'];
|
$css = $_COOKIE['zmCSS'];
|
||||||
|
elseif (ZM_CSS_DEFAULT)
|
||||||
|
$css = ZM_CSS_DEFAULT;
|
||||||
else
|
else
|
||||||
$css = "classic";
|
$css = "classic";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue