moviecontroller.php
来自「a short sketch about linux syntex lines.」· PHP 代码 · 共 29 行
PHP
29 行
<?php/**/class MovieController extends Easy_Controller_Action{ public function Init(){ $this->_View->skin = $this->config['template']; $this->_View->Template = new Template(); // $this->_View->moviearea = $this->mconf['area']; $this->_View->config = $this->config; } public function viewAction(){ $movid = intval($this->_Request->getParam('movid')); $make = new MakeModel(); $make->view = &$this->_View; echo $make->makeMovie($movid); return true; } public function vipAction() { $User = new UsersModel(); $uid = intval($this->_Request->getCookie('uid')); $row = $User->login(array('uid'=> $uid)); if ($row['usergroup'] == $this->config['vip']){ exit($this->_View->render($this->_View->skin.'/vip')); }else{ $this->_Request->redirect(''); exit; } }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?