diff --git a/themes/minimized/app_defaults.php b/themes/minimized/app_defaults.php new file mode 100644 index 0000000000..dd39758af5 --- /dev/null +++ b/themes/minimized/app_defaults.php @@ -0,0 +1,233 @@ + + Portions created by the Initial Developer are Copyright (C) 2008-2012 + the Initial Developer. All Rights Reserved. + + Contributor(s): + Mark J Crane +*/ + +if ($domains_processed == 1) { + + //define array of settings + $x = 0; + $array[$x]['default_setting_category'] = 'theme'; + $array[$x]['default_setting_subcategory'] = 'background_color'; + $array[$x]['default_setting_name'] = 'array'; + $array[$x]['default_setting_value'] = '#ffffff'; + $array[$x]['default_setting_enabled'] = 'true'; + $array[$x]['default_setting_order'] = '0'; + $array[$x]['default_setting_description'] = 'Set a background (HTML compatible) color.'; + $x++; + $array[$x]['default_setting_category'] = 'theme'; + $array[$x]['default_setting_subcategory'] = 'login_opacity'; + $array[$x]['default_setting_name'] = 'text'; + $array[$x]['default_setting_value'] = '0.35'; + $array[$x]['default_setting_enabled'] = 'true'; + $array[$x]['default_setting_description'] = 'Set the opacity of the login box (decimal).'; + $x++; + $array[$x]['default_setting_category'] = 'theme'; + $array[$x]['default_setting_subcategory'] = 'login_background_color'; + $array[$x]['default_setting_name'] = 'text'; + $array[$x]['default_setting_value'] = '#ffffff'; + $array[$x]['default_setting_enabled'] = 'true'; + $array[$x]['default_setting_description'] = 'Set a background color (HTML compatible) for the login box.'; + $x++; + $array[$x]['default_setting_category'] = 'theme'; + $array[$x]['default_setting_subcategory'] = 'footer_background_color'; + $array[$x]['default_setting_name'] = 'text'; + $array[$x]['default_setting_value'] = '#000000'; + $array[$x]['default_setting_enabled'] = 'true'; + $array[$x]['default_setting_description'] = 'Set a background color (HTML compatible) for the footer bar.'; + $x++; + $array[$x]['default_setting_category'] = 'theme'; + $array[$x]['default_setting_subcategory'] = 'footer_color'; + $array[$x]['default_setting_name'] = 'text'; + $array[$x]['default_setting_value'] = '#ffffff'; + $array[$x]['default_setting_enabled'] = 'true'; + $array[$x]['default_setting_description'] = 'Set a foreground color (HTML compatible) for the footer bar.'; + $x++; + $array[$x]['default_setting_category'] = 'theme'; + $array[$x]['default_setting_subcategory'] = 'footer_opacity'; + $array[$x]['default_setting_name'] = 'text'; + $array[$x]['default_setting_value'] = '0.2'; + $array[$x]['default_setting_enabled'] = 'true'; + $array[$x]['default_setting_description'] = 'Set the opacity of the footer bar (decimal).'; + $x++; + $array[$x]['default_setting_category'] = 'theme'; + $array[$x]['default_setting_subcategory'] = 'message_default_background_color'; + $array[$x]['default_setting_name'] = 'text'; + $array[$x]['default_setting_value'] = '#ccffcc'; + $array[$x]['default_setting_enabled'] = 'true'; + $array[$x]['default_setting_description'] = 'Set the background color (HTML compatible) for the positive (default) message bar.'; + $x++; + $array[$x]['default_setting_category'] = 'theme'; + $array[$x]['default_setting_subcategory'] = 'message_default_color'; + $array[$x]['default_setting_name'] = 'text'; + $array[$x]['default_setting_value'] = '#004200'; + $array[$x]['default_setting_enabled'] = 'true'; + $array[$x]['default_setting_description'] = 'Set the foreground color (HTML compatible) for the positive (default) message bar text.'; + $x++; + $array[$x]['default_setting_category'] = 'theme'; + $array[$x]['default_setting_subcategory'] = 'message_negative_background_color'; + $array[$x]['default_setting_name'] = 'text'; + $array[$x]['default_setting_value'] = '#ffcdcd'; + $array[$x]['default_setting_enabled'] = 'true'; + $array[$x]['default_setting_description'] = 'Set the background color (HTML compatible) for the negative message bar.'; + $x++; + $array[$x]['default_setting_category'] = 'theme'; + $array[$x]['default_setting_subcategory'] = 'message_negative_color'; + $array[$x]['default_setting_name'] = 'text'; + $array[$x]['default_setting_value'] = '#670000'; + $array[$x]['default_setting_enabled'] = 'true'; + $array[$x]['default_setting_description'] = 'Set the foreground color (HTML compatible) for the negative message bar text.'; + $x++; + $array[$x]['default_setting_category'] = 'theme'; + $array[$x]['default_setting_subcategory'] = 'message_alert_background_color'; + $array[$x]['default_setting_name'] = 'text'; + $array[$x]['default_setting_value'] = '#ffe585'; + $array[$x]['default_setting_enabled'] = 'true'; + $array[$x]['default_setting_description'] = 'Set the background color (HTML compatible) for the alert message bar.'; + $x++; + $array[$x]['default_setting_category'] = 'theme'; + $array[$x]['default_setting_subcategory'] = 'message_alert_color'; + $array[$x]['default_setting_name'] = 'text'; + $array[$x]['default_setting_value'] = '#d66721'; + $array[$x]['default_setting_enabled'] = 'true'; + $array[$x]['default_setting_description'] = 'Set the foreground color (HTML compatible) for the alert message bar text.'; + $x++; + $array[$x]['default_setting_category'] = 'theme'; + $array[$x]['default_setting_subcategory'] = 'message_opacity'; + $array[$x]['default_setting_name'] = 'text'; + $array[$x]['default_setting_value'] = '0.9'; + $array[$x]['default_setting_enabled'] = 'true'; + $array[$x]['default_setting_description'] = 'Set the opacity of the message bar (decimal).'; + $x++; + $array[$x]['default_setting_category'] = 'theme'; + $array[$x]['default_setting_subcategory'] = 'message_delay'; + $array[$x]['default_setting_name'] = 'text'; + $array[$x]['default_setting_value'] = '1.75'; + $array[$x]['default_setting_enabled'] = 'true'; + $array[$x]['default_setting_description'] = 'Set the hide delay of the message bar (seconds).'; + + //iterate and add each, if necessary + foreach ($array as $index => $default_settings) { + + //add theme default settings + $sql = "select count(*) as num_rows from v_default_settings "; + $sql .= "where default_setting_category = 'theme' "; + $sql .= "and default_setting_subcategory = '".$default_settings['default_setting_subcategory']."' "; + $prep_statement = $db->prepare($sql); + if ($prep_statement) { + $prep_statement->execute(); + $row = $prep_statement->fetch(PDO::FETCH_ASSOC); + unset($prep_statement); + if ($row['num_rows'] == 0) { + $orm = new orm; + $orm->name('default_settings'); + $orm->save($array[$index]); + $message = $orm->message; + //print_r($message); + } + unset($row); + } + + } + + //define secondary background color array + unset($array); + $x = 0; + $array[$x]['default_setting_category'] = 'theme'; + $array[$x]['default_setting_subcategory'] = 'background_color'; + $array[$x]['default_setting_name'] = 'array'; + $array[$x]['default_setting_value'] = '#e7ebf1'; + $array[$x]['default_setting_order'] = '1'; + $array[$x]['default_setting_enabled'] = 'true'; + $array[$x]['default_setting_description'] = 'Set a secondary background (HTML compatible) color, for a gradient effect.'; + + //add secondary background color separately, if missing + $sql = "select count(*) as num_rows from v_default_settings "; + $sql .= "where default_setting_category = 'theme' "; + $sql .= "and default_setting_subcategory = 'background_color' "; + $prep_statement = $db->prepare($sql); + if ($prep_statement) { + $prep_statement->execute(); + $row = $prep_statement->fetch(PDO::FETCH_ASSOC); + unset($prep_statement); + if ($row['num_rows'] == 1) { + $orm = new orm; + $orm->name('default_settings'); + $orm->save($array[0]); + $message = $orm->message; + //print_r($message); + } + unset($row); + } + + //get the background images + $relative_path = PROJECT_PATH.'/themes/minimized/images/backgrounds'; + $backgrounds = opendir($_SERVER["DOCUMENT_ROOT"].'/'.$relative_path); + $x = 0; + while (false !== ($file = readdir($backgrounds))) { + if ($file != "." AND $file != ".."){ + $new_path = $dir.'/'.$file; + $level = explode('/',$new_path); + $ext = pathinfo($file, PATHINFO_EXTENSION); + if ($ext == "png" || $ext == "jpg" || $ext == "jpeg" || $ext == "gif") { + $x++; + $array[$x]['default_setting_category'] = 'theme'; + $array[$x]['default_setting_subcategory'] = 'background_image'; + $array[$x]['default_setting_name'] = 'array'; + $array[$x]['default_setting_value'] = $relative_path.'/'.$file; + $array[$x]['default_setting_enabled'] = 'false'; + $array[$x]['default_setting_description'] = 'Set a relative path or URL within a selected compatible template.'; + } + if ($x > 300) { break; }; + } + } + + //get default settings + $sql = "select * from v_default_settings "; + $sql .= "where default_setting_category = 'theme' "; + $sql .= "and default_setting_subcategory = 'background_image' "; + $prep_statement = $db->prepare(check_sql($sql)); + $prep_statement->execute(); + $default_settings = $prep_statement->fetchAll(PDO::FETCH_NAMED); + unset($prep_statement); + + //add theme default settings + foreach ($array as $row) { + $found = false; + foreach ($default_settings as $field) { + if ($field["default_setting_value"] == $row["default_setting_value"]) { + $found = true; + } + } + if (!$found) { + $orm = new orm; + $orm->name('default_settings'); + $orm->save($row); + $message = $orm->message; + //print_r($message); + } + } +} + +?> diff --git a/themes/minimized/app_languages.php b/themes/minimized/app_languages.php new file mode 100644 index 0000000000..d2a538f75c --- /dev/null +++ b/themes/minimized/app_languages.php @@ -0,0 +1,41 @@ + diff --git a/themes/minimized/config.php b/themes/minimized/config.php new file mode 100644 index 0000000000..7accb1ec0c --- /dev/null +++ b/themes/minimized/config.php @@ -0,0 +1,9 @@ +"; + $v_link_label_add = ""; + $v_link_label_delete = ""; + $v_link_label_view = ""; + +?> diff --git a/themes/minimized/favicon.ico b/themes/minimized/favicon.ico new file mode 100644 index 0000000000..e0c7a83001 Binary files /dev/null and b/themes/minimized/favicon.ico differ diff --git a/themes/minimized/images/background_black.png b/themes/minimized/images/background_black.png new file mode 100644 index 0000000000..4d4d00813f Binary files /dev/null and b/themes/minimized/images/background_black.png differ diff --git a/themes/minimized/images/background_cell.gif b/themes/minimized/images/background_cell.gif new file mode 100644 index 0000000000..2938f2af48 Binary files /dev/null and b/themes/minimized/images/background_cell.gif differ diff --git a/themes/minimized/images/background_cell_active.gif b/themes/minimized/images/background_cell_active.gif new file mode 100644 index 0000000000..7dbcf6a6fd Binary files /dev/null and b/themes/minimized/images/background_cell_active.gif differ diff --git a/themes/minimized/images/background_cell_conference.gif b/themes/minimized/images/background_cell_conference.gif new file mode 100644 index 0000000000..7b5b792bdc Binary files /dev/null and b/themes/minimized/images/background_cell_conference.gif differ diff --git a/themes/minimized/images/background_cell_fifo.gif b/themes/minimized/images/background_cell_fifo.gif new file mode 100644 index 0000000000..a0082263b6 Binary files /dev/null and b/themes/minimized/images/background_cell_fifo.gif differ diff --git a/themes/minimized/images/background_cell_light.gif b/themes/minimized/images/background_cell_light.gif new file mode 100644 index 0000000000..76d32d0b8d Binary files /dev/null and b/themes/minimized/images/background_cell_light.gif differ diff --git a/themes/minimized/images/background_th.png b/themes/minimized/images/background_th.png new file mode 100644 index 0000000000..6eb3b4dd94 Binary files /dev/null and b/themes/minimized/images/background_th.png differ diff --git a/themes/minimized/images/backgrounds/license.txt b/themes/minimized/images/backgrounds/license.txt new file mode 100644 index 0000000000..a659d5e0d6 --- /dev/null +++ b/themes/minimized/images/backgrounds/license.txt @@ -0,0 +1,9 @@ +Background Images + +Image: sand_sea.jpg +License: Public Domain +Source: http://www.publicdomainpictures.net/view-image.php?image=15812&picture=sand-texture-and-the-sea + +Image: wave.jpg +License: Public Domain +Source: http://www.publicdomainpictures.net/view-image.php?image=2766&picture=breaking-wave \ No newline at end of file diff --git a/themes/minimized/images/backgrounds/sand.jpg b/themes/minimized/images/backgrounds/sand.jpg new file mode 100644 index 0000000000..655e1634ba Binary files /dev/null and b/themes/minimized/images/backgrounds/sand.jpg differ diff --git a/themes/minimized/images/backgrounds/sand_sea.jpg b/themes/minimized/images/backgrounds/sand_sea.jpg new file mode 100644 index 0000000000..9aee5bc37f Binary files /dev/null and b/themes/minimized/images/backgrounds/sand_sea.jpg differ diff --git a/themes/minimized/images/backgrounds/wave.jpg b/themes/minimized/images/backgrounds/wave.jpg new file mode 100644 index 0000000000..4034c79b4d Binary files /dev/null and b/themes/minimized/images/backgrounds/wave.jpg differ diff --git a/themes/minimized/images/backgrounds/yellowstone_3.jpg b/themes/minimized/images/backgrounds/yellowstone_3.jpg new file mode 100644 index 0000000000..3673cd5c65 Binary files /dev/null and b/themes/minimized/images/backgrounds/yellowstone_3.jpg differ diff --git a/themes/minimized/images/backgrounds/yellowstone_4.jpg b/themes/minimized/images/backgrounds/yellowstone_4.jpg new file mode 100644 index 0000000000..9011f7b45c Binary files /dev/null and b/themes/minimized/images/backgrounds/yellowstone_4.jpg differ diff --git a/themes/minimized/images/blank.gif b/themes/minimized/images/blank.gif new file mode 100644 index 0000000000..75b945d255 Binary files /dev/null and b/themes/minimized/images/blank.gif differ diff --git a/themes/minimized/images/content_background.png b/themes/minimized/images/content_background.png new file mode 100644 index 0000000000..6b33cae806 Binary files /dev/null and b/themes/minimized/images/content_background.png differ diff --git a/themes/minimized/images/icon_add.png b/themes/minimized/images/icon_add.png new file mode 100644 index 0000000000..5715569041 Binary files /dev/null and b/themes/minimized/images/icon_add.png differ diff --git a/themes/minimized/images/icon_cdr_inbound_connected.png b/themes/minimized/images/icon_cdr_inbound_connected.png new file mode 100644 index 0000000000..5d4bbf8dfc Binary files /dev/null and b/themes/minimized/images/icon_cdr_inbound_connected.png differ diff --git a/themes/minimized/images/icon_cdr_inbound_missed.png b/themes/minimized/images/icon_cdr_inbound_missed.png new file mode 100644 index 0000000000..fd2fe0fe42 Binary files /dev/null and b/themes/minimized/images/icon_cdr_inbound_missed.png differ diff --git a/themes/minimized/images/icon_cdr_local_connected.png b/themes/minimized/images/icon_cdr_local_connected.png new file mode 100644 index 0000000000..798c84c3e4 Binary files /dev/null and b/themes/minimized/images/icon_cdr_local_connected.png differ diff --git a/themes/minimized/images/icon_cdr_local_failed.png b/themes/minimized/images/icon_cdr_local_failed.png new file mode 100644 index 0000000000..8c0132286b Binary files /dev/null and b/themes/minimized/images/icon_cdr_local_failed.png differ diff --git a/themes/minimized/images/icon_cdr_outbound_connected.png b/themes/minimized/images/icon_cdr_outbound_connected.png new file mode 100644 index 0000000000..900d187503 Binary files /dev/null and b/themes/minimized/images/icon_cdr_outbound_connected.png differ diff --git a/themes/minimized/images/icon_cdr_outbound_failed.png b/themes/minimized/images/icon_cdr_outbound_failed.png new file mode 100644 index 0000000000..cf1f4cd1aa Binary files /dev/null and b/themes/minimized/images/icon_cdr_outbound_failed.png differ diff --git a/themes/minimized/images/icon_delete.png b/themes/minimized/images/icon_delete.png new file mode 100644 index 0000000000..a77161f734 Binary files /dev/null and b/themes/minimized/images/icon_delete.png differ diff --git a/themes/minimized/images/icon_domain_selector.png b/themes/minimized/images/icon_domain_selector.png new file mode 100644 index 0000000000..a252cf5142 Binary files /dev/null and b/themes/minimized/images/icon_domain_selector.png differ diff --git a/themes/minimized/images/icon_edit.png b/themes/minimized/images/icon_edit.png new file mode 100644 index 0000000000..93e573bbe7 Binary files /dev/null and b/themes/minimized/images/icon_edit.png differ diff --git a/themes/minimized/images/icon_logout.png b/themes/minimized/images/icon_logout.png new file mode 100644 index 0000000000..0c2b82b343 Binary files /dev/null and b/themes/minimized/images/icon_logout.png differ diff --git a/themes/minimized/images/icon_view.png b/themes/minimized/images/icon_view.png new file mode 100644 index 0000000000..0d8df9f1f1 Binary files /dev/null and b/themes/minimized/images/icon_view.png differ diff --git a/themes/minimized/images/login_background.png b/themes/minimized/images/login_background.png new file mode 100644 index 0000000000..3c1be0c473 Binary files /dev/null and b/themes/minimized/images/login_background.png differ diff --git a/themes/minimized/images/logo.png b/themes/minimized/images/logo.png new file mode 100644 index 0000000000..1dcd520efa Binary files /dev/null and b/themes/minimized/images/logo.png differ diff --git a/themes/minimized/images/logo_header.png b/themes/minimized/images/logo_header.png new file mode 100644 index 0000000000..464ad8c3b5 Binary files /dev/null and b/themes/minimized/images/logo_header.png differ diff --git a/themes/minimized/images/menu_background.png b/themes/minimized/images/menu_background.png new file mode 100644 index 0000000000..e98bd3020f Binary files /dev/null and b/themes/minimized/images/menu_background.png differ diff --git a/themes/minimized/images/qr_code.png b/themes/minimized/images/qr_code.png new file mode 100644 index 0000000000..7742e72fe4 Binary files /dev/null and b/themes/minimized/images/qr_code.png differ diff --git a/themes/minimized/root.php b/themes/minimized/root.php new file mode 100644 index 0000000000..7b882438ea --- /dev/null +++ b/themes/minimized/root.php @@ -0,0 +1,50 @@ + + Portions created by the Initial Developer are Copyright (C) 2008-2012 + the Initial Developer. All Rights Reserved. + + Contributor(s): + Mark J Crane +*/ + +// make sure the PATH_SEPARATOR is defined + if (!defined("PATH_SEPARATOR")) { + if ( strpos( $_ENV[ "OS" ], "Win" ) !== false ) { define("PATH_SEPARATOR", ";"); } else { define("PATH_SEPARATOR", ":"); } + } + +// make sure the document_root is set + $_SERVER["SCRIPT_FILENAME"] = str_replace("\\", "/", $_SERVER["SCRIPT_FILENAME"]); + $_SERVER["DOCUMENT_ROOT"] = str_replace($_SERVER["PHP_SELF"], "", $_SERVER["SCRIPT_FILENAME"]); + $_SERVER["DOCUMENT_ROOT"] = realpath($_SERVER["DOCUMENT_ROOT"]); + //echo "DOCUMENT_ROOT: ".$_SERVER["DOCUMENT_ROOT"]."
\n"; + //echo "PHP_SELF: ".$_SERVER["PHP_SELF"]."
\n"; + //echo "SCRIPT_FILENAME: ".$_SERVER["SCRIPT_FILENAME"]."
\n"; + +// if the project directory exists then add it to the include path otherwise add the document root to the include path + if (is_dir($_SERVER["DOCUMENT_ROOT"].'/fusionpbx')){ + if(!defined('PROJECT_PATH')) { define('PROJECT_PATH', '/fusionpbx'); } + set_include_path( get_include_path() . PATH_SEPARATOR . $_SERVER["DOCUMENT_ROOT"].'/fusionpbx' ); + } + else { + if(!defined('PROJECT_PATH')) { define('PROJECT_PATH', ''); } + set_include_path( get_include_path() . PATH_SEPARATOR . $_SERVER['DOCUMENT_ROOT'] ); + } + +?> \ No newline at end of file diff --git a/themes/minimized/template.php b/themes/minimized/template.php new file mode 100644 index 0000000000..d669602ed4 --- /dev/null +++ b/themes/minimized/template.php @@ -0,0 +1,1426 @@ +\n"; + } +?> + + +<!--{title}--> + + 0) { + $php_self_dir = substr($php_self_dir, strlen(PROJECT_PATH), strlen($php_self_dir)); + } + if (isset($_SESSION['theme']['favicon']['text'])){ + $favicon = $_SESSION['theme']['favicon']['text']; + } + else { + $favicon = '/themes/minimized/favicon.ico'; + } +?> + + + + + + + + + + + + + + + + + + + + + + + + $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + +// set message_onload + if (strlen($_SESSION['message']) > 0) { + $message_text = addslashes($_SESSION['message']); + $message_mood = $_SESSION['message_mood']; + + $onload .= "display_message('".$message_text."'"; + if ($message_mood != '') { + $onload .= ", '".$message_mood."'"; + } + $onload .= "); "; + unset($_SESSION['message'], $_SESSION['message_mood']); + } +?> + + + +
+
+ + 0) { ?> + + + + 0 && permission_exists("domain_select") && count($_SESSION['domains']) > 1) { + + ?> +
+ +
+
+ + () +

+ +
+
+ "; + 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']); + } + ?> +
+ + + +
+ + + + 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/minimized/images/backgrounds/'.$background_image; + } + + } + else { + // not set, so use default backgrounds folder and images + $image_source = 'folder'; + $source_path = PROJECT_PATH.'/themes/minimized/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; + } + + //show the background + if ($_SESSION['background_image'] != '') { + echo "
\n"; + } + + } + + // check for background color + else if ( + $_SESSION['theme']['background_color'][0] != '' || + $_SESSION['theme']['background_color'][1] != '' + ) { // background color 1 or 2 is enabled + + echo "bg1 = ".$_SESSION['theme']['background_color'][0]."

"; + echo "bg2 = ".$_SESSION['theme']['background_color'][1]."

"; + + if ($_SESSION['theme']['background_color'][0] != '' && $_SESSION['theme']['background_color'][1] == '') { // use color 1 + echo "
 
\n"; + } + else if ($_SESSION['theme']['background_color'][0] == '' && $_SESSION['theme']['background_color'][1] != '') { // use color 2 + echo "
 
\n"; + } + else if ($_SESSION['theme']['background_color'][0] != '' && $_SESSION['theme']['background_color'][1] != '') { // vertical gradient + echo "
 
\n"; + } + else { // default: white + echo "
 
\n"; + } + } + ?> + + "; + echo "
"; + echo " "; + echo "
"; + echo ""; + ?> + +
+ + + + + + + 0) { + ?> + + + + + + + +
+ + + + +
+ $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 "
"; + } + } + ?> +
+
+ + + + +
+ +
+
+ + +
+ + + + +
+ +


+
+
+ +
+ + +
+ + + + +
+ +
+ +


+
+
+ fusionpbx.com. All rights reserved.\n"; + echo "\n"; + ?> + + + \ No newline at end of file