class.forum.php"); include_once($global['include_path']."class.forum.php"); $FORUM = new forum; if(preg_match("/^(show_posting_history|forum_read|forum_read_all|newreply|addnewreply|newthread|addnewthread|addnewthread|vote_new_add|editpost|saveeditedpost|moderate|attachment)$/",$do)) { if($GLOBALS['global']['debug']) debug_info("GLOBAL::include -> class.forum_frontend.php"); include_once($global['include_path']."class.forum_frontend.php"); $FORUM_FRONTEND = new forum_frontend($FORUM); } if(preg_match("/^(addnewthread|vote_new_add|vote_add|vote_showresult)$/",$do)) { if($GLOBALS['global']['debug']) debug_info("GLOBAL::include -> class.forum_vote.php"); include_once($global['include_path']."class.forum_vote.php"); $FORUM_VOTE = new forum_vote($FORUM); } if(!isset($do)) $do = ""; if(!isset($page)) $page = FALSE; if(!isset($q)) $q = FALSE; if(!isset($searchid)) $searchid = 0; if(!$do && !isset($id)) $content = $FORUM->showforen(); if($do == "showcat" AND isset($id) == 1) $content = $FORUM->showforen($id); if(!$do && isset($id)) $content = $FORUM->displayforum($id,(($page)?intval(abs($page) * $global['forum']['max_threads']):0)); if($do == "showthread" AND (isset($id) || isset($searchid))) $content = $FORUM->showthread($id,0,(($page === FALSE) ? -1 : intval(abs($page) * $global['forum']['max_postings'])),$searchid); if($do=="forum_read" AND isset($id)) $content = $FORUM_FRONTEND->forum_read($id); if($do=="forum_read_all") $content = $FORUM_FRONTEND->forum_read_all(); if($do=="newreply" AND isset($id)) $content = $FORUM_FRONTEND->newreply($id,$q); if($do=="newthread" AND isset($id)) $content = $FORUM_FRONTEND->newthread($id); if($do=="addnewreply" AND isset($id) && isset($preview)) $content = $FORUM_FRONTEND->newreply($id,FALSE,$eintrag); if($do=="addnewreply" AND isset($id) && !isset($preview)) $content = $FORUM_FRONTEND->addnewreply($eintrag,$id,$options,$qouteid); if($do=="addnewthread" AND isset($id) && isset($preview)) $content = $FORUM_FRONTEND->newthread($id,$threadtitle,$ext,$ext_id,$eintrag,$options); if($do=="addnewthread" AND isset($id) && !isset($preview) && $options['vote']) $content = $FORUM_VOTE->vote_new($options['vote_anz'],$eintrag,$threadtitle,$id,array(),0,$ext,$ext_id); if($do=="addnewthread" AND isset($id) && !isset($preview) && !$options['vote']) $content = $FORUM_FRONTEND->addnewthread($eintrag,$threadtitle,$id,0,$ext,$ext_id,$options); if($do=="editpost" AND isset($id)) $content = $FORUM_FRONTEND->editpost($id); if($do=="saveeditedpost" && isset($preview)) $content = $FORUM_FRONTEND->editpost($id,$eintrag); if($do=="saveeditedpost" && !isset($preview)) $content = $FORUM_FRONTEND->saveeditedpost($eintrag, $id); if($do=="moderate") $content = $FORUM_FRONTEND->moderate($action,$forumid,$id,intval($toid),$confirm,$noconfirm); if($do=="attachment" && isset($id)) $content = $FORUM_FRONTEND->attachment($id); if($do=="show_posting_history") $content = $FORUM_FRONTEND->show_posting_history($id); if($do=="vote_new_add" && $new_anz && isset($id)) $content = $FORUM_VOTE->vote_new($options['vote_anz'],$eintrag,$threadtitle,$id,$fv_choices,$options['vote_timeout'],$ext,$ext_id); if($do=="vote_new_add" && $save && isset($id)) { $fv_id = $FORUM_VOTE->vote_new_add($threadtitle,$fv_choices,$options['vote_timeout']); $content = $FORUM_FRONTEND->addnewthread($eintrag,$threadtitle,$id,$fv_id,$ext,$ext_id,$options); } if($do=="vote_add" AND isset($fv_id)) $content = $FORUM_VOTE->add_vote($fv_id,$vc_id,$threadid); if(!$PAGE->sitetitle) $PAGE->sitetitle = $FORUM->globalname; if(!$PAGE->htmltitle) $PAGE->htmltitle = $FORUM->globalname; $PAGE->render($content); ?>