diff --git a/themes/enhanced/images/backgrounds/yellowstone_3.jpg b/themes/enhanced/images/backgrounds/yellowstone_3.jpg new file mode 100644 index 0000000000..3673cd5c65 Binary files /dev/null and b/themes/enhanced/images/backgrounds/yellowstone_3.jpg differ diff --git a/themes/enhanced/login.php b/themes/enhanced/login.php new file mode 100644 index 0000000000..ae7bda5675 --- /dev/null +++ b/themes/enhanced/login.php @@ -0,0 +1,38 @@ + + Portions created by the Initial Developer are Copyright (C) 2008-2013 + the Initial Developer. All Rights Reserved. + + Contributor(s): + Mark J. Crane +*/ +include "root.php"; + +//show the index page + if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/index.php")){ + require_once "themes/".$_SESSION['domain']['template']['name']."/index.php"; + } + else { + require_once "resources/require.php"; + require_once "resources/header.php"; + echo "

\n"; + require_once "resources/footer.php"; + } +?> \ No newline at end of file diff --git a/themes/enhanced/template.php b/themes/enhanced/template.php index 37973ea68b..755863f88d 100644 --- a/themes/enhanced/template.php +++ b/themes/enhanced/template.php @@ -387,12 +387,9 @@ table tr:nth-last-child(-5) td:first-of-type { echo "background-color: #FFFFFF;"; } else { - if (substr($_SERVER['PHP_SELF'], -9) != "login.php") { + if (strlen($_SESSION["username"]) > 0) { echo "background-image: url('/themes/enhanced/images/content_background.png');"; } - else { - echo "background-image: url('/themes/enhanced/images/login_background.png');"; - } } ?> background-repeat: repeat-x; @@ -545,9 +542,8 @@ table tr:nth-last-child(-5) td:first-of-type { } /* end the menu css*/ - -