function stripslashes_content(&$content) {
if(get_magic_quotes_gpc() == 0) {
$content = str_replace("'","'",$content);
$content = str_replace('-',"-",$content);
$content = str_replace('`',"`",$content);
$content = str_replace('"',""",$content);
$content = str_replace("","\",$content);
}
return $content;
}
function checkNumber($num) {
return ((string)(int)$num === (string)$num ? true : false);
}
function isemail($email) {
return strlen($email) > 6 &&
preg_match("/^[w-.]+@[w-.]+(.w+)+$/", $email);
}
function dhtmlspecialchars($string) {
if(is_array($string)) {
foreach($string as $key => $val) {
$string[$key] = dhtmlspecialchars($val);
}
} else {
$string =
preg_replace('/&((#(d{3,5}|x[a-fA-F0-9]{4})|[a-zA-Z][a-z0-9]{2,5});)
/', '&1',
str_replace(array('&', '"', '<', '>'), array('&', '"', '<',
'>'), $string));
}
return $string;
}
function getReply($id) {
global $db,$db_tables;
$db->query("SELECT * FROM {$db_tables['repeat']} WHERE id='{$id}'");
$reply = $db->fetch();
if(is_array($reply))
return $reply;
else
return false;
}
创造与魔法九游版本
创造与魔法九游版采用了极致创新的魔幻游戏玩法感受,游戏具备最
疯狂医院达什医生中文版(Crazy Hospital)
疯狂医院达什医生最新版是一款医院模拟经营类游戏,逼真的场景画
宝宝庄园官方版
宝宝庄园官方版是一款超级经典好玩的模拟经营类型的手游,这个游
桃源记官方正版
桃源记是一款休闲娱乐类的水墨手绘风格打造的模拟经营手游。玩家
长途巴士模拟器手机版
长途巴士模拟器汉化版是一款十分比真好玩的大巴车模拟驾驶运营类