// // ------------------------------------------------------------------------ // // This program is free software; you can redistribute it and/or modify // // it under the terms of the GNU General Public License as published by // // the Free Software Foundation; either version 2 of the License, or // // (at your option) any later version. // // // // You may not change or alter any portion of this comment or credits // // of supporting developers from this source code or any supporting // // source code which is considered copyrighted (c) material of the // // original comment or credit authors. // // // // This program is distributed in the hope that it will be useful, // // but WITHOUT ANY WARRANTY; without even the implied warranty of // // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // // GNU General Public License for more details. // // // // You should have received a copy of the GNU General Public License // // along with this program; if not, write to the Free Software // // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------ // include '../../../include/cp_header.php'; require('../include/zip.lib.php'); require('../include/defines.lib.php'); require('../include/read_dump.lib.php'); // Include backup functions include("backup.ini.php"); include("backup.inc"); xoops_cp_header(); // Make sure we pick up variables passed via URL if( isset( $_GET[ 'mode' ] ) ) $mode = $_GET[ 'mode' ]; else $mode = '' ; if( isset( $_GET[ 'action' ] ) ) $action = $_GET[ 'action' ]; else $action = '' ; if( isset( $_GET[ 'num_tables' ] ) ) $num_tables = $_GET[ 'num_tables' ]; else $num_tables = '' ; if( isset( $_GET[ 'checkall' ] ) ) $checkall = $_GET[ 'checkall' ]; else $checkall = '' ; // Display Admin Menu Tag include_once './adminmenu.php'; // Handle URL actions switch ($mode) { case POST_SELECT_MODULE_FORM: { $select_dirname = isset($_GET['dirname']) ? $_GET['dirname'] : 0; $mod_selections = make_module_selection($select_dirname); echo "
\n"; echo ""; break; } case POST_DB_SELECT_FORM: { $select_dirname = isset($_GET['dirname']) ? $_GET['dirname'] : 0; $mod_selections = make_module_selection($select_dirname,1); // Get list of tables in the database and output form if ($action=="module" && $dirname){ $result = get_module_tables($dirname); $num_tables = sizeof($result); $checkall = true; }else{ $result = mysql_list_tables($db_selected); $num_tables = mysql_num_rows($result); } echo "| Backup MySQL Data |
Select database to backup from"; } if ($action == "backup") echo " \n"; echo " |