Fixed path issue mentioned in https://github.com/DSB/MySQLDumper/issues/5
Dieser Commit ist enthalten in:
Ursprung
bd4a75d915
Commit
59df7f8a82
2 geänderte Dateien mit 27 neuen und 18 gelöschten Zeilen
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
$msd_path = realpath(dirname(__FILE__) . '/../') . '/';
|
$msd_path = basePath();
|
||||||
if (!defined('MSD_PATH')) {
|
if (!defined('MSD_PATH')) {
|
||||||
define('MSD_PATH', $msd_path);
|
define('MSD_PATH', $msd_path);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,23 +1,32 @@
|
||||||
<?php
|
<?php
|
||||||
$msd_path=realpath(dirname(__FILE__) . '/../') . '/';
|
include(dirname(__FILE__) . '/functions.php');
|
||||||
if (!defined('MSD_PATH')) define('MSD_PATH',$msd_path);
|
$msd_path = basePath();
|
||||||
|
if (!defined('MSD_PATH')) {
|
||||||
|
define('MSD_PATH', $msd_path);
|
||||||
|
}
|
||||||
session_name('MySQLDumper');
|
session_name('MySQLDumper');
|
||||||
session_start();
|
session_start();
|
||||||
if (!isset($download))
|
if (!isset($download)) {
|
||||||
{
|
|
||||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||||
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " 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: no-store, no-cache, must-revalidate");
|
||||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||||
header("Pragma: no-cache");
|
header("Pragma: no-cache");
|
||||||
}
|
}
|
||||||
include ( MSD_PATH . 'inc/functions.php' );
|
|
||||||
include(MSD_PATH . 'inc/mysql.php');
|
include(MSD_PATH . 'inc/mysql.php');
|
||||||
if (!defined('MSD_VERSION')) die('No direct access.');
|
if (!defined('MSD_VERSION')) {
|
||||||
if (!file_exists($config['files']['parameter'])) $error=TestWorkDir();
|
die('No direct access.');
|
||||||
|
}
|
||||||
|
if (!file_exists($config['files']['parameter'])) {
|
||||||
|
$error = TestWorkDir();
|
||||||
|
}
|
||||||
read_config($config['config_file']);
|
read_config($config['config_file']);
|
||||||
include(MSD_PATH . 'language/lang_list.php');
|
include(MSD_PATH . 'language/lang_list.php');
|
||||||
if (!isset($databases['db_selected_index'])) $databases['db_selected_index']=0;
|
if (!isset($databases['db_selected_index'])) {
|
||||||
|
$databases['db_selected_index'] = 0;
|
||||||
|
}
|
||||||
SelectDB($databases['db_selected_index']);
|
SelectDB($databases['db_selected_index']);
|
||||||
$config['files']['iconpath'] = './css/' . $config['theme'] . '/icons/';
|
$config['files']['iconpath'] = './css/' . $config['theme'] . '/icons/';
|
||||||
if (isset($error)) echo $error;
|
if (isset($error)) {
|
||||||
|
echo $error;
|
||||||
|
}
|
Laden …
In neuem Issue referenzieren