mirror of
https://github.com/Codiad/Codiad.git
synced 2026-03-13 04:36:47 +01:00
@@ -19,7 +19,7 @@
|
||||
}
|
||||
|
||||
if(!defined('BASE_PATH')) {
|
||||
define('BASE_PATH', rtrim(str_replace("common.php", "", $_SERVER['SCRIPT_FILENAME']),"/"));
|
||||
define('BASE_PATH', rtrim(str_replace("index.php", "", $_SERVER['SCRIPT_FILENAME']),"/"));
|
||||
}
|
||||
|
||||
if(!defined('COMPONENTS')) {
|
||||
|
||||
@@ -190,7 +190,9 @@
|
||||
function (data) {
|
||||
// console.log('complete unregistering');
|
||||
// console.log(data);
|
||||
codiad.jsend.parse(data);
|
||||
if(data !== '') {
|
||||
codiad.jsend.parse(data);
|
||||
}
|
||||
});
|
||||
|
||||
this.currentFilename = null;
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
}else{
|
||||
$filename = explode("/",$_GET['path']);
|
||||
$filename = array_pop($filename);
|
||||
$download_file = WORKSPACE . $_GET['path'];
|
||||
$download_file = WORKSPACE . '/' . $_GET['path'];
|
||||
}
|
||||
|
||||
header('Content-Description: File Transfer');
|
||||
|
||||
Reference in New Issue
Block a user