<?
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="";
if($_FILES["image"]["size"]){
$ext = strtolower($infoboard->getlast($_FILES["image"]["name"]));
if(move_uploaded_file($_FILES["image"]["tmp_name"], "../data/topbanner.".$ext)){
$write=$ext;
}
}
if($write){
$infoboard->iswrite("../data/topbanner.dat", $write);
refurl($iscon["lang"][105], $_SERVER['HTTP_REFERER']);
}else{
refurl("", $_SERVER['HTTP_REFERER']);
}
?>