Solved issue with metaconsole filemanager
This commit is contained in:
parent
01641c4584
commit
13339d5f68
|
@ -41,9 +41,11 @@ if ($file === '' || $hash === '' || $hash !== md5($file_raw.$config['dbpass']) |
|
||||||
$downloadable_file = '';
|
$downloadable_file = '';
|
||||||
$parse_all_queries = explode('&', parse_url($_SERVER['HTTP_REFERER'], PHP_URL_QUERY));
|
$parse_all_queries = explode('&', parse_url($_SERVER['HTTP_REFERER'], PHP_URL_QUERY));
|
||||||
$parse_sec2_query = explode('=', $parse_all_queries[1]);
|
$parse_sec2_query = explode('=', $parse_all_queries[1]);
|
||||||
|
// If is metaconsole, the file manager has a route distinct than node.
|
||||||
|
$main_file_manager = (is_metaconsole() === true) ? 'advanced/metasetup' : 'godmode/setup/file_manager';
|
||||||
if ($parse_sec2_query[0] === 'sec2') {
|
if ($parse_sec2_query[0] === 'sec2') {
|
||||||
switch ($parse_sec2_query[1]) {
|
switch ($parse_sec2_query[1]) {
|
||||||
case 'godmode/setup/file_manager':
|
case $main_file_manager:
|
||||||
$downloadable_file = $_SERVER['DOCUMENT_ROOT'].'/pandora_console/'.$file;
|
$downloadable_file = $_SERVER['DOCUMENT_ROOT'].'/pandora_console/'.$file;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue