issue 160 admin logging addon init

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9407 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-09-28 09:37:35 +00:00
parent cae5617179
commit ac866a7a31
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,17 @@
<?php
if(!defined("__ZBXE__")) exit();
/**
* @file adminlogging.addon.php
* @author NHN (developers@xpressengine.com)
* @brief Automatic link add-on
**/
$logged_info = Context::get('logged_info');
$act = Context::get('act');
$kind = strpos(strtolower($act),'admin')!==false?'admin':'';
if($called_position == 'before_module_proc' && $kind == 'admin' && $logged_info->is_admin == 'Y') {
$oAdminloggingController = &getController('adminlogging');
$oAdminloggingController->insertLog($this->module, $this->act);
}
?>