REDROOM
PHP 8.1.33
Path:
Logout
Edit File
Size: 2.63 KB
Close
/home/jambtst2015/public_html/protected/components/Controlleruser.php
Text
Base64
<?php /** * Controller is the customized base controller class. * All controller classes for this application should extend from this base class. */ class Controlleruser extends CController { /** * @var string the default layout for the controller view. Defaults to '//layouts/column1', * meaning using a single column layout. See 'protected/views/layouts/column1.php'. */ public $layout='//layouts/column1'; /** * @var array context menu items. This property will be assigned to {@link CMenu::items}. */ public $menu=array(); /** * @var array the breadcrumbs of the current page. The value of this property will * be assigned to {@link CBreadcrumbs::links}. Please refer to {@link CBreadcrumbs::links} * for more details on how to specify this property. */ public $breadcrumbs=array(); public function beforeAction($e){ $isUser = Yii::app()->user->getState("isUser"); $action = $this->action->Id; $getId = Helpers::getrecord('Examuser','id',Yii::app()->user->getState('member_session_id'),'id'); //echo '<pre>'; // print_r($getId); // exit; if($getId=='' && $isUser!=''){ $this->redirect(Yii::app()->createUrl('home/logoutbody/')); return false; }elseif($isUser=='' && $action!='index' && $getId!=''){ //exit('1'); $this->redirect(Yii::app()->user->returnUrl); return false; }else{ //exit('2'); return true; } } /*public function beforeAction($e){ $isUser = Yii::app()->user->getState("isUser"); $isPinid = Yii::app()->user->getState("isPinid"); $action = $this->action->Id; //exit; if($isUser=='' && $action=='examination' && $isPinid==''){ //exit('4'); //$this->redirect(Yii::app()->user->returnUrl.'user/userprofile'); return true; }elseif($isUser=='' && $action=='user_login' && $isPinid==''){ //exit('4'); //$this->redirect(Yii::app()->user->returnUrl.'user/userprofile'); return true; }elseif($isUser=='' && $action!='index' && $isPinid==''){ //exit('1'); $this->redirect(Yii::app()->user->returnUrl); return false; }elseif($isUser!='' && $action=='newuserreg' && $isPinid==''){ //exit('2'); $this->redirect(Yii::app()->user->returnUrl.'user/userprofile'); return true; }elseif($isUser!='' && $action=='subjectselect' && $isPinid==''){ //exit('3'); $this->redirect(Yii::app()->user->returnUrl.'user/userprofile'); return true; }else{ //exit('5'); return true; } }*/ public function loginCheck(){ $loginID = Yii::app()->user->getState('exam_user_id'); if($loginID!=''){ $this->redirect(Yii::app()->user->returnUrl); return false; }else{ return true; } } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 12
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
AdminIdentity.php
2.16 KB
lrw-r--r--
2024-11-22 17:53:11
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Controller.php
1.32 KB
lrw-r--r--
2024-11-22 17:53:11
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Controlleradmin.php
2.88 KB
lrw-r--r--
2024-11-22 17:53:11
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Controlleradmin_bk_06_10_2014.php
2.96 KB
lrw-r--r--
2024-11-22 17:53:11
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Controlleruser.php
2.63 KB
lrw-r--r--
2024-11-22 17:53:11
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Controlleruser_bk_23_09_2014.php
2.43 KB
lrw-r--r--
2024-11-22 17:53:11
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
error_log
42.64 KB
lrw-r--r--
2025-11-04 10:28:05
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Helpers.php
8.77 KB
lrw-r--r--
2024-11-22 17:53:11
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Helpers_bk_23_9_2014.php
8.17 KB
lrw-r--r--
2024-11-22 17:53:11
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
UserIdentity.php
1.61 KB
lrw-r--r--
2024-11-22 17:53:11
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
UserpinIdentity.php
1.61 KB
lrw-r--r--
2024-11-22 17:53:11
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
UserpinIdentity_bk.php
2.27 KB
lrw-r--r--
2024-11-22 17:53:11
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).