mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9426 201d5d3c-b55e-5fd7-737f-ddc643e51545
33 lines
950 B
PHP
33 lines
950 B
PHP
<?php
|
|
/**
|
|
* @class adminAdminController
|
|
* @author NHN (developers@xpressengine.com)
|
|
* @brief admin controller class of admin module
|
|
**/
|
|
|
|
class adminloggingController extends adminlogging {
|
|
/**
|
|
* @brief initialization
|
|
* @return none
|
|
**/
|
|
function init() {
|
|
// forbit access if the user is not an administrator
|
|
$oMemberModel = &getModel('member');
|
|
$logged_info = $oMemberModel->getLoggedInfo();
|
|
if($logged_info->is_admin!='Y') return $this->stop("msg_is_not_administrator");
|
|
}
|
|
|
|
function insertLog($module, $act)
|
|
{
|
|
if(!$module || !$act) return;
|
|
|
|
$args->module = $module;
|
|
$args->act = $act;
|
|
$args->ipaddress = $_SERVER['REMOTE_ADDR'];
|
|
$args->regdate = date('YmdHis');
|
|
$args->requestVars = print_r(Context::getRequestVars(), true);
|
|
|
|
$output = executeQuery('adminlogging.insertLog', $args);
|
|
}
|
|
}
|
|
?>
|