//No parameters given, redirect to forum home $url = e107::url('forum', 'index', 'full'); e107::getRedirect()->go($url); // header('Location:' . e107::getUrl()->create('forum/forum/main', array(), 'full=1&encode=0')); exit; } include_once e_PLUGIN . 'forum/forum_class.php'; $forum = new e107forum(); $thread = new e107ForumThread(); // check if user wants to download a file if (vartrue($_GET['id']) && isset($_GET['dl'])) { $forum->sendFile($_GET); exit; } if (e_AJAX_REQUEST && varset($_POST['action']) == 'quickreply') { $forum->ajaxQuickReply(); } if (e_AJAX_REQUEST && MODERATOR) { $forum->ajaxModerate(); } if (isset($_GET['last'])) { $_GET['f'] = 'last'; } if (isset($_GET['f']) && $_GET['f'] == 'post') { $thread->processFunction(); } $thread->init(); if (isset($_POST['track_toggle'])) { $thread->toggle_track(); exit; }