include/common.inc.php
//变量化所有的全局变量
foreach(array('_COOKIE', '_POST', '_GET') as $_request) {
}
include/global.func.php
//转义字符
function daddslashes($string, $force = 0) {
}
//用法
if (!MAGIC_QUOTES_GPC && $_FILES) {
}
include/cpanel.share.php
//切分数组参数
function implodearray($array, $skip = array()) {
}
//用法
$extralog = implodearray(array('GET' => $_GET, 'POST' => $_POST), array('formhash', 'submit', 'addsubmit', 'admin_password', 'sid', 'action'));
//写日志方法
参数 $cplog 文件名 | $str 日志内容
writelog('cplog', implode("\t", clearlogstring(array($timestamp,$discuz_userss,$adminid,$onlineip,$action,$extralog))));