mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
22 lines
416 B
PHP
22 lines
416 B
PHP
<?php
|
|
|
|
require('../../config.php');
|
|
require_once('lib.php');
|
|
require_once('database_export_form.php');
|
|
|
|
require_login();
|
|
admin_externalpage_setup('dbexport');
|
|
|
|
//create form
|
|
$form = new database_export_form();
|
|
|
|
if ($data = $form->get_data()) {
|
|
dbtransfer_export_xml_database($data->description, $DB);
|
|
die;
|
|
}
|
|
|
|
echo $OUTPUT->header();
|
|
// TODO: add some more info here
|
|
$form->display();
|
|
echo $OUTPUT->footer();
|