session_start(); define ('_PHPINFOBOARD_PATH', '..'); include("./config_inc.php"); include("./form.all.php"); if(isset($_GET["idcat"])) $idcat=$_GET["idcat"]; else $idcat=0; if(isset($_GET["total"])) $total=$_GET["total"]; else $total=0; if(isset($_GET["name"])) $name=$_GET["name"]; else $name=""; if(isset($_GET['action'])) $action = $_GET['action']; else $action=""; if(isset($_GET['num'])) $num = $_GET['num']; else $num=""; if($idcat > 0) $path="../"; else $path=""; switch($action) { case"topic"; if($num){ mysql_db_query($infoboard["dbname"], "update ".$infoboard["dbquestion"]." set info_view=info_view+1 where info_id='".$num."'"); mysql_close(); } $html=""; break ; case"name1"; $html = formname("infoName1", $idcat, $total, $path); break ; case"name2"; $html = formname("infoName2", $idcat, $total, $path); break ; case"site"; echo "document.write(\"