category = urldecode($opt['_restAlias']); } } function exec(&$Doc) { $this->category = str_replace('/', '_', $this->category); if (!is_dir(WWW_PATH . '/userfile/' . $this->category)) mkdir(WWW_PATH . '/userfile/' . $this->category); $Doc->addContent(array( 'tpl' => BASE_PATH . '/app/Files/tpl/main.tpl', 'JSs' => array( 'js/jquery.contextmenu.r2.js', 'js/jquery.form.js', 'js/ajaxfileupload.js', 'js/fileTree/jqueryFileTree.js', 'js/jqueryFileTree.init.js' ), 'initFuncs' => array('initFileTree'), 'CSSs' => array('css/jqueryFileTree.css'), 'category' => $this->category, )); } }