2015-05-22 11:43:20 +00:00
|
|
|
<?php
|
2016-12-25 23:02:35 +00:00
|
|
|
session_name('MySQLDumper');
|
|
|
|
session_start();
|
2016-11-09 17:46:37 +00:00
|
|
|
include(dirname(__FILE__) . '/functions.php');
|
|
|
|
$msd_path = basePath();
|
|
|
|
if (!defined('MSD_PATH')) {
|
|
|
|
define('MSD_PATH', $msd_path);
|
|
|
|
}
|
|
|
|
if (!isset($download)) {
|
|
|
|
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
|
|
|
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
|
|
|
|
header("Cache-Control: no-store, no-cache, must-revalidate");
|
|
|
|
header("Cache-Control: post-check=0, pre-check=0", false);
|
|
|
|
header("Pragma: no-cache");
|
|
|
|
}
|
|
|
|
include(MSD_PATH . 'inc/mysql.php');
|
|
|
|
if (!defined('MSD_VERSION')) {
|
|
|
|
die('No direct access.');
|
|
|
|
}
|
|
|
|
if (!file_exists($config['files']['parameter'])) {
|
|
|
|
$error = TestWorkDir();
|
2015-05-22 11:43:20 +00:00
|
|
|
}
|
|
|
|
read_config($config['config_file']);
|
2016-11-09 17:46:37 +00:00
|
|
|
include(MSD_PATH . 'language/lang_list.php');
|
|
|
|
if (!isset($databases['db_selected_index'])) {
|
|
|
|
$databases['db_selected_index'] = 0;
|
|
|
|
}
|
2015-05-22 11:43:20 +00:00
|
|
|
SelectDB($databases['db_selected_index']);
|
2016-11-09 17:46:37 +00:00
|
|
|
$config['files']['iconpath'] = './css/' . $config['theme'] . '/icons/';
|
|
|
|
if (isset($error)) {
|
|
|
|
echo $error;
|
|
|
|
}
|