📄 categorycontroller.php
字号:
<?php
/*
秀影视频点播系统HTML页面生成模型
website:http://www.vodcms.com/
QQ:24498936
MSN:jdzcn_net@hotmail.com
Version:6
*/
class CategoryController 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 IndexAction(){
$this->ViewAction();
return true;
}
public function ViewAction(){
$id = (int)$this->_Request->getParam('id');
$make = new MakeModel($id);
$make->view = &$this->_View;
echo $make->makeCategory($id, (int)$_GET['page']);
return true;
}
/*
免费片
*/
public function FreeAction(){
$this->config['sitename'] = _('免费试片');
$this->_View->current = _('免费试片');
echo $this->_View->render($this->_View->skin.'/free');
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;
}
}
/*public function __call($method, $args=null){
$newMethod = (int)str_replace('action', '', strtolower($method));
$this->IndexAction($newMethod);
}*/
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -