diff --git a/themes/nature/config.php b/themes/nature/config.php new file mode 100644 index 0000000000..d778c68a82 --- /dev/null +++ b/themes/nature/config.php @@ -0,0 +1,9 @@ +"; + $v_link_label_add = "add"; + $v_link_label_delete = "delete"; + $v_link_label_view = "add"; + +?> diff --git a/themes/nature/favicon.ico b/themes/nature/favicon.ico new file mode 100644 index 0000000000..e0c7a83001 Binary files /dev/null and b/themes/nature/favicon.ico differ diff --git a/themes/nature/images/background_black.png b/themes/nature/images/background_black.png new file mode 100644 index 0000000000..4d4d00813f Binary files /dev/null and b/themes/nature/images/background_black.png differ diff --git a/themes/nature/images/background_cell.gif b/themes/nature/images/background_cell.gif new file mode 100644 index 0000000000..2938f2af48 Binary files /dev/null and b/themes/nature/images/background_cell.gif differ diff --git a/themes/nature/images/background_cell_active.gif b/themes/nature/images/background_cell_active.gif new file mode 100644 index 0000000000..7dbcf6a6fd Binary files /dev/null and b/themes/nature/images/background_cell_active.gif differ diff --git a/themes/nature/images/background_cell_conference.gif b/themes/nature/images/background_cell_conference.gif new file mode 100644 index 0000000000..7b5b792bdc Binary files /dev/null and b/themes/nature/images/background_cell_conference.gif differ diff --git a/themes/nature/images/background_cell_fifo.gif b/themes/nature/images/background_cell_fifo.gif new file mode 100644 index 0000000000..a0082263b6 Binary files /dev/null and b/themes/nature/images/background_cell_fifo.gif differ diff --git a/themes/nature/images/background_cell_light.gif b/themes/nature/images/background_cell_light.gif new file mode 100644 index 0000000000..76d32d0b8d Binary files /dev/null and b/themes/nature/images/background_cell_light.gif differ diff --git a/themes/nature/images/background_th.png b/themes/nature/images/background_th.png new file mode 100644 index 0000000000..6eb3b4dd94 Binary files /dev/null and b/themes/nature/images/background_th.png differ diff --git a/themes/nature/images/backgrounds/sand.jpg b/themes/nature/images/backgrounds/sand.jpg new file mode 100644 index 0000000000..655e1634ba Binary files /dev/null and b/themes/nature/images/backgrounds/sand.jpg differ diff --git a/themes/nature/images/backgrounds/yellowstone_3.jpg b/themes/nature/images/backgrounds/yellowstone_3.jpg new file mode 100644 index 0000000000..3673cd5c65 Binary files /dev/null and b/themes/nature/images/backgrounds/yellowstone_3.jpg differ diff --git a/themes/nature/images/backgrounds/yellowstone_4.jpg b/themes/nature/images/backgrounds/yellowstone_4.jpg new file mode 100644 index 0000000000..9011f7b45c Binary files /dev/null and b/themes/nature/images/backgrounds/yellowstone_4.jpg differ diff --git a/themes/nature/images/blank.gif b/themes/nature/images/blank.gif new file mode 100644 index 0000000000..75b945d255 Binary files /dev/null and b/themes/nature/images/blank.gif differ diff --git a/themes/nature/images/content_background.png b/themes/nature/images/content_background.png new file mode 100644 index 0000000000..6b33cae806 Binary files /dev/null and b/themes/nature/images/content_background.png differ diff --git a/themes/nature/images/icon_e.gif b/themes/nature/images/icon_e.gif new file mode 100644 index 0000000000..29508006ff Binary files /dev/null and b/themes/nature/images/icon_e.gif differ diff --git a/themes/nature/images/icon_e.png b/themes/nature/images/icon_e.png new file mode 100644 index 0000000000..5496ed3a23 Binary files /dev/null and b/themes/nature/images/icon_e.png differ diff --git a/themes/nature/images/icon_plus.gif b/themes/nature/images/icon_plus.gif new file mode 100644 index 0000000000..2a94eeb93f Binary files /dev/null and b/themes/nature/images/icon_plus.gif differ diff --git a/themes/nature/images/icon_plus.png b/themes/nature/images/icon_plus.png new file mode 100644 index 0000000000..1a3f39522f Binary files /dev/null and b/themes/nature/images/icon_plus.png differ diff --git a/themes/nature/images/icon_view.gif b/themes/nature/images/icon_view.gif new file mode 100644 index 0000000000..d11a5f00c8 Binary files /dev/null and b/themes/nature/images/icon_view.gif differ diff --git a/themes/nature/images/icon_x.gif b/themes/nature/images/icon_x.gif new file mode 100644 index 0000000000..24e4d49297 Binary files /dev/null and b/themes/nature/images/icon_x.gif differ diff --git a/themes/nature/images/icon_x.png b/themes/nature/images/icon_x.png new file mode 100644 index 0000000000..eb08bf4a4f Binary files /dev/null and b/themes/nature/images/icon_x.png differ diff --git a/themes/nature/images/login_background.png b/themes/nature/images/login_background.png new file mode 100644 index 0000000000..3c1be0c473 Binary files /dev/null and b/themes/nature/images/login_background.png differ diff --git a/themes/nature/images/logo.png b/themes/nature/images/logo.png new file mode 100644 index 0000000000..819d78a095 Binary files /dev/null and b/themes/nature/images/logo.png differ diff --git a/themes/nature/images/menu_background.png b/themes/nature/images/menu_background.png new file mode 100644 index 0000000000..e98bd3020f Binary files /dev/null and b/themes/nature/images/menu_background.png differ diff --git a/themes/nature/login.php b/themes/nature/login.php new file mode 100644 index 0000000000..ae7bda5675 --- /dev/null +++ b/themes/nature/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/nature/root.php b/themes/nature/root.php new file mode 100644 index 0000000000..7b882438ea --- /dev/null +++ b/themes/nature/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/nature/template.php b/themes/nature/template.php new file mode 100644 index 0000000000..1ee975e930 --- /dev/null +++ b/themes/nature/template.php @@ -0,0 +1,848 @@ +\n"; + } +?> + + +<!--{title}--> + + 0) { + $php_self_dir = substr($php_self_dir, strlen(PROJECT_PATH), strlen($php_self_dir)); + } +?> + + + + + + + + + + 1000) { break; }; + $x++; + } + } + if (strlen($_SESSION['background_image'])== 0) { + $_SESSION['background_image'] = $v_background_array[array_rand($v_background_array, 1)]; + } + + //show the background + echo "
\n"; + ?> + +
+ + + + + 0) { ?> + + + + + + + + + + + + + +
+ + + + + +
+ 0) { + echo ""; + } + else { + echo ""; + } + ?> + + 0 && permission_exists("domain_select") && count($_SESSION['domains']) > 1) { + //$tmp_style = "style=\"opacity:0.7;filter:alpha(opacity=70)\" "; + //$tmp_style .= "onmouseover=\"this.style.opacity=1;this.filters.alpha.opacity=90\" "; + //$tmp_style .= "onmouseout=\"this.style.opacity=0.7;this.filters.alpha.opacity=70\" "; + $tmp_style = "style=\"opacity:0.7;\" "; + $tmp_style .= "onmouseover=\"this.style.opacity=1;\" "; + $tmp_style .= "onmouseout=\"this.style.opacity=0.7;\" "; + echo " \n"; + } + + //logged out show the 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"; + //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-username'].":\n"; + //echo "\n"; + echo " \n"; + echo "
\n"; + //echo " ".$text['label-password'].":\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 "
\n"; + echo "
"; + echo "
"; + } + ?> +   +
+
+ + + + +
+ + 0) { + echo "
"; + echo "
".$_SESSION['message']."
"; + echo "
"; + unset($_SESSION['message']); + } + ?> + + +

+

+

+

+

+

+

+

+ +
+
+ \n"; + echo " fusionpbx.com. Copyright 2008 - 2013. All Rights Reserved\n"; + echo "\n"; + } + else { + echo "\n"; + } + ?> +
+ +
+ +