Location: PHPKode > projects > infoboard > infoboard/_req/showimg.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");
include("../_class/class.req.php");

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

$infoboard->isconnect();

if(isset($_GET["action"])) $action=$_GET["action"]; else $action="";
$cid = $_GET["cid"];
$cat = $_GET["cat"];
$page = $_GET["page"];

$checkpic=1;
$query=mysql_db_query($infoboard->dbname, "select _checkpic from _group where _cid='".$cat."'");
if($result = @mysql_fetch_array($query)) $checkpic = $result["_checkpic"];
if($checkpic == 2) $checkpic=1;

		  switch($action){
		  case"topic";
		  if($infoboard->tbupdate("_infoboardq", "_activeimg='$checkpic'", "_cid", $cid)){
			   $infoboard->updateproof("improof", $cat, $page);
			   refurl($iscon["lang"][105], $_SERVER['HTTP_REFERER']);
		  }
		  break;
		  case"ans";

		  if($infoboard->tbupdate("_infoboarda", "_activeimg='$checkpic'", "_cid", $cid)){
			   $infoboard->updateproof("improof", $cat, $page);
			   refurl($iscon["lang"][105], $_SERVER['HTTP_REFERER']);
		  }
		  break;
		  case"ins";
		  if($infoboard->tbupdate("_infoboardi", "_activeimg='$checkpic'", "_cid", $cid)){
			   $infoboard->updateproof("improof", $cat, $page);
			   refurl($iscon["lang"][105], $_SERVER['HTTP_REFERER']);
		  }
		  break;

		  default;
		  }
refurl("", $_SERVER['HTTP_REFERER']);

?>
Return current item: infoboard