public function actionIndex() { $access = parent::getAccess(); if (0 < $access) { $this->ajaxReturn(array("login" => true, "formhash" => FORMHASH, "uid" => Yii::app()->user->uid, "user" => user::model()->fetchByUid(Yii::app()->user->uid)), "JSONP"); } else { $this->ajaxReturn(array("login" => false, "msg" => "登录已超时,请重新登录"), "JSONP"); exit; } }
public function __destruct() { if ($this->needReleaseLock) { Bll_Customer_Parallel::unlockBroker($this->_params['broker_id']); Bll_Customer_Parallel::unlockUser($this->_params['device_id']); } parent::__destruct(); }
public function init() { parent::init(); $op = EnvUtil::getRequest("op"); if (!in_array($op, array("category", "list"))) { $op = "list"; } $sort = EnvUtil::getRequest("sort"); $sortMap = array("all" => Ibos::lang("All of it"), "host" => Ibos::lang("Host"), "sign" => Ibos::lang("Sign"), "rollback" => Ibos::lang("Rollback")); if (!isset($sortMap[$sort])) { $sort = "all"; } $type = EnvUtil::getRequest("type"); if (!isset($this->typeMapping[$type])) { $type = "todo"; } $flowID = EnvUtil::getRequest("flowid"); if ($flowID) { $this->flowid = intval($flowID); } $this->op = $op; $this->sort = $sort; $this->type = $type; $this->sortText = $sortMap[$sort]; }
public function __destruct() { parent::__destruct(); }