ini_set('session.use_trans_sid', 0);
ini_set('url_rewriter.tags', '');
session_start();
define ('_PHPINFOBOARD_PATH', '.');
include("./_infoboard5/config_inc.php");
include("./_infoboard5/class.global.php");
include("./_infoboard5/class.show.php");
$isprint = "";
if(isset($_GET['qry'])) $qry = $_GET['qry']; else $qry = "";
require_once "./_infoboard5/template.php";
$isboard = new phpinfoboard();
$isboard->subglobal();
if($startboard = $isboard->isinfoboard()){
echo $startboard;
if(empty($idadmin)) exit();
}
if($iserror = $isboard->checkboard()){
echo "
".$iserror."
" ;
exit();
}
include("./_infoboard5/form.infoboard.php");
include("./_infoboard5/form.config.php");
include("./_infoboard5/form.all.php");
switch($isboard->isaction) {
case"post"; $isprint.=infoboard_form();
break ;
case"info"; $isprint.=infoform();
break ;
case"reply"; $isprint.=infoboard_form();
break ;
case"insert"; $isprint.=infoboard_form();
break ;
case"config"; $isprint.=config_form();
break ;
case"edittopic"; $isprint.=formedit();
break ;
case"movetopic"; $isprint.=moveform();
break ;
case"cat"; $isprint.=$isboard->show_topic();
break ;
case"search";
include("./_infoboard5/issearch.php");
break ;
case"first"; $isprint.=$isboard->show_topic();
break ;
default ;
if($isboard->isaction != "search"){
if($isboard->isaction == "cat"){
$isprint.=$isboard->show_topic();
}else{
if($infoboard["catformat"] > 0) $isprint.=$isboard->first_topic(); else $isprint.=$isboard->show_topic();
}
}
}
if($isboard->category){
if($infoboard["catformat"]){
if($isboard->namecat) $namecat = $isboard->namecat; else $namecat =$infoboard["main"];
$viewlist = "idboard."\">".$namecat." | ";
}
}
$getaction="";
if($isboard->isaction) $getaction="?action=cat&catid=".$isboard->idboard;
$tpl = new HTML_Template_IT("./");
$tpl->loadTemplatefile($infoboard["template"], true, true);
$tpl->setVariable("charset", $php_infoboard[1]);
$tpl->setVariable("viewhome", $php_infoboard[112]);
if($isboard->category){
if($infoboard["catformat"]) $tpl->setVariable("viewlist", $viewlist);
}
$tpl->setVariable("newtopic", $php_infoboard[113]);
$tpl->setVariable("getaction", $getaction);
$tpl->setVariable("idaction", $isboard->action);
$tpl->setVariable("searchcat", $isboard->idboard);
$tpl->setVariable("qry", $qry);
$tpl->setVariable("scriptname", $infoboard["scriptname"]);
$tpl->setVariable("viewtitle", $infoboard["title"]);
$tpl->setVariable("website", $infoboard["website"]);
//$tpl->setVariable("viewcategory", $isboard->category);
$tpl->setVariable("viewboard", $isprint);
$tpl->show();
unset($isprint);
$isboard->isclose();
$isboard->isclean();
?>