Ejemplo n.º 1
0
 public function index()
 {
     $action = Lua::get_post('action');
     $action = $action ? $action : 'home';
     if (method_exists($this, $action)) {
         $this->{$action}();
     } else {
         Lua::e404();
     }
 }
Ejemplo n.º 2
0
 public function index()
 {
     $action = Lua::get_post('action');
     $action = $action ? $action : 'home';
     $rs = $this->acl()->process($this->user['perm'], '__member', $action);
     if ($rs) {
         return $rs;
     }
     if (method_exists($this, $action)) {
         $this->{$action}();
     } else {
         Lua::e404();
     }
 }
Ejemplo n.º 3
0
 public function index()
 {
     $action = Lua::get_post('action');
     $action = $action ? $action : 'home';
     $rs = $this->acl()->process($this->user['perm'], '__category', $action);
     if ($rs) {
         return $rs;
     }
     if (method_exists($this, $action)) {
         $this->ch = Lua::get_one("select * from lua_channel where path='" . SYSNAME . "'");
         $this->{$action}();
     } else {
         Lua::e404();
     }
 }
Ejemplo n.º 4
0
 public function index()
 {
     $action = Lua::get_post('action');
     $action = $action ? $action : 'home';
     $rs = $this->acl()->process($this->user['perm'], '__tpl', $action);
     if ($rs) {
         return $rs;
     }
     if (method_exists($this, $action)) {
         $this->tpl_path = PROJECT_ROOT . 'moban/';
         $this->{$action}();
     } else {
         Lua::e404();
     }
 }
Ejemplo n.º 5
0
 public function index()
 {
     $action = Lua::get_post('action');
     $action = $action ? $action : 'home';
     $rs = $this->acl()->process($this->user['perm'], '__content', $action);
     if ($rs) {
         return $rs;
     }
     if (method_exists($this, $action)) {
         $lua = Lua::get('lua');
         if ($lua) {
             $this->lua = $lua;
             $this->lua_url = "&lua={$lua}";
         }
         $this->{$action}();
     } else {
         Lua::e404();
     }
 }
Ejemplo n.º 6
0
 public function index()
 {
     $this->plugin_dir = PROJECT_ROOT . Doo::conf()->PROTECTED_FOLDER . 'plugin/';
     $action = Lua::get_post('action');
     $action = $action ? $action : 'home';
     if (method_exists($this, $action)) {
         $this->{$action}();
     } else {
         $file = $this->plugin_dir . $action . '/admin.php';
         if (!file_exists($file)) {
             Lua::admin_msg('提示信息', '你访问的插件不存在');
         }
         require_once $file;
         $oo = new $action();
         $oo->_set($this->plugin_dir, $this->dir, $this->img, $this->user);
         $c = Lua::get_post('c');
         $c = $c ? '_' . $c : '_home';
         if (method_exists($oo, $c)) {
             $oo->{$c}();
         } else {
             Lua::e404();
         }
     }
 }
Ejemplo n.º 7
0
 public function E404()
 {
     Lua::e404();
 }