Location: PHPKode > projects > infoboard > infoboard/_req/blockad.php
<?
session_start();
include("../data/connect.php");
include("../data/_uconfig.php");
include("../_class/lang.php");
include("../_class/lang_".$iscon["getlang"].".php");

include("../_class/_func.php");
include("../_class/class.global.php");

$infoboard = new global_infoboard();
$infoboard->checksess();
$infoboard->adminsess();

$count = count($_POST["ad"]);
$data="";
for($i=0; $i<$count; $i++){
	 if(trim($_POST["ad"][$i])){
		  $data.=trim(stripslashes($_POST["ad"][$i]))."\n";
	 }
}

if($data){
	 $infoboard->iswrite("../data/ad.dat", trim($data));
	 refurl($iscon["lang"][105], $_SERVER['HTTP_REFERER']);
}else{
	 refurl("", $_SERVER['HTTP_REFERER']);
}

?>
Return current item: infoboard