⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 log.inc.php

📁 Phpcms2008 是一款基于 PHP+Mysql 架构的网站内容管理系统
💻 PHP
字号:
<?php
defined('IN_PHPCMS') or exit('Access Denied');

$log->set('admin', 0);

$action = $action ? $action : 'manage';

switch($action)
{
	case 'manage':
	    $where = '';
	    if($s_module) $where .= "AND `module`='$s_module' ";
	    if($s_file) $where .= "AND `file`='$s_file' ";
	    if($s_action) $where .= "AND `action`='$s_action' ";
	    if($s_url) $where .= "AND `querystring` LIKE '%$s_url%' ";
	    if($s_username)
	    {
			$userid = userid($s_username);
			$username = $s_username;
		}
	    if($userid)
	    {
			if(!$username) $username = username($userid);
			if(!$s_username) $s_username = $username;
			$where .= "AND `userid`='$userid' ";
		}
	    if($s_ip) $where .= "AND `ip`='$s_ip' ";
	    if($s_fromdate) $where .= "AND `time`>='$s_fromdate 00:00:00' ";
	    if($s_todate) $where .= "AND `time`<='$s_todate 23:59:59' ";
		if($where) $where = substr($where, 3);
		$data = $log->listinfo($where, $page, 20);
		include admin_tpl('log');
		break;

    case 'delete':
		$log->delete($module, $fromdate, $todate);
		showmessage($LANG['operation_success'],'?mod=phpcms&file=log');
		break;

    case 'clear':
		$log->clear();
		showmessage($LANG['operation_success'],'?mod=phpcms&file=log');
		break;
}
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -