Location: PHPKode > projects > infoboard > infoboard/_req/savebanner.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();

$write=0;
for($i=1; $i<=4; $i++){
	 if(file_exists("../data/banner".$i.".dat")){
		  if(is_writable("../data/banner".$i.".dat")){
			   $infoboard->iswrite("../data/banner".$i.".dat", $_POST["banner".$i]);
			   $write++;
		  }
	 }else{
		  $infoboard->iswrite("../data/banner".$i.".dat", $_POST["banner".$i]);
		  $write++;
	 }
}
if($write > 2){
	 refurl($iscon["lang"][105], $_SERVER['HTTP_REFERER']);
}else{
	 refurl("Cannot Write File! ", $_SERVER['HTTP_REFERER']);
}
?>
Return current item: infoboard