/usr/share/nginx/html/lsurveymaster/plugins/AuditLog/AuditLog.php(31)
19 $this->subscribe('beforeParticipantDelete'); 20 $this->subscribe('beforeLogout'); 21 $this->subscribe('afterSuccessfulLogin'); 22 $this->subscribe('afterFailedLoginAttempt'); 23 } 24 25 /** 26 * User logout to the audit log 27 * @return unknown_type 28 */ 29 public function beforeLogout() 30 { 31 $iUserID=$this->api->getCurrentUser()->uid; 32 $oAutoLog = $this->api->newModel($this, 'log'); 33 $oAutoLog->uid=$iUserID; 34 $oAutoLog->entity='user'; 35 $oAutoLog->entityid=$iUserID; 36 $oAutoLog->action='beforeLogout'; 37 $oAutoLog->save(); 38 } 39 40 /** 41 * Successfull login to the audit log 42 * @return unknown_type 43 */
#0 |
unknown(0): AuditLog->beforeLogout()
|
#1 |
+
–
/usr/share/nginx/html/lsurveymaster/application/libraries/PluginManager/PluginManager.php(191): call_user_func(array(AuditLog, "beforeLogout")) 186 { 187 if (!$event->isStopped() 188 && (empty($target) || in_array(get_class($subscription[0]), $target))) 189 { 190 $subscription[0]->setEvent($event); 191 call_user_func($subscription); 192 } 193 } 194 } 195 196 return $event; |
#2 |
+
–
/usr/share/nginx/html/lsurveymaster/application/controllers/admin/authentication.php(121): PluginManager->dispatchEvent(PluginEvent) 116 // Fetch the current user 117 $plugin = App()->user->getState('plugin', null); // Save for afterLogout, current user will be destroyed by then 118 119 /* Adding beforeLogout event */ 120 $beforeLogout = new PluginEvent('beforeLogout'); 121 App()->getPluginManager()->dispatchEvent($beforeLogout); 122 123 App()->user->logout(); 124 App()->user->setFlash('loginmessage', gT('Logout successful.')); 125 126 /* Adding afterLogout event */ |
#3 |
unknown(0): Authentication->logout()
|
#4 |
+
–
/usr/share/nginx/html/lsurveymaster/framework/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(Authentication, array()) 103 elseif($param->isDefaultValueAvailable()) 104 $ps[]=$param->getDefaultValue(); 105 else 106 return false; 107 } 108 $method->invokeArgs($object,$ps); 109 return true; 110 } 111 } |
#5 |
+
–
/usr/share/nginx/html/lsurveymaster/application/core/Survey_Common_Action.php(99): CAction->runWithParamsInternal(Authentication, ReflectionMethod, array("q" => "/lsurveymaster/index.php/admin/authentication/sa/logout", "sa" => "logout")) 094 $oMethod = new ReflectionMethod($this, $sDefault); 095 } 096 097 // We're all good to go, let's execute it 098 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params 099 return parent::runWithParamsInternal($this, $oMethod, $params); 100 } 101 102 /** 103 * Some functions have different parameters, which are just an alias of the 104 * usual parameters we're getting in the url. This function just populates |
#6 |
+
–
/usr/share/nginx/html/lsurveymaster/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("q" => "/lsurveymaster/index.php/admin/authentication/sa/logout", "sa" => "logout")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#7 |
+
–
/usr/share/nginx/html/lsurveymaster/framework/web/CController.php(286): CController->runAction(Authentication) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#8 |
+
–
/usr/share/nginx/html/lsurveymaster/framework/web/CController.php(265): CController->runActionWithFilters(Authentication, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#9 |
+
–
/usr/share/nginx/html/lsurveymaster/application/controllers/AdminController.php(169): CController->run("authentication") 164 $this->redirect(array('/admin/authentication/sa/login')); 165 } 166 167 } 168 169 return parent::run($action); 170 } 171 172 /** 173 * Routes all the actions to their respective places 174 * |
#10 |
+
–
/usr/share/nginx/html/lsurveymaster/framework/web/CWebApplication.php(282): AdminController->run("authentication") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#11 |
+
–
/usr/share/nginx/html/lsurveymaster/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/authentication/sa/logout") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#12 |
+
–
/usr/share/nginx/html/lsurveymaster/framework/base/CApplication.php(180): CWebApplication->processRequest() 175 public function run() 176 { 177 if($this->hasEventHandler('onBeginRequest')) 178 $this->onBeginRequest(new CEvent($this)); 179 register_shutdown_function(array($this,'end'),0,false); 180 $this->processRequest(); 181 if($this->hasEventHandler('onEndRequest')) 182 $this->onEndRequest(new CEvent($this)); 183 } 184 185 /** |
#13 |
+
–
/usr/share/nginx/html/lsurveymaster/index.php(200): CApplication->run() 195 die (sprintf('%s should be writable by the webserver (755 or 775).', $runtimePath)); 196 } 197 } 198 199 200 Yii::createApplication('LSYii_Application', $config)->run(); 201 202 /* End of file index.php */ 203 /* Location: ./index.php */ |