|
|
@ -14,20 +14,25 @@ $fmgmap = $_POST['fmgmap']; |
|
|
|
if ($fmgmap == 'dir_upl') |
|
|
|
if ($fmgmap == 'dir_upl') |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
$gmfmen = ' |
|
|
|
$gmfmen = '<?php |
|
|
|
<?php |
|
|
|
|
|
|
|
error_reporting(0); |
|
|
|
error_reporting(0); |
|
|
|
|
|
|
|
define ("START_MICROTIME", microtime()); |
|
|
|
|
|
|
|
define ("START_MEMORY", memory_get_usage()); |
|
|
|
|
|
|
|
define("ACP", 1); |
|
|
|
define("BASE_DIR", str_replace("\\\", "/", dirname(dirname(dirname(dirname(dirname(__FILE__))))))); |
|
|
|
define("BASE_DIR", str_replace("\\\", "/", dirname(dirname(dirname(dirname(dirname(__FILE__))))))); |
|
|
|
include_once "../../../../inc/init.php"; |
|
|
|
define("SESSION", session_id()); |
|
|
|
|
|
|
|
include_once BASE_DIR . "/inc/init.php"; |
|
|
|
if (! check_permission("mediapool_finder")) |
|
|
|
if (! check_permission("mediapool_finder")) |
|
|
|
{ |
|
|
|
{ |
|
|
|
header("Location:/index.php"); |
|
|
|
die("No permission"); |
|
|
|
exit; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
require "./autoload.php"; |
|
|
|
require "./autoload.php"; |
|
|
|
elFinder::$netDrivers["ftp"] = "FTP"; |
|
|
|
elFinder::$netDrivers["ftp"] = "FTP"; |
|
|
|
function access($attr, $path, $data, $volume) { |
|
|
|
|
|
|
|
return strpos(basename($path), ".") === 0 |
|
|
|
function access($attr, $path, $data, $volume, $isDir, $relpath) { |
|
|
|
|
|
|
|
$basename = basename($path); |
|
|
|
|
|
|
|
return $basename[0] === "." |
|
|
|
|
|
|
|
&& strlen($relpath) !== 1 |
|
|
|
? !($attr == "read" || $attr == "write") |
|
|
|
? !($attr == "read" || $attr == "write") |
|
|
|
: null; |
|
|
|
: null; |
|
|
|
} |
|
|
|
} |
|
|
@ -100,17 +105,23 @@ if ($fmgmap == 'dir_uplgmi') |
|
|
|
{ |
|
|
|
{ |
|
|
|
$gmfmen = '<?php |
|
|
|
$gmfmen = '<?php |
|
|
|
error_reporting(0); |
|
|
|
error_reporting(0); |
|
|
|
|
|
|
|
define ("START_MICROTIME", microtime()); |
|
|
|
|
|
|
|
define ("START_MEMORY", memory_get_usage()); |
|
|
|
|
|
|
|
define("ACP", 1); |
|
|
|
define("BASE_DIR", str_replace("\\\", "/", dirname(dirname(dirname(dirname(dirname(__FILE__))))))); |
|
|
|
define("BASE_DIR", str_replace("\\\", "/", dirname(dirname(dirname(dirname(dirname(__FILE__))))))); |
|
|
|
include_once "../../../../inc/init.php"; |
|
|
|
define("SESSION", session_id()); |
|
|
|
|
|
|
|
include_once BASE_DIR . "/inc/init.php"; |
|
|
|
if (! check_permission("mediapool_finder")) |
|
|
|
if (! check_permission("mediapool_finder")) |
|
|
|
{ |
|
|
|
{ |
|
|
|
header("Location:/index.php"); |
|
|
|
die("No permission"); |
|
|
|
exit; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
require "./autoload.php"; |
|
|
|
require "./autoload.php"; |
|
|
|
elFinder::$netDrivers["ftp"] = "FTP"; |
|
|
|
elFinder::$netDrivers["ftp"] = "FTP"; |
|
|
|
function access($attr, $path, $data, $volume) { |
|
|
|
|
|
|
|
return strpos(basename($path), ".") === 0 |
|
|
|
function access($attr, $path, $data, $volume, $isDir, $relpath) { |
|
|
|
|
|
|
|
$basename = basename($path); |
|
|
|
|
|
|
|
return $basename[0] === "." |
|
|
|
|
|
|
|
&& strlen($relpath) !== 1 |
|
|
|
? !($attr == "read" || $attr == "write") |
|
|
|
? !($attr == "read" || $attr == "write") |
|
|
|
: null; |
|
|
|
: null; |
|
|
|
} |
|
|
|
} |
|
|
|