| Current Path : /home/users/unlimited/www/facebook.codeskitter.site/sources/forum/ |
| Current File : /home/users/unlimited/www/facebook.codeskitter.site/sources/forum/forum_showthread.php |
<?php
if ($wo['config']['forum_visibility'] == 1) {
if ($wo['loggedin'] == false) {
header("Location: " . Wo_SeoLink('index.php?link1=welcome'));
exit();
}
}
if ($wo['config']['forum'] == 0) {
header("Location: " . $wo['config']['site_url']);
exit();
}
if (isset($_GET['tid']) && is_numeric($_GET['tid'])) {
$thread = Wo_GetForumThreads(array("id" => $_GET['tid'], "preview" => true));
if (count($thread) > 0) {
Wo_AddThreadView($_GET['tid']);
$wo['description'] = $wo['config']['siteDesc'];
$wo['keywords'] = $wo['config']['siteKeywords'];
$wo['page'] = 'forum';
$wo['active'] = null;
$wo['thread'] = $thread[0];
$wo['forums'] = Wo_GetForums();
$wo['forumeditor'] = true;
$wo['title'] = $wo['config']['siteTitle'];
$wo['content'] = Wo_LoadPage('forum/showthread');
}
}