Commit 135fff66 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Port to web2project.

parent f6ad31ca
...@@ -13,9 +13,9 @@ $perms =& $AppUI->acl(); ...@@ -13,9 +13,9 @@ $perms =& $AppUI->acl();
if (! $perms->checkModule('backup', 'view')) if (! $perms->checkModule('backup', 'view'))
$AppUI->redirect('m=public&a=access_denied'); $AppUI->redirect('m=public&a=access_denied');
$export_what = dPgetParam($_POST, 'export_what'); $export_what = w2PgetParam($_POST, 'export_what');
$output_format = dPgetParam($_POST, 'output_format'); $output_format = w2PgetParam($_POST, 'output_format');
$droptable = dPgetParam($_POST, 'droptable', false); $droptable = w2PgetParam($_POST, 'droptable', false);
$valid_export_options = array('all', 'table', 'data'); $valid_export_options = array('all', 'table', 'data');
$valid_output_formats = array('xml', 'zip', 'sql'); $valid_output_formats = array('xml', 'zip', 'sql');
......
...@@ -15,7 +15,7 @@ if (! isset($_FILES['xmlfile'])) { ...@@ -15,7 +15,7 @@ if (! isset($_FILES['xmlfile'])) {
} }
$upload_tmp_file = $_FILES['xmlfile']['tmp_name']; $upload_tmp_file = $_FILES['xmlfile']['tmp_name'];
$continue = dPgetParam($_POST, 'continue', false); $continue = w2PgetParam($_POST, 'continue', false);
require_once $baseDir . '/lib/adodb/adodb-xmlschema.inc.php'; require_once $baseDir . '/lib/adodb/adodb-xmlschema.inc.php';
$schema = new adoSchema($GLOBALS['db']); $schema = new adoSchema($GLOBALS['db']);
......
...@@ -20,7 +20,7 @@ $config['mod_ui_icon'] = 'companies.gif'; ...@@ -20,7 +20,7 @@ $config['mod_ui_icon'] = 'companies.gif';
$config['mod_description'] = 'A module for backing up the database'; $config['mod_description'] = 'A module for backing up the database';
if (@$a == 'setup') { if (@$a == 'setup') {
echo dPshowModuleConfig( $config ); echo w2PshowModuleConfig( $config );
} }
class CSetupBackup { class CSetupBackup {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment