14 if (array_search(
'..', $prm) !==
false)
17 'name'=>
'icons'.
DS.implode(
DS, $prm),
24 if (array_search(
'..', $prm) !==
false)
28 $file = FILESROOT.urldecode(implode(
DS, $prm));
40 $search =
'js/tiny_mce/';
42 $pos = strpos($request, $search);
45 $tmp = substr($request, $pos+strlen($search));
47 'name'=>
'lib'.
DS.
'tinyMce'.
DS.$tmp,
51 if (strpos($file,
'.php') !==
false) {
52 array_walk($_GET, create_function(
'&$v',
'$v = urldecode($v);'));
53 $path = str_replace($tmp,
'', $file);
54 ini_set(
'include_path', $path);
55 define(
'TINYMCEPATH', substr($path, 0, -1));
56 define(
'TINYMCECACHEPATH', substr(TMPROOT, 0, -1));
if(!defined('NYROROOT')) define('NYROROOT' ROOT DS
execUploadedFiles($prm=null)