This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class RbacCommand extends CConsoleCommand | |
{ | |
private $_authManager; | |
public function getHelp() | |
{ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* ProjectUserForm class. | |
* ProjectUserForm is the data structure for keeping | |
* the form data related to adding an existing user to a project. It is used by the 'Ad-duser' action of 'ProjectController'. | |
*/ | |
class ProjectUserForm extends CFormModel | |
{ | |
/** | |
* @var string username of the user being added to the project |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body | |
{ | |
margin: 0; | |
padding: 0; | |
color: #555; | |
font: normal 10pt Arial,Helvetica,sans-serif; | |
background: #d6d6d6 url(images/background.gif) repeat-y center top; | |
} | |
#page |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$this->pageTitle='Nigol'; | |
$this->breadcrumbs=array( | |
'Nigol', | |
); | |
?> | |
<h1>Nigol</h1> | |
<p>Slaitnederc nigol ruoy htiw mrof gniwollof eht tuo llif esaelp:</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta name="language" content="en" /> | |
<!-- blueprint CSS framework --> | |
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" /> | |
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" /> | |
<!--[if lt IE 8]> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function up() | |
{ | |
//create the issue table | |
$this->createTable('tbl_sys_message', array( | |
'id' => 'pk', | |
'message' => 'text NOT NULL', | |
'create_time' => 'datetime DEFAULT NULL', | |
'create_user_id' => 'int(11) DEFAULT NULL', | |
'update_time' => 'datetime DEFAULT NULL', | |
'update_user_id' => 'int(11) DEFAULT NULL', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Displays the login page | |
*/ | |
public function actionLogin() | |
{ | |
Yii::trace("The actionLogin() method is being requested", "application.controllers.SiteController"); | |
//if they are already logged in, redirect them to the home page | |
if(!Yii::app()->user->isGuest) | |
{ |