Portions created by the Initial Developer are Copyright (C) 2008-2012 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane Matthew Vale */ require_once "root.php"; require_once "resources/require.php"; require_once "resources/check_auth.php"; //detect install state $install_enabled = true; if (file_exists($_SERVER["PROJECT_ROOT"]."/resources/config.php")) { $install_enabled = false; } elseif (file_exists("/etc/fusionpbx/config.php")) { //linux $install_enabled = false; } elseif (file_exists("/usr/local/etc/fusionpbx/config.php")) { $install_enabled = false; } if($install_enabled) { header("Location: ".PROJECT_PATH."/core/install/install.php"); exit; } require_once "resources/check_auth.php"; if (!if_group("superadmin")) { echo "access denied"; exit; } //add multi-lingual support $language = new text; $text = $language->get(); //includes and title require_once "resources/header.php"; $document['title'] = $text['title-install']; echo "".$text['header-install'].""; echo "

"; echo $text['description-install']; echo "

"; echo "
\n"; echo "\n"; echo "\n"; echo " \n"; echo " \n"; echo "\n"; echo "
\n"; echo " "; echo " \n"; echo " \n"; echo "
\n"; echo "
\n"; //include the footer require_once "resources/footer.php"; ?>