0){ $objForum->delete($_GET['deleteID']); header("location:" . URL . "{$rule['action']}/"); } if(isset($_GET['commentDeleteID']) && $_GET['commentDeleteID']>0){ $objForum->deleteComment($_GET['commentDeleteID']); } if(isset($_GET['topicID']) && $_GET['topicID']>0){ $objForum->Click($_GET['topicID']); $treeId = $objForum->viewTopic($_GET['topicID'],$row); $setup->meta = array("title"=>$row['meta_title'], "keywords"=>$row['meta_keywords'], "description"=>$row['meta_description'], "about"=>$row['meta_about']); $objForum->viewComments($treeId); $objForum->viewUser($UserIdForum); $objForum->displayTopic(); } else{ if(isset($_POST['forum_login'],$_POST['forum_psw'])){ if($objForum->isUser($_POST['forum_login'],$_POST['forum_psw'])){ $_SESSION['forum']['login'] = $_POST['forum_login']; $_SESSION['forum']['psw'] = $_POST['forum_psw']; header("location:" . URL . "{$rule['action']}/"); } }elseif(isset($_POST['exit'])){ unset($_SESSION['forum']); header("location:" . URL . "{$rule['action']}/"); } if(isset($_POST['save_topic'])){ $objForum->trim($_POST); if(!$objForum->valid($_POST)){ $data = array('parent_table'=>"topic",'parent_table_id'=>0,'data'=>$_POST); $objForum->SaveTopic($data,$_FILES); header("location:" . URL . "{$rule['action']}/"); } }elseif(isset($_GET['editID']) && $_GET['editID']>0){ $objForum->viewTopic($_GET['editID'],$row); } $objForum->viewUser($UserIdForum); $objForum->last_comment(); $objForum->viewTopics($_GET); $objForum->displayForum(); } ?>