REDROOM
PHP 8.1.33
Path:
Logout
Edit File
Size: 1.20 KB
Close
/home/jambtst2015/www/framework/gii/controllers/DefaultController.php
Text
Base64
<?php class DefaultController extends CController { public $layout='/layouts/column1'; public function getPageTitle() { if($this->action->id==='index') return 'Gii: a Web-based code generator for Yii'; else return 'Gii - '.ucfirst($this->action->id).' Generator'; } public function actionIndex() { $this->render('index'); } public function actionError() { if($error=Yii::app()->errorHandler->error) { if(Yii::app()->request->isAjaxRequest) echo $error['message']; else $this->render('error', $error); } } /** * Displays the login page */ public function actionLogin() { $model=Yii::createComponent('gii.models.LoginForm'); // collect user input data if(isset($_POST['LoginForm'])) { $model->attributes=$_POST['LoginForm']; // validate user input and redirect to the previous page if valid if($model->validate() && $model->login()) $this->redirect(array('index')); } // display the login form $this->render('login',array('model'=>$model)); } /** * Logs out the current user and redirect to homepage. */ public function actionLogout() { Yii::app()->user->logout(false); $this->redirect(array('index')); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 2
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
DefaultController.php
1.20 KB
lrw-r--r--
2024-11-22 17:53:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
error_log
4.93 KB
lrw-r--r--
2025-11-03 17:29:49
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).