したらばTOP ■掲示板に戻る■ 全部 1-100 最新50 | メール | |

ちんけな掲示板やな(笑)

27改変前2:2013/05/22(水) 08:04:17
if(!empty ($comment)){
$proxy = 0;
if(getenv('HTTP_VIA')){$proxy = 1;}
if(getenv('HTTP_SP_HOST')){$proxy = 1;}
if(getenv('HTTP_CLIENT_IP')){$proxy = 1;}
if(getenv('HTTP_CACHE_INFO')){$proxy = 1;}
if(getenv('HTTP_PROXY_CONNECTION')){$proxy = 1;}
if (preg_match("/(via|proxy|gate)/",getenv('HTTP_USER_AGENT'))){$proxy = 1;}
if (preg_match("/no-cache/",getenv('HTTP_PRAGMA'))){$proxy = 1;}
if(!getenv('HTTP_ACCEPT_ENCODING')){$proxy = 1;}
if (preg_match("/close/",getenv('HTTP_CONNECTION'))){$proxy = 1;}
if ($cheki == "3017") {
if(strlen($comment) < 900){
if(mb_ereg_match(".*[あ-ん]+.*", $comment)) {
if ($line != $ip) {
if ($proxy != 1){
$name= htmlspecialchars ($name, ENT_QUOTES, "shift_jis");
$comment= htmlspecialchars ($comment, ENT_QUOTES, "shift_jis");
$subj= htmlspecialchars ($subj, ENT_QUOTES, "shift_jis");
$search = array("\r\n","\n","\r"," ");
$replace = array("<br>","<br>","<br>"," ");
$newcomment = str_replace($search, $replace, $comment);
$newcomment = preg_replace("/\s{20,}/"," ", $newcomment);
$newcomment = str_replace(" ", " ", $newcomment);
$br = preg_match_all("/<br>/",$newcomment,$result);
if ($br < 31 ){
$write = $ip;
$rcounter = fopen ("../count.txt","w");
flock ($rcounter, LOCK_EX);
fputs ($rcounter,$write);
flock ($rcounter, LOCK_UN);
fclose ($rcounter);
$date = gmdate("Y/m/j(D) H:i a",time()+60*60*9);
if($gazo != ""){
$newgazo = "<img src=\"../bbs icon/${gazo}\" width=\"90px\" height=\"90px\">";
}
if($url != ""){
$link = "<a href=\"${url}\"><img src=\"../web-tibi.gif\"></a>";
}
if($add != ""){
$add = "<a href=\"mailto:${add}\"><img src=\"../mail-tibi.gif\"></a>";
}
$data_all = file($data_file);
$fp = fopen($data_file,"a+");
flock($fp, 2);

$new_data = "$subj|<>|$newgazo|<>|$iro|<>|$newcomment|<>|$name|<>|$date|<>|$add|<>|$link|<>|$ip\n";
if($data_max > count($data_all)){
fwrite($fp,$new_data);
}
flock($fp, 3);
fclose($fp);
unset($data_all);
header("Location: http://{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}");
exit;
}else{
header("Location: http://{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}");
exit;
}
}else{
header("Location: http://{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}");
exit;
}
}else {
header("Location: http://{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}");
exit;
}
}else {
header("Location: http://{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}");
exit;
}
}else {
header("Location: http://{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}");
exit;
}
}else {
header("Location: http://{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}");
exit;
}
}
?>
<html>


新着レスの表示


名前: E-mail(省略可)

※書き込む際の注意事項はこちら

※画像アップローダーはこちら

(画像を表示できるのは「画像リンクのサムネイル表示」がオンの掲示板に限ります)

掲示板管理者へ連絡 無料レンタル掲示板