public function _home() { Doo::loadHelper('DooFile'); $fileManager = new DooFile(); $list = $fileManager->getList($this->cache); if (!$list) { $list = array(); } include Lua::display('home', $this->tpl); }
private function home() { Doo::loadHelper('DooFile'); $f = new DooFile(); $list = $f->getList($this->plugin_dir, DooFile::LIST_FOLDER); $ps = array(); if ($list) { foreach ($list as $k => $v) { $rs['name'] = $f->readFileContents($v['path'] . '/readme.txt'); $rs['ico'] = '/' . ADMIN_ROOT . '/' . Doo::conf()->PROTECTED_FOLDER . 'plugin/' . $v['name'] . '/ico.png'; $rs['act'] = $v['name']; $ps[$v['name']] = $rs; } } include Lua::display('plugin', $this->dir); }
private function scan() { Doo::loadHelper('DooFile'); $fileManager = new DooFile(0777); $list = $fileManager->getList(LUA_ROOT); $dir = array(); $out = array('.git', '@Doo', 'admin', 'nbproject'); if ($list) { foreach ($list as $v) { if ($v['folder'] == 1) { if (!in_array($v['name'], $out) && file_exists($v['path'] . '/cache/update/')) { $dir[] = $v; } } } } include Lua::display('channel_scan', $this->dir); }