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

📄 ajax_mod.php

📁 自己写的一个网络日志(BLOG)系统
💻 PHP
字号:
<?php!function_exists('GetGP') && exit('Forbidden');header("HTTP/1.0 200 OK");header("HTTP/1.1 200 OK");header("Cache-Control: no-cache, must-revalidate, max-age=0");header("Expires: 0");header("Pragma: no-cache");if (!empty($_POST)) {	$_POST = Char_cv($_POST);	if ($db_charset != 'utf-8') {		require_once(R_P.'mod/charset_mod.php');		foreach ($_POST as $key => $value) {			${'utf8_'.$key} = $value;			${$key} = convert_charset('utf-8',$db_charset,$value);		}	} else {		foreach ($_POST as $key => $value) {			${'utf8_'.$key} = ${$key} = $value;		}	}}function Tag_cv($tag){	$chars = "`~!@#$%^&*()_-+=|\\{}[]:\";',./<>?";	$len = strlen($chars);	for ($i=0; $i<$len; $i++) {		$tag = str_replace($chars[$i],'',$tag);	}	return $tag;}function update_dirdb($uid){	global $db;	$cachedb = array();	$query = $db->query("SELECT typeid,name,type,vieworder FROM pw_itemtype WHERE uid='$uid' ORDER BY vieworder");	while ($rt = $db->fetch_array($query)) {		$cachedb[$rt['type']][$rt['typeid']] = $rt;	}	if (!empty($cachedb)) {		Strip_S($cachedb);		$cachedb = addslashes(serialize($cachedb));	}	$db->update("UPDATE pw_userinfo SET dirdb='$cachedb' WHERE uid='$uid'");}function ShowResponseText($responseText){	header("Content-Type: text/html; charset=utf-8");	echo $responseText;exit;}?>

⌨️ 快捷键说明

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