diff --git a/core/backup/backup.php b/core/backup/backup.php deleted file mode 100644 index 3f65791dc8..0000000000 --- a/core/backup/backup.php +++ /dev/null @@ -1,45 +0,0 @@ - - Portions created by the Initial Developer are Copyright (C) 2008-2012 - the Initial Developer. All Rights Reserved. - - Contributor(s): - Mark J Crane -*/ -include "root.php"; -require_once "resources/require.php"; -require_once "resources/check_auth.php"; - -if (if_group("superadmin")) { - - $fh = fopen($db_file_path.'/'.$dbfilename, 'r+b'); - $contents = fread($fh, filesize($db_file_path.'/'.$dbfilename)); - - header("Content-disposition: attachment; filename=$dbfilename"); - header("Content-Type: application/force-download"); - header("Content-Transfer-Encoding: binary"); - header("Content-Length: ".strlen($contents)); - header("Pragma: no-cache"); - header("Expires: 0"); - - echo $contents; -} - -?> diff --git a/core/backup/backupandrestore.php b/core/backup/backupandrestore.php deleted file mode 100644 index 8fb7dd7454..0000000000 --- a/core/backup/backupandrestore.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 -*/ -include "root.php"; -require_once "resources/require.php"; -require_once "resources/check_auth.php"; - -if (if_group("superadmin")) { - - echo "\n"; - echo "\n"; - echo " \n"; - echo "\n"; - echo "\n"; - echo " \n"; - echo " \n"; - echo "\n"; - echo "
Backup
\n"; - echo " download \n"; - echo " \n"; - echo "
\n"; - echo "To backup your application click on the download link and then choose \n"; - echo "a safe location on your computer to save the file. You may want to \n"; - echo "save the backup to more than one computer to prevent the backup from being lost. \n"; - echo "
\n"; - echo "
\n"; - echo "
\n"; - echo "\n"; - - echo "
\n"; - echo "
"; - echo "

"; - - /* - echo "Restore Application
\n"; - echo "
\n"; - //Browse to Backup File - echo "Click on 'Browse' then locate and select the application backup file named '.bak'. \n"; - echo "Then click on 'Restore.' \n"; - echo "

"; - - echo "
"; - echo "
"; - echo " "; - echo " \n"; - echo " \n"; - echo " \n"; - echo "
\n"; - echo " "; - echo " "; - echo " "; - echo "
"; - echo " \n"; - echo " \n"; - echo "
"; - echo "
\n"; - echo "
\n"; - echo "
"; - - echo "
"; - */ - - } - -?> diff --git a/core/backup/root.php b/core/backup/root.php deleted file mode 100644 index 7b882438ea..0000000000 --- a/core/backup/root.php +++ /dev/null @@ -1,50 +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"]); - $_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