diff --git a/themes/enhanced/app_languages.php b/themes/enhanced/app_languages.php deleted file mode 100644 index a48f189b63..0000000000 --- a/themes/enhanced/app_languages.php +++ /dev/null @@ -1,51 +0,0 @@ - \ No newline at end of file diff --git a/themes/enhanced/config.php b/themes/enhanced/config.php deleted file mode 100644 index e7c9d3a35c..0000000000 --- a/themes/enhanced/config.php +++ /dev/null @@ -1,12 +0,0 @@ -"; - $v_link_label_add = ""; - $v_link_label_delete = ""; - $v_link_label_view = ""; - $v_link_label_play = ""; - $v_link_label_pause = ""; - $v_link_label_download = ""; - -?> diff --git a/themes/enhanced/favicon.ico b/themes/enhanced/favicon.ico deleted file mode 100644 index e0c7a83001..0000000000 Binary files a/themes/enhanced/favicon.ico and /dev/null differ diff --git a/themes/enhanced/images/background_black.png b/themes/enhanced/images/background_black.png deleted file mode 100644 index 4d4d00813f..0000000000 Binary files a/themes/enhanced/images/background_black.png and /dev/null differ diff --git a/themes/enhanced/images/background_cell.gif b/themes/enhanced/images/background_cell.gif deleted file mode 100644 index 2938f2af48..0000000000 Binary files a/themes/enhanced/images/background_cell.gif and /dev/null differ diff --git a/themes/enhanced/images/background_cell_active.gif b/themes/enhanced/images/background_cell_active.gif deleted file mode 100644 index 7dbcf6a6fd..0000000000 Binary files a/themes/enhanced/images/background_cell_active.gif and /dev/null differ diff --git a/themes/enhanced/images/background_cell_conference.gif b/themes/enhanced/images/background_cell_conference.gif deleted file mode 100644 index 7b5b792bdc..0000000000 Binary files a/themes/enhanced/images/background_cell_conference.gif and /dev/null differ diff --git a/themes/enhanced/images/background_cell_fifo.gif b/themes/enhanced/images/background_cell_fifo.gif deleted file mode 100644 index a0082263b6..0000000000 Binary files a/themes/enhanced/images/background_cell_fifo.gif and /dev/null differ diff --git a/themes/enhanced/images/background_cell_light.gif b/themes/enhanced/images/background_cell_light.gif deleted file mode 100644 index 76d32d0b8d..0000000000 Binary files a/themes/enhanced/images/background_cell_light.gif and /dev/null differ diff --git a/themes/enhanced/images/background_th.png b/themes/enhanced/images/background_th.png deleted file mode 100644 index 6eb3b4dd94..0000000000 Binary files a/themes/enhanced/images/background_th.png and /dev/null differ diff --git a/themes/enhanced/images/backgrounds/blue_blur.jpg b/themes/enhanced/images/backgrounds/blue_blur.jpg deleted file mode 100644 index 143d1a48e2..0000000000 Binary files a/themes/enhanced/images/backgrounds/blue_blur.jpg and /dev/null differ diff --git a/themes/enhanced/images/backgrounds/license.txt b/themes/enhanced/images/backgrounds/license.txt deleted file mode 100644 index a659d5e0d6..0000000000 --- a/themes/enhanced/images/backgrounds/license.txt +++ /dev/null @@ -1,9 +0,0 @@ -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/enhanced/images/backgrounds/sand.jpg b/themes/enhanced/images/backgrounds/sand.jpg deleted file mode 100644 index 655e1634ba..0000000000 Binary files a/themes/enhanced/images/backgrounds/sand.jpg and /dev/null differ diff --git a/themes/enhanced/images/backgrounds/sand_sea.jpg b/themes/enhanced/images/backgrounds/sand_sea.jpg deleted file mode 100644 index 9aee5bc37f..0000000000 Binary files a/themes/enhanced/images/backgrounds/sand_sea.jpg and /dev/null differ diff --git a/themes/enhanced/images/backgrounds/wave.jpg b/themes/enhanced/images/backgrounds/wave.jpg deleted file mode 100644 index 4034c79b4d..0000000000 Binary files a/themes/enhanced/images/backgrounds/wave.jpg and /dev/null differ diff --git a/themes/enhanced/images/backgrounds/yellowstone_3.jpg b/themes/enhanced/images/backgrounds/yellowstone_3.jpg deleted file mode 100644 index 3673cd5c65..0000000000 Binary files a/themes/enhanced/images/backgrounds/yellowstone_3.jpg and /dev/null differ diff --git a/themes/enhanced/images/backgrounds/yellowstone_4.jpg b/themes/enhanced/images/backgrounds/yellowstone_4.jpg deleted file mode 100644 index 9011f7b45c..0000000000 Binary files a/themes/enhanced/images/backgrounds/yellowstone_4.jpg and /dev/null differ diff --git a/themes/enhanced/images/blank.gif b/themes/enhanced/images/blank.gif deleted file mode 100644 index 75b945d255..0000000000 Binary files a/themes/enhanced/images/blank.gif and /dev/null differ diff --git a/themes/enhanced/images/content_background.png b/themes/enhanced/images/content_background.png deleted file mode 100644 index 6b33cae806..0000000000 Binary files a/themes/enhanced/images/content_background.png and /dev/null differ diff --git a/themes/enhanced/images/icon_add.png b/themes/enhanced/images/icon_add.png deleted file mode 100644 index 5715569041..0000000000 Binary files a/themes/enhanced/images/icon_add.png and /dev/null differ diff --git a/themes/enhanced/images/icon_cdr_inbound_answered.png b/themes/enhanced/images/icon_cdr_inbound_answered.png deleted file mode 100644 index 5d4bbf8dfc..0000000000 Binary files a/themes/enhanced/images/icon_cdr_inbound_answered.png and /dev/null differ diff --git a/themes/enhanced/images/icon_cdr_inbound_cancelled.png b/themes/enhanced/images/icon_cdr_inbound_cancelled.png deleted file mode 100644 index fd2fe0fe42..0000000000 Binary files a/themes/enhanced/images/icon_cdr_inbound_cancelled.png and /dev/null differ diff --git a/themes/enhanced/images/icon_cdr_inbound_failed.png b/themes/enhanced/images/icon_cdr_inbound_failed.png deleted file mode 100644 index 9cecaf7315..0000000000 Binary files a/themes/enhanced/images/icon_cdr_inbound_failed.png and /dev/null differ diff --git a/themes/enhanced/images/icon_cdr_inbound_voicemail.png b/themes/enhanced/images/icon_cdr_inbound_voicemail.png deleted file mode 100644 index fd2fe0fe42..0000000000 Binary files a/themes/enhanced/images/icon_cdr_inbound_voicemail.png and /dev/null differ diff --git a/themes/enhanced/images/icon_cdr_local_answered.png b/themes/enhanced/images/icon_cdr_local_answered.png deleted file mode 100644 index 798c84c3e4..0000000000 Binary files a/themes/enhanced/images/icon_cdr_local_answered.png and /dev/null differ diff --git a/themes/enhanced/images/icon_cdr_local_cancelled.png b/themes/enhanced/images/icon_cdr_local_cancelled.png deleted file mode 100644 index 8c0132286b..0000000000 Binary files a/themes/enhanced/images/icon_cdr_local_cancelled.png and /dev/null differ diff --git a/themes/enhanced/images/icon_cdr_local_failed.png b/themes/enhanced/images/icon_cdr_local_failed.png deleted file mode 100644 index 4b18366aab..0000000000 Binary files a/themes/enhanced/images/icon_cdr_local_failed.png and /dev/null differ diff --git a/themes/enhanced/images/icon_cdr_local_voicemail.png b/themes/enhanced/images/icon_cdr_local_voicemail.png deleted file mode 100644 index 8c0132286b..0000000000 Binary files a/themes/enhanced/images/icon_cdr_local_voicemail.png and /dev/null differ diff --git a/themes/enhanced/images/icon_cdr_outbound_answered.png b/themes/enhanced/images/icon_cdr_outbound_answered.png deleted file mode 100644 index 900d187503..0000000000 Binary files a/themes/enhanced/images/icon_cdr_outbound_answered.png and /dev/null differ diff --git a/themes/enhanced/images/icon_cdr_outbound_cancelled.png b/themes/enhanced/images/icon_cdr_outbound_cancelled.png deleted file mode 100644 index cf1f4cd1aa..0000000000 Binary files a/themes/enhanced/images/icon_cdr_outbound_cancelled.png and /dev/null differ diff --git a/themes/enhanced/images/icon_cdr_outbound_failed.png b/themes/enhanced/images/icon_cdr_outbound_failed.png deleted file mode 100644 index 1d2946dc48..0000000000 Binary files a/themes/enhanced/images/icon_cdr_outbound_failed.png and /dev/null differ diff --git a/themes/enhanced/images/icon_delete.png b/themes/enhanced/images/icon_delete.png deleted file mode 100644 index a77161f734..0000000000 Binary files a/themes/enhanced/images/icon_delete.png and /dev/null differ diff --git a/themes/enhanced/images/icon_domain_selector.png b/themes/enhanced/images/icon_domain_selector.png deleted file mode 100644 index 65e50cae84..0000000000 Binary files a/themes/enhanced/images/icon_domain_selector.png and /dev/null differ diff --git a/themes/enhanced/images/icon_download.png b/themes/enhanced/images/icon_download.png deleted file mode 100644 index 931554ec64..0000000000 Binary files a/themes/enhanced/images/icon_download.png and /dev/null differ diff --git a/themes/enhanced/images/icon_edit.png b/themes/enhanced/images/icon_edit.png deleted file mode 100644 index 93e573bbe7..0000000000 Binary files a/themes/enhanced/images/icon_edit.png and /dev/null differ diff --git a/themes/enhanced/images/icon_logout.png b/themes/enhanced/images/icon_logout.png deleted file mode 100644 index eecb2fe85d..0000000000 Binary files a/themes/enhanced/images/icon_logout.png and /dev/null differ diff --git a/themes/enhanced/images/icon_pause.png b/themes/enhanced/images/icon_pause.png deleted file mode 100644 index c3aea46eb5..0000000000 Binary files a/themes/enhanced/images/icon_pause.png and /dev/null differ diff --git a/themes/enhanced/images/icon_play.png b/themes/enhanced/images/icon_play.png deleted file mode 100644 index 915d58986d..0000000000 Binary files a/themes/enhanced/images/icon_play.png and /dev/null differ diff --git a/themes/enhanced/images/icon_view.png b/themes/enhanced/images/icon_view.png deleted file mode 100644 index 0d8df9f1f1..0000000000 Binary files a/themes/enhanced/images/icon_view.png and /dev/null differ diff --git a/themes/enhanced/images/login_background.png b/themes/enhanced/images/login_background.png deleted file mode 100644 index 3c1be0c473..0000000000 Binary files a/themes/enhanced/images/login_background.png and /dev/null differ diff --git a/themes/enhanced/images/logo.png b/themes/enhanced/images/logo.png deleted file mode 100644 index 1dcd520efa..0000000000 Binary files a/themes/enhanced/images/logo.png and /dev/null differ diff --git a/themes/enhanced/images/menu_background.png b/themes/enhanced/images/menu_background.png deleted file mode 100644 index e98bd3020f..0000000000 Binary files a/themes/enhanced/images/menu_background.png and /dev/null differ diff --git a/themes/enhanced/images/qr_code.png b/themes/enhanced/images/qr_code.png deleted file mode 100644 index 7742e72fe4..0000000000 Binary files a/themes/enhanced/images/qr_code.png and /dev/null differ diff --git a/themes/enhanced/images/warning.png b/themes/enhanced/images/warning.png deleted file mode 100644 index 628cf2dae3..0000000000 Binary files a/themes/enhanced/images/warning.png and /dev/null differ diff --git a/themes/enhanced/root.php b/themes/enhanced/root.php deleted file mode 100644 index 55f9565d6a..0000000000 --- a/themes/enhanced/root.php +++ /dev/null @@ -1,87 +0,0 @@ - - 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"]); - if(PHP_SAPI == 'cli'){ - chdir(pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME)); - $script_full_path = str_replace("\\", '/', getcwd() . '/' . $_SERVER["SCRIPT_FILENAME"]); - $dirs = explode('/', pathinfo($script_full_path, PATHINFO_DIRNAME)); - if (file_exists('/project_root.php')) { - $path = '/'; - } else { - $i = 1; - $path = ''; - while ($i < count($dirs)) { - $path .= '/' . $dirs[$i]; - if (file_exists($path. '/project_root.php')) { - break; - } - $i++; - } - } - $_SERVER["DOCUMENT_ROOT"] = $path; - }else{ - $_SERVER["DOCUMENT_ROOT"] = str_replace($_SERVER["PHP_SELF"], "", $_SERVER["SCRIPT_FILENAME"]); - } - $_SERVER["DOCUMENT_ROOT"] = realpath($_SERVER["DOCUMENT_ROOT"]); -// try to detect if a project path is being used - if (!defined('PROJECT_PATH')) { - if (is_dir($_SERVER["DOCUMENT_ROOT"]. '/fusionpbx')) { - define('PROJECT_PATH', '/fusionpbx'); - } elseif (file_exists($_SERVER["DOCUMENT_ROOT"]. '/project_root.php')) { - define('PROJECT_PATH', ''); - } else { - $dirs = explode('/', str_replace('\\', '/', pathinfo($_SERVER["PHP_SELF"], PATHINFO_DIRNAME))); - $i = 1; - $path = $_SERVER["DOCUMENT_ROOT"]; - while ($i < count($dirs)) { - $path .= '/' . $dirs[$i]; - if (file_exists($path. '/project_root.php')) { - break; - } - $i++; - } - if(!file_exists($path. '/project_root.php')){ - die("Failed to locate the Project Root by searching for project_root.php please contact support for assistance"); - } - $project_path = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path); - define('PROJECT_PATH', $project_path); - } - $_SERVER["PROJECT_ROOT"] = realpath($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH); - set_include_path(get_include_path() . PATH_SEPARATOR . $_SERVER["PROJECT_ROOT"]); - } - -?> \ No newline at end of file diff --git a/themes/enhanced/template.php b/themes/enhanced/template.php deleted file mode 100644 index e93d2b9fd3..0000000000 --- a/themes/enhanced/template.php +++ /dev/null @@ -1,1806 +0,0 @@ -\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/enhanced/favicon.ico'; - } -?> - - - - - - - - - - - - - - - - - - - - - - - - -get(null,'themes/enhanced'); - -// set message_onload -if (strlen($_SESSION['message']) > 0) { - $message_text = addslashes($_SESSION['message']); - $message_mood = $_SESSION['message_mood']; - $message_delay = $_SESSION['message_delay']; - - $onload .= "display_message('".$message_text."'"; - $onload .= ($message_mood != '') ? ", '".$message_mood."'" : ", 'default'"; - if ($message_delay != '') { - $onload .= ", '".$message_delay."'"; - } - $onload .= "); "; - unset($_SESSION['message'], $_SESSION['message_mood'], $_SESSION['message_delay']); -} -?> - - - -
-
- - 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']); - } - ?> -
- - - -
- - - - 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/enhanced/images/backgrounds/'.$background_image; - } - - } - else { - // not set, so use default backgrounds folder and images - $image_source = 'folder'; - $source_path = PROJECT_PATH.'/themes/enhanced/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) { - ?> - - - - - - - - - - - - - -
- - - - - -
- 0) { - echo ""; - } - else { - if (!$default_login) { - echo ""; - } - } - } - ?> - - "; - - //domain selector icon - if ($_SESSION["username"] != '' && permission_exists("domain_select") && count($_SESSION['domains']) > 1) { - echo "".$_SESSION['domain_name'].""; - } - - //logout icon - if ($_SESSION['username'] != '' && $_SESSION['theme']['logout_icon_visible']['text'] == "true") { - $username_full = $_SESSION['username'].((count($_SESSION['domains']) > 1) ? "@".$_SESSION["user_context"] : null); - echo ""; - unset($username_full); - } - - echo "\n"; - - // login form - if ($_SERVER['PHP_SELF'] != PROJECT_PATH."/resources/install.php" && !$default_login) { - if (strlen($_SESSION["username"]) == 0) { - //add multi-lingual support - require_once "core/user_settings/app_languages.php"; - foreach($text as $key => $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"; - if (isset($_SESSION['theme']['bottom_html']['text'])){ - echo $_SESSION['theme']['bottom_html']['text']; - } - ?> - - -