From b67f9dee452ce745673ba0418c6d77eeec73a0a2 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Sat, 16 Jan 2016 10:33:46 -0700 Subject: [PATCH] This doesn't appear to be completed. The developer that created should talk to me about what its purpose is as this seems to duplicate domain settings. --- app/tenant_settings/app_config.php | 34 ------- app/tenant_settings/app_defaults.php | 27 ------ app/tenant_settings/app_languages.php | 13 --- app/tenant_settings/app_menu.php | 22 ----- app/tenant_settings/root.php | 84 ---------------- app/tenant_settings/tenant_settings.php | 123 ------------------------ 6 files changed, 303 deletions(-) delete mode 100644 app/tenant_settings/app_config.php delete mode 100644 app/tenant_settings/app_defaults.php delete mode 100644 app/tenant_settings/app_languages.php delete mode 100644 app/tenant_settings/app_menu.php delete mode 100644 app/tenant_settings/root.php delete mode 100644 app/tenant_settings/tenant_settings.php diff --git a/app/tenant_settings/app_config.php b/app/tenant_settings/app_config.php deleted file mode 100644 index 96cf025ccd..0000000000 --- a/app/tenant_settings/app_config.php +++ /dev/null @@ -1,34 +0,0 @@ - \ No newline at end of file diff --git a/app/tenant_settings/app_defaults.php b/app/tenant_settings/app_defaults.php deleted file mode 100644 index 2ac03f6e28..0000000000 --- a/app/tenant_settings/app_defaults.php +++ /dev/null @@ -1,27 +0,0 @@ - - Portions created by the Initial Developer are Copyright (C) 2008-2015 - the Initial Developer. All Rights Reserved. - - Contributor(s): - Matthew Vale -*/ - -?> \ No newline at end of file diff --git a/app/tenant_settings/app_languages.php b/app/tenant_settings/app_languages.php deleted file mode 100644 index 5ec9b9f028..0000000000 --- a/app/tenant_settings/app_languages.php +++ /dev/null @@ -1,13 +0,0 @@ - \ No newline at end of file diff --git a/app/tenant_settings/app_menu.php b/app/tenant_settings/app_menu.php deleted file mode 100644 index 573d9fb590..0000000000 --- a/app/tenant_settings/app_menu.php +++ /dev/null @@ -1,22 +0,0 @@ - \ No newline at end of file diff --git a/app/tenant_settings/root.php b/app/tenant_settings/root.php deleted file mode 100644 index 899238f027..0000000000 --- a/app/tenant_settings/root.php +++ /dev/null @@ -1,84 +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')) { - $path = '/'; - } else { - $i = 1; - $path = ''; - while ($i < count($dirs)) { - $path .= '/' . $dirs[$i]; - if (file_exists($path. '/.project.ROOT')) { - 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')) { - 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')) { - break; - } - $i++; - } - $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/app/tenant_settings/tenant_settings.php b/app/tenant_settings/tenant_settings.php deleted file mode 100644 index 6f9664579d..0000000000 --- a/app/tenant_settings/tenant_settings.php +++ /dev/null @@ -1,123 +0,0 @@ - - Portions created by the Initial Developer are Copyright (C) 2008-2015 - the Initial Developer. All Rights Reserved. - - Contributor(s): - Matthew Vale -*/ -require_once "root.php"; -require_once "resources/require.php"; -require_once "resources/check_auth.php"; -if (permission_exists('tenant_settings_view')) { - //access granted -} -else { - echo "access denied"; - exit; -} -//add multi-lingual support - $language = new text; - $text = $language->get(); - -//header and paging - require_once "resources/header.php"; - $document['title'] = $text['title-tenant_settings']; - require_once "resources/paging.php"; - -//get variables used to control the order - $order_by = $_GET["order_by"]; - $order = $_GET["order"]; - -//copy settings javascript - if (permission_exists("tenant_settings_admin") && count($_SESSION['domains']) > 1) { - echo ""; - } - -//show the content - echo "
"; - echo ""; - - echo "\n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo "
"; - echo " ".$text['header-default_settings'].""; - echo "

"; - echo " ".$text['description-default_settings']; - echo "
"; - echo " \n"; - if (permission_exists("domain_select") && permission_exists("domain_setting_add") && count($_SESSION['domains']) > 1) { - echo " "; - echo " "; - echo " \n"; - echo " "; - } - echo " "; - echo "
\n"; - echo "
"; - - -//include the footer - require_once "resources/footer.php"; -?> \ No newline at end of file