\n" : "\n"; ?> <!--{title}--> 0) { $php_self_dir = substr($php_self_dir, strlen(PROJECT_PATH), strlen($php_self_dir)); } //set fav icon if (isset($_SESSION['theme']['favicon']['text'])){ $favicon = $_SESSION['theme']['favicon']['text']; } else { $favicon = '/themes/default/favicon.ico'; } echo "\n"; //check for background image if ($_SESSION['theme']['background_image_enabled']['boolean'] == 'true' && isset($_SESSION['theme']['background_image'])) { // background image is enabled $image_extensions = array('jpg','jpeg','png','gif'); if (count($_SESSION['theme']['background_image']) > 0) { if (strlen($_SESSION['background_image']) == 0) { $_SESSION['background_image'] = $_SESSION['theme']['background_image'][array_rand($_SESSION['theme']['background_image'])]; $background_image = $_SESSION['background_image']; } // background image(s) specified, check if source is file or folder if (in_array(strtolower(pathinfo($background_image, PATHINFO_EXTENSION)), $image_extensions)) { $image_source = 'file'; } else { $image_source = 'folder'; } // is source (file/folder) local or remote if (substr($background_image, 0, 4) == 'http') { $source_path = $background_image; } else if (substr($background_image, 0, 1) == '/') { // // use project path as root $source_path = PROJECT_PATH.$background_image; } else { // use theme images/backgrounds folder as root $source_path = PROJECT_PATH.'/themes/default/images/backgrounds/'.$background_image; } } else { // not set, so use default backgrounds folder and images $image_source = 'folder'; $source_path = PROJECT_PATH.'/themes/default/images/backgrounds'; } if ($image_source == 'folder') { if (file_exists($_SERVER["DOCUMENT_ROOT"].$source_path)) { // retrieve a random background image $dir_list = opendir($_SERVER["DOCUMENT_ROOT"].$source_path); $v_background_array = array(); $x = 0; while (false !== ($file = readdir($dir_list))) { if ($file != "." AND $file != ".."){ $new_path = $dir.'/'.$file; $level = explode('/',$new_path); if (in_array(strtolower(pathinfo($new_path, PATHINFO_EXTENSION)), $image_extensions)) { $v_background_array[] = $new_path; } if ($x > 100) { break; }; $x++; } } if ($_SESSION['background_image'] == '' && sizeof($v_background_array) > 0) { $_SESSION['background_image'] = PROJECT_PATH.$source_path.$v_background_array[array_rand($v_background_array, 1)]; } } else { $_SESSION['background_image'] = ''; } } else if ($image_source == 'file') { $_SESSION['background_image'] = $source_path; } } // check for background color else if ( $_SESSION['theme']['background_color'][0] != '' || $_SESSION['theme']['background_color'][1] != '' ) { // background color 1 or 2 is enabled if ($_SESSION['theme']['background_color'][0] != '' && $_SESSION['theme']['background_color'][1] == '') { // use color 1 $background_color = "background: ".$_SESSION['theme']['background_color'][0].";"; } else if ($_SESSION['theme']['background_color'][0] == '' && $_SESSION['theme']['background_color'][1] != '') { // use color 2 $background_color = "background: ".$_SESSION['theme']['background_color'][1].";"; } else if ($_SESSION['theme']['background_color'][0] != '' && $_SESSION['theme']['background_color'][1] != '') { // vertical gradient $background_color = "background: ".$_SESSION['theme']['background_color'][0].";\n"; $background_color .= "background: -ms-linear-gradient(top, ".$_SESSION['theme']['background_color'][0]." 0%, ".$_SESSION['theme']['background_color'][1]." 100%);\n"; $background_color .= "background: -moz-linear-gradient(top, ".$_SESSION['theme']['background_color'][0]." 0%, ".$_SESSION['theme']['background_color'][1]." 100%);\n"; $background_color .= "background: -o-linear-gradient(top, ".$_SESSION['theme']['background_color'][0]." 0%, ".$_SESSION['theme']['background_color'][1]." 100%);\n"; $background_color .= "background: -webkit-gradient(linear, left top, left bottom, color-stop(0, ".$_SESSION['theme']['background_color'][0]."), color-stop(1, ".$_SESSION['theme']['background_color'][1]."));\n"; $background_color .= "background: -webkit-linear-gradient(top, ".$_SESSION['theme']['background_color'][0]." 0%, ".$_SESSION['theme']['background_color'][1]." 100%);\n"; $background_color .= "background: linear-gradient(to bottom, ".$_SESSION['theme']['background_color'][0]." 0%, ".$_SESSION['theme']['background_color'][1]." 100%);\n"; } } else { // default: white $background_color = "background: #fff;\n"; } ?> get(null,'themes/default'); ?>
0 && permission_exists("domain_select") && count($_SESSION['domains']) > 1) { ?>
".$text['theme-title-domains']." (".sizeof($_SESSION['domains']).")"; ?>

"; echo "".$domain['domain_name']."\n"; if ($domain['domain_description'] != '') { echo " - ".$domain['domain_description']."\n"; } echo "
\n"; $ary_domain_names[] = $domain['domain_name']; $ary_domain_descs[] = str_replace('"','\"',$domain['domain_description']); } ?>
"; echo "
"; echo " "; echo "
"; echo ""; if (!$default_login) { //*************** BOOTSTRAP MENU ******************************** function show_menu($menu_array, $menu_style, $menu_position) { global $text; //determine menu behavior switch ($menu_style) { case 'inline': $menu_type = 'default'; $menu_width = 'calc(100% - 40px)'; $menu_brand = false; break; case 'static': $menu_type = 'static-top'; $menu_width = 'calc(100% - 40px)'; $menu_brand = true; $menu_corners = "style='-webkit-border-radius: 0 0 4px 4px; -moz-border-radius: 0 0 4px 4px; border-radius: 0 0 4px 4px;'"; break; case 'fixed': default: $menu_position = ($menu_position != '') ? $menu_position : 'top'; $menu_type = 'fixed-'.$menu_position; $menu_width = 'calc(90% - 40px)'; $menu_brand = true; } ?> db = $db; $menu->menu_uuid = $_SESSION['domain']['menu']['uuid']; $menu_array = $menu->menu_array(); unset($menu); $menu_style = ($_SESSION['theme']['menu_style']['text'] != '') ? $_SESSION['theme']['menu_style']['text'] : 'fixed'; $menu_position = ($_SESSION['theme']['menu_position']['text']) ? $_SESSION['theme']['menu_position']['text'] : 'top'; $open_container = "
"; switch ($menu_style) { case 'inline': $logo_align = ($_SESSION['theme']['logo_align']['text'] != '') ? $_SESSION['theme']['logo_align']['text'] : 'left'; echo str_replace("center", $logo_align, $open_container); if ($_SERVER['PHP_SELF'] != PROJECT_PATH."/resources/install.php") { $logo = ($_SESSION['theme']['logo']['text'] != '') ? $_SESSION['theme']['logo']['text'] : PROJECT_PATH."/themes/default/images/logo.png"; echo ""; } show_menu($menu_array, $menu_style, $menu_position); $body_top_style = "style='padding-top: 0px; margin-top: -8px;'"; break; case 'static': echo $open_container; show_menu($menu_array, $menu_style, $menu_position); $body_top_style = "style='padding: 0; margin-top: -5px;'"; break; case 'fixed': show_menu($menu_array, $menu_style, $menu_position); echo $open_container; switch ($menu_position) { case 'bottom': $body_top_style = "style='margin-top: 30px;'"; break; case 'top': $body_top_style = "style='margin-top: 65px;'"; break; } } ?> >
$value) { $text[$key] = $value[$_SESSION['domain']['language']['code']]; } //set a default login destination if (strlen($_SESSION['login']['destination']['url']) == 0) { $_SESSION['login']['destination']['url'] = PROJECT_PATH."/core/user_settings/user_dashboard.php"; } //login form echo "
\n"; echo "
\n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; if ($_SESSION['login']['domain_name.visible']['boolean'] == "true") { echo " \n"; echo " \n"; } echo " \n"; echo " \n"; echo "
\n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " ".$text['label-domain'].":\n"; echo " \n"; if (count($_SESSION['login']['domain_name']) > 0) { echo " \n"; } else { echo " \n"; } echo " \n"; echo " \n"; echo "
\n"; echo "
"; echo "
"; } } ?>