=1) { $ForumID=sql_result($preresult,0,"id"); $ForumCatID=sql_result($preresult,0,"CategoryID"); $ForumName=sql_result($preresult,0,"Name"); $ForumType=sql_result($preresult,0,"ForumType"); $ForumShow=sql_result($preresult,0,"ShowForum"); if($ForumShow=="no") { $_SESSION['ShowActHidden'] = "yes"; } $InSubForum=sql_result($preresult,0,"InSubForum"); $RedirectURL=sql_result($preresult,0,"RedirectURL"); $RedirectTimes=sql_result($preresult,0,"Redirects"); $NumberViews=sql_result($preresult,0,"NumViews"); $NumberPosts=sql_result($preresult,0,"NumPosts"); $NumberTopics=sql_result($preresult,0,"NumTopics"); $PostCountAdd=sql_result($preresult,0,"PostCountAdd"); $CanHaveTopics=sql_result($preresult,0,"CanHaveTopics"); $HotTopicPosts=sql_result($preresult,0,"HotTopicPosts"); if($HotTopicPosts!=0&&is_numeric($HotTopicPosts)) { $Settings['hot_topic_num'] = $HotTopicPosts; } if(!is_numeric($Settings['hot_topic_num'])) { $Settings['hot_topic_num'] = 15; } $ForumPostCountView=sql_result($preresult,0,"PostCountView"); $ForumKarmaCountView=sql_result($preresult,0,"KarmaCountView"); sql_free_result($preresult); $ForumType = strtolower($ForumType); $CanHaveTopics = strtolower($CanHaveTopics); if($CanHaveTopics=="yes"&&$ForumType=="subforum") { if($_GET['act']=="create"||$_GET['act']=="maketopic"|| $_POST['act']=="maketopics") { $ForumCheck = "skip"; } } $catcheck = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."categories\" WHERE \"id\"=%i".$CatIgnoreList2." LIMIT 1", array($ForumCatID)); $catresult=sql_query($catcheck,$SQLStat); $CategoryID=sql_result($catresult,0,"id"); $CategoryName=sql_result($catresult,0,"Name"); $CategoryShow=sql_result($catresult,0,"ShowCategory"); if($CategoryShow=="no") { $_SESSION['ShowActHidden'] = "yes"; } $CategoryType=sql_result($catresult,0,"CategoryType"); $InSubCategory=sql_result($catresult,0,"InSubCategory"); $CategoryPostCountView=sql_result($catresult,0,"PostCountView"); $CategoryKarmaCountView=sql_result($catresult,0,"KarmaCountView"); sql_free_result($catresult); if($GroupInfo['HasAdminCP']!="yes"||$GroupInfo['HasModCP']!="yes") { if($MyPostCountChk==null) { $MyPostCountChk = 0; } if($MyKarmaCount==null) { $MyKarmaCount = 0; } if($ForumPostCountView!=0&&$MyPostCountChk<$ForumPostCountView) { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); } if($CategoryPostCountView!=0&&$MyPostCountChk<$CategoryPostCountView) { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); } if($ForumKarmaCountView!=0&&$MyKarmaCount<$ForumKarmaCountView) { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); } if($CategoryKarmaCountView!=0&&$MyKarmaCount<$CategoryKarmaCountView) { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); } } if($InSubForum!="0") { $isfquery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."forums\" WHERE \"id\"=%i".$ForumIgnoreList2." LIMIT 1", array($InSubForum)); $isfresult=sql_query($isfquery,$SQLStat); $isfnum=sql_num_rows($isfresult); if($isfnum>=1) { $isfForumID=sql_result($isfresult,0,"id"); $isfForumCatID=sql_result($isfresult,0,"CategoryID"); $isfForumName=sql_result($isfresult,0,"Name"); $isfForumType=sql_result($isfresult,0,"ForumType"); $isfForumType = strtolower($isfForumType); $isfRedirectURL=sql_result($isfresult,0,"RedirectURL"); } if($isfnum<1) { $InSubForum = "0"; } sql_free_result($isfresult); } if($ForumCheck!="skip") { if(isset($_SESSION['OldViewingPage'])) { $_SESSION['AncientViewingPage'] = $_SESSION['OldViewingPage']; } else { $_SESSION['AncientViewingPage'] = url_maker(null,"no+ext","act=view","&","=",$prexqstr['index'],$exqstr['index']); } if(isset($_SESSION['OldViewingFile'])) { $_SESSION['AncientViewingFile'] = $_SESSION['OldViewingFile']; } else { if($Settings['file_ext']!="no+ext"&&$Settings['file_ext']!="no ext") { $_SESSION['AncientViewingFile'] = $exfile['index'].$Settings['file_ext']; } if($Settings['file_ext']=="no+ext"||$Settings['file_ext']=="no ext") { $_SESSION['AncientViewingFile'] = $exfile['index']; } } if(isset($_SESSION['OldPreViewingTitle'])) { $_SESSION['AncientPreViewingTitle'] = $_SESSION['OldPreViewingTitle']; } else { $_SESSION['AncientPreViewingTitle'] = "Viewing"; } if(isset($_SESSION['OldViewingTitle'])) { $_SESSION['AncientViewingTitle'] = $_SESSION['OldViewingTitle']; } else { $_SESSION['AncientViewingTitle'] = "Board index"; } if(isset($_SESSION['OldExtraData'])) { $_SESSION['AncientExtraData'] = $_SESSION['OldExtraData']; } else { $_SESSION['AncientExtraData'] = "currentact:view; currentcategoryid:0; currentforumid:0; currenttopicid:0; currentmessageid:0; currenteventid:0; currentmemberid:0;"; } if(isset($_SESSION['ViewingPage'])) { $_SESSION['OldViewingPage'] = $_SESSION['ViewingPage']; } else { $_SESSION['OldViewingPage'] = url_maker(null,"no+ext","act=view","&","=",$prexqstr['index'],$exqstr['index']); } if(isset($_SESSION['ViewingFile'])) { $_SESSION['OldViewingFile'] = $_SESSION['ViewingFile']; } else { if($Settings['file_ext']!="no+ext"&&$Settings['file_ext']!="no ext") { $_SESSION['OldViewingFile'] = $exfile['index'].$Settings['file_ext']; } if($Settings['file_ext']=="no+ext"||$Settings['file_ext']=="no ext") { $_SESSION['OldViewingFile'] = $exfile['index']; } } if(isset($_SESSION['PreViewingTitle'])) { $_SESSION['OldPreViewingTitle'] = $_SESSION['PreViewingTitle']; } else { $_SESSION['OldPreViewingTitle'] = "Viewing"; } if(isset($_SESSION['ViewingTitle'])) { $_SESSION['OldViewingTitle'] = $_SESSION['ViewingTitle']; } else { $_SESSION['OldViewingTitle'] = "Board index"; } if(isset($_SESSION['ExtraData'])) { $_SESSION['OldExtraData'] = $_SESSION['ExtraData']; } else { $_SESSION['OldExtraData'] = "currentact:view; currentcategoryid:0; currentforumid:0; currenttopicid:0; currentmessageid:0; currenteventid:0; currentmemberid:0;"; } $_SESSION['ViewingPage'] = url_maker(null,"no+ext","act=view&id=".$ForumID."&page=".$_GET['page'],"&","=",$prexqstr[$ForumType],$exqstr[$ForumType]); if($Settings['file_ext']!="no+ext"&&$Settings['file_ext']!="no ext") { $_SESSION['ViewingFile'] = $exfile[$ForumType].$Settings['file_ext']; } if($Settings['file_ext']=="no+ext"||$Settings['file_ext']=="no ext") { $_SESSION['ViewingFile'] = $exfile[$ForumType]; } $_SESSION['PreViewingTitle'] = "Viewing Forum:"; $_SESSION['ViewingTitle'] = $ForumName; $_SESSION['ExtraData'] = "currentact:".$_GET['act']."; currentcategoryid:".$InSubCategory.",".$CategoryID."; currentforumid:".$InSubForum.",".$ForumID."; currenttopicid:0; currentmessageid:0; currenteventid:0; currentmemberid:0;"; ?>
">
 
0&&isset($_GET['st'])) { $nums = $_GET['st']; } if($nums>$num) { $nums = $num; } $numz = $nums - $Settings['max_topics']; if($numz<=0) { $numz = 0; } //$i=$numz; if($nums<$num) { $nextpage = $_GET['page'] + 1; } if($nums>=$num) { $nextpage = $_GET['page']; } if($numz>=$Settings['max_topics']) { $backpage = $_GET['page'] - 1; } if($_GET['page']<=1) { $backpage = 1; } $pnum = $num; $l = 1; $Pages = null; while ($pnum>0) { if($pnum>=$Settings['max_topics']) { $pnum = $pnum - $Settings['max_topics']; $Pages[$l] = $l; ++$l; } if($pnum<$Settings['max_topics']&&$pnum>0) { $pnum = $pnum - $pnum; $Pages[$l] = $l; ++$l; } } $snumber = $_GET['page'] - 1; if($_GET['st']<=0||!isset($_GET['st'])) { $PageLimit = $Settings['max_topics'] * $snumber; } if($_GET['st']>0&&isset($_GET['st'])) { $PageLimit = $_GET['st']; } if($PageLimit<0) { $PageLimit = 0; } //End Topic Page Code $i=0; $ExtraIgnores = null; if($PermissionInfo['CanModForum'][$_GET['id']]=="no") { $ExtraIgnores = " AND \"Closed\"<>3"; } $query = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."topics\" WHERE (\"ForumID\"=%i".$ExtraIgnores.$ForumIgnoreList4.") OR (\"OldForumID\"=%i".$ExtraIgnores.$ForumIgnoreList4.") OR (\"Pinned\"=2".$ExtraIgnores.$ForumIgnoreList4.") ORDER BY \"Pinned\" DESC, \"LastUpdate\" DESC ".$SQLimit, array($_GET['id'],$_GET['id'],$PageLimit,$Settings['max_topics'])); $result=sql_query($query,$SQLStat); $num=sql_num_rows($result); //List Page Number Code Start $pagenum=count($Pages); if($_GET['page']>$pagenum) { $_GET['page'] = $pagenum; } $pagei=0; $pstring = null; if($pagenum>1) { $pstring = "
".$pagenum." Pages: "; } if($_GET['page']<4) { $Pagez[0] = null; } if($_GET['page']>=4) { $Pagez[0] = "First"; } if($_GET['page']>=3) { $Pagez[1] = $_GET['page'] - 2; } if($_GET['page']<3) { $Pagez[1] = null; } if($_GET['page']>=2) { $Pagez[2] = $_GET['page'] - 1; } if($_GET['page']<2) { $Pagez[2] = null; } $Pagez[3] = $_GET['page']; if($_GET['page']<$pagenum) { $Pagez[4] = $_GET['page'] + 1; } if($_GET['page']>=$pagenum) { $Pagez[4] = null; } $pagenext = $_GET['page'] + 1; if($pagenext<$pagenum) { $Pagez[5] = $_GET['page'] + 2; } if($pagenext>=$pagenum) { $Pagez[5] = null; } if($_GET['page']<$pagenum) { $Pagez[6] = "Last"; } if($_GET['page']>=$pagenum) { $Pagez[6] = null; } $pagenumi=count($Pagez); if($NumberTopics==0) { $pagenumi = 0; $pstring = null; } if($pagenum>1) { while ($pagei < $pagenumi) { if($_GET['page']!=1&&$pagei==1) { $Pback = $_GET['page'] - 1; $pstring = $pstring."< "; } if($Pagez[$pagei]!=null&& $Pagez[$pagei]!="First"&& $Pagez[$pagei]!="Last") { if($pagei!=3) { $pstring = $pstring."".$Pagez[$pagei]." "; } if($pagei==3) { $pstring = $pstring."".$Pagez[$pagei]." "; } } if($Pagez[$pagei]=="First") { $pstring = $pstring."« "; } if($Pagez[$pagei]=="Last") { $ptestnext = $pagenext + 1; $paget = $pagei - 1; $Pnext = $_GET['page'] + 1; $pstring = $pstring."> "; if($ptestnext<$pagenum) { $pstring = $pstring."» "; } } ++$pagei; } $pstring = $pstring."
"; } //List Page Number Code end if($pstring!=null||$PermissionInfo['CanMakeTopics'][$ForumID]=="yes"&&$CanHaveTopics=="yes") { ?>
">
 */?>
 
#">
setTimestamp($TheTime); $tmpusrcurtime->setTimezone($usertz); $TheTime=$tmpusrcurtime->format($_SESSION['iDBDateFormat'].", ".$_SESSION['iDBTimeFormat']); $NumReply=sql_result($result,$i,"NumReply"); $NumberPosts=$NumReply + 1; $prepagelist = null; if(!isset($Settings['max_posts'])) { $Settings['max_posts'] = 10; } if(!isset($ThemeSet['MiniPageAltStyle'])) { $ThemeSet['MiniPageAltStyle'] = "off"; } if($ThemeSet['MiniPageAltStyle']!="on"&& $ThemeSet['MiniPageAltStyle']!="off") { $ThemeSet['MiniPageAltStyle'] = "off"; } if($NumberPosts>$Settings['max_posts']) { $NumberPages = ceil($NumberPosts/$Settings['max_posts']); } if($NumberPosts<=$Settings['max_posts']) { $NumberPages = 1; } if($NumberPages>4) { $prepagelist = "  "; } if($NumberPages>=2) { if($ThemeSet['MiniPageAltStyle']=="off") { $prepagelist = "(Pages: "; } if($ThemeSet['MiniPageAltStyle']=="on") { $prepagelist = $prepagelist.""; } $prepagelist = $prepagelist."1"; if($ThemeSet['MiniPageAltStyle']=="on") { $prepagelist = $prepagelist.""; } if($ThemeSet['MiniPageAltStyle']=="off") { $prepagelist = $prepagelist." "; } if($ThemeSet['MiniPageAltStyle']=="on") { $prepagelist = $prepagelist.""; } $prepagelist = $prepagelist."2"; if($ThemeSet['MiniPageAltStyle']=="on") { $prepagelist = $prepagelist.""; } if($NumberPages>=3) { if($ThemeSet['MiniPageAltStyle']=="off") { $prepagelist = $prepagelist." "; } if($ThemeSet['MiniPageAltStyle']=="on") { $prepagelist = $prepagelist.""; } $prepagelist = $prepagelist."3"; if($ThemeSet['MiniPageAltStyle']=="on") { $prepagelist = $prepagelist.""; } } if($NumberPages==4) { if($ThemeSet['MiniPageAltStyle']=="off") { $prepagelist = $prepagelist." "; } if($ThemeSet['MiniPageAltStyle']=="on") { $prepagelist = $prepagelist.""; } if($ThemeSet['MiniPageAltStyle']=="on") { $prepagelist = $prepagelist."4"; } if($ThemeSet['MiniPageAltStyle']=="off") { $prepagelist = $prepagelist." ...4"; } if($ThemeSet['MiniPageAltStyle']=="on") { $prepagelist = $prepagelist.""; } } if($NumberPages>4) { if($ThemeSet['MiniPageAltStyle']=="off") { $prepagelist = $prepagelist." "; } if($ThemeSet['MiniPageAltStyle']=="on") { $prepagelist = $prepagelist.""; } if($ThemeSet['MiniPageAltStyle']=="on") { $prepagelist = $prepagelist."» ".$NumberPages.""; } if($ThemeSet['MiniPageAltStyle']=="off") { $prepagelist = $prepagelist." ...".$NumberPages.""; } if($ThemeSet['MiniPageAltStyle']=="on") { $prepagelist = $prepagelist.""; } } if($ThemeSet['MiniPageAltStyle']=="off") { $prepagelist = $prepagelist.")"; } } $TopicName=sql_result($result,$i,"TopicName"); $TopicDescription=sql_result($result,$i,"Description"); $PinnedTopic=sql_result($result,$i,"Pinned"); $TopicStat=sql_result($result,$i,"Closed"); $requery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."members\" WHERE \"id\"=%i LIMIT 1", array($UsersID)); $reresult=sql_query($requery,$SQLStat); $renum=sql_num_rows($reresult); if($renum<1) { $UsersID = -1; $requery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."members\" WHERE \"id\"=%i LIMIT 1", array($UsersID)); $reresult=sql_query($requery,$SQLStat); $renum=sql_num_rows($reresult); } $UserHidden=sql_result($reresult,0,"HiddenMember"); $UserGroupID=sql_result($reresult,0,"GroupID"); sql_free_result($reresult); $gquery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."groups\" WHERE \"id\"=%i LIMIT 1", array($UserGroupID)); $gresult=sql_query($gquery,$SQLStat); $User1Group=sql_result($gresult,0,"Name"); $GroupNamePrefix=sql_result($gresult,0,"NamePrefix"); $GroupNameSuffix=sql_result($gresult,0,"NameSuffix"); sql_free_result($gresult); $PreUsersName = GetUserName($UsersID,$Settings['sqltable'],$SQLStat); if($PreUsersName['Name']===null) { $UsersID = -1; $PreUsersName = GetUserName($UsersID,$Settings['sqltable'],$SQLStat); } $UsersName = $PreUsersName['Name']; $UsersHidden = $PreUsersName['Hidden']; if($UsersName=="Guest") { $UsersName=$GuestsName; if($UsersName==null) { $UsersName="Guest"; } } if(isset($GroupNamePrefix)&&$GroupNamePrefix!=null) { $UsersName = $GroupNamePrefix.$UsersName; } if(isset($GroupNameSuffix)&&$GroupNameSuffix!=null) { $UsersName = $UsersName.$GroupNameSuffix; } $LastReply = " 
 "; $glrquery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."posts\" WHERE \"TopicID\"=%i ORDER BY \"TimeStamp\" DESC LIMIT 1", array($TopicID)); $glrresult=sql_query($glrquery,$SQLStat); $glrnum=sql_num_rows($glrresult); if($glrnum>0){ $ReplyID1=sql_result($glrresult,0,"id"); $UsersID1=sql_result($glrresult,0,"UserID"); $PreUsersName1 = GetUserName($UsersID1,$Settings['sqltable'],$SQLStat); if($PreUsersName1['Name']===null) { $UsersID1 = -1; $PreUsersName1 = GetUserName($UsersID1,$Settings['sqltable'],$SQLStat); } $UsersName1 = $PreUsersName1['Name']; $UsersHidden1 = $PreUsersName1['Hidden']; $GuestsName1=sql_result($glrresult,0,"GuestName"); $TimeStamp1=sql_result($glrresult,0,"TimeStamp"); $tmpusrcurtime = new DateTime(); $tmpusrcurtime->setTimestamp($TimeStamp1); $tmpusrcurtime->setTimezone($usertz); $TimeStamp1=$tmpusrcurtime->format($_SESSION['iDBDateFormat'].", ".$_SESSION['iDBTimeFormat']); } $NumPages = null; $NumRPosts = $NumReply + 1; if(!isset($Settings['max_posts'])) { $Settings['max_posts'] = 10; } if($NumRPosts>$Settings['max_posts']) { $NumPages = ceil($NumRPosts/$Settings['max_posts']); } if($NumRPosts<=$Settings['max_posts']) { $NumPages = 1; } $Users_Name1 = pre_substr($UsersName1,0,20); if($UsersName1=="Guest") { $UsersName1=$GuestsName1; if($UsersName1==null) { $UsersName1="Guest"; } } $oldusername=$UsersName1; if (pre_strlen($UsersName1)>20) { $Users_Name1 = $Users_Name1."..."; $UsersName1=$Users_Name1; } $lul = null; if($TimeStamp1!=null) { $lul = null; if($UsersID1>0&&$UsersHidden1=="no") { $lul = url_maker($exfile['member'],$Settings['file_ext'],"act=view&id=".$UsersID1,$Settings['qstr'],$Settings['qsep'],$prexqstr['member'],$exqstr['member']); $luln = url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$TopicID."&page=".$NumPages,$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic']).$qstrhtml."#reply".$NumRPosts; $LastReply = "".$TimeStamp1."
\nUser: ".$UsersName1.""; } if($UsersID1<=0||$UsersHidden1=="yes") { if($UsersID1==-1) { $UserPre = "Guest:"; } if(($UsersID1<-1&&$UsersHidden1=="yes")||$UsersID1==0||($UsersID1>0&&$UsersHidden1=="yes")) { $UserPre = "Hidden:"; } $lul = url_maker($exfile['member'],$Settings['file_ext'],"act=view&id=".$UsersID1,$Settings['qstr'],$Settings['qsep'],$prexqstr['member'],$exqstr['member']); $luln = url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$TopicID."&page=".$NumPages,$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic']).$qstrhtml."#reply".$NumRPosts; $LastReply = "".$TimeStamp1."
\n".$UserPre." ".$UsersName1.""; } } sql_free_result($glrresult); if(!isset($TimeStamp1)) { $TimeStamp1 = null; } if(!isset($LastReply)) { $LastReply = " 
 "; } if($TimeStamp1==null) { $LastReply = " 
 "; } $PreTopic = $ThemeSet['TopicIcon']; if ($PinnedTopic>2) { $PinnedTopic = 1; } if ($PinnedTopic<0) { $PinnedTopic = 0; } if(!is_numeric($PinnedTopic)) { $PinnedTopic = 0; } if ($TopicStat>3) { $TopicStat = 1; } if ($TopicStat<0) { $TopicStat = 0; } if(!is_numeric($TopicStat)) { $TopicStat = 1; } if(!is_numeric($OldForumID)) { $OldForumID = $ForumID; } if($OldForumID=="0") { $OldForumID = $ForumID; } if ($OldForumID!=$ForumID||$TForumID==$ForumID) { $PreTopic = $ThemeSet['TopicIcon']; $PreTopicText = null; if ($PinnedTopic>0&&$PinnedTopic<3&&$TopicStat==0) { if($NumReply>=$Settings['hot_topic_num']) { $PreTopicText = "Pinned: "; $PreTopic=$ThemeSet['HotPinTopic']; } if($NumReply<$Settings['hot_topic_num']) { $PreTopicText = "Pinned: "; $PreTopic=$ThemeSet['PinTopic']; } } if ($TopicStat>0&&$TopicStat<=3&&$PinnedTopic==0) { if($NumReply>=$Settings['hot_topic_num']) { $PreTopic=$ThemeSet['HotClosedTopic']; } if($NumReply<$Settings['hot_topic_num']) { $PreTopic=$ThemeSet['ClosedTopic']; } } if ($PinnedTopic==0&&$TopicStat==0) { if($NumReply>=$Settings['hot_topic_num']) { $PreTopic=$ThemeSet['HotTopic']; } if($NumReply<$Settings['hot_topic_num']) { $PreTopic=$ThemeSet['TopicIcon']; } } if ($PinnedTopic>0&&$PinnedTopic<3&&$TopicStat>0&&$TopicStat<=3) { if($NumReply>=$Settings['hot_topic_num']) { $PreTopicText = "Pinned: "; $PreTopic=$ThemeSet['HotPinClosedTopic']; } if($NumReply<$Settings['hot_topic_num']) { $PreTopicText = "Pinned: "; $PreTopic=$ThemeSet['PinClosedTopic']; } } if($PinnedTopic==2) { $PreTopicText = null; $PreTopic=$ThemeSet['AnnouncementTopic']; } } if ($OldForumID==$ForumID&&$TForumID!=$ForumID) { $PreTopicText = "Moved: "; $PreTopic = $ThemeSet['MovedTopicIcon']; if ($PinnedTopic>0&&$PinnedTopic<3&&$TopicStat==0) { if($NumReply>=$Settings['hot_topic_num']) { $PreTopic=$ThemeSet['MovedHotPinTopic']; } if($NumReply<$Settings['hot_topic_num']) { $PreTopic=$ThemeSet['MovedPinTopic']; } } if ($TopicStat>0&&$TopicStat<=3&&$PinnedTopic==0) { if($NumReply>=$Settings['hot_topic_num']) { $PreTopic=$ThemeSet['MovedHotClosedTopic']; } if($NumReply<$Settings['hot_topic_num']) { $PreTopic=$ThemeSet['MovedClosedTopic']; } } if ($PinnedTopic==0&&$TopicStat==0) { if($NumReply>=$Settings['hot_topic_num']) { $PreTopic=$ThemeSet['MovedHotTopic']; } if($NumReply<$Settings['hot_topic_num']) { $PreTopic=$ThemeSet['MovedTopicIcon']; } } if ($PinnedTopic>0&&$PinnedTopic<3&&$TopicStat>0&&$TopicStat<=3) { if($NumReply>=$Settings['hot_topic_num']) { $PreTopic=$ThemeSet['MovedHotPinClosedTopic']; } if($NumReply<$Settings['hot_topic_num']) { $PreTopic=$ThemeSet['MovedPinClosedTopic']; } } } ?>
#">
State Topic Name Author Time Replys Last Reply
">
0&&$UserHidden=="no") { echo "".$UsersName.""; } if($UsersID<=0||$UserHidden=="yes") { echo "".$UsersName.""; } ?>
 
 
getTimestamp()<$_SESSION['LastPostTime']&&$_SESSION['LastPostTime']!=0)&&($_GET['act']=="create"||$_GET['act']=="maketopic")) { $_GET['act'] = "view"; $_POST['act'] = null; redirect("refresh",$rbasedir.url_maker($exfile['forum'],$Settings['file_ext'],"act=view&id=".$ForumID."&page=1",$Settings['qstr'],$Settings['qsep'],$prexqstr['forum'],$exqstr['forum'],FALSE),"3"); ?>
">
">
 Make Reply Message:

You have to wait before making another topic.
Click ">here to go back to forum.
 

 
 
">
">
Making a Topic in
 "; } echo "
" style="vertical-align: middle; border: 0px; cursor: pointer;" title="" alt="" onclick="addsmiley('TopicPost','  ')" /> " style="vertical-align: middle; border: 0px; cursor: pointer;" title="" alt="" onclick="addsmiley('TopicPost','  ')" />
"; sql_free_result($melanie_result); ?>
">




 
 
">
">
 Make Topic Message:
"50") { $Error="Yes"; ?> "80") { $Error="Yes"; ?> "30") { $Error="Yes"; ?> _> by Kazuki Przyborowski - Cool Dude 2k */ $melanieqy=sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."wordfilter\"", array(null)); $melaniert=sql_query($melanieqy,$SQLStat); $melanienm=sql_num_rows($melaniert); $melanies=0; while ($melanies < $melanienm) { $Filter=sql_result($melaniert,$melanies,"FilterWord"); $Replace=sql_result($melaniert,$melanies,"Replacement"); $CaseInsensitive=sql_result($melaniert,$melanies,"CaseInsensitive"); if($CaseInsensitive=="on") { $CaseInsensitive = "yes"; } if($CaseInsensitive=="off") { $CaseInsensitive = "no"; } if($CaseInsensitive!="yes"||$CaseInsensitive!="no") { $CaseInsensitive = "no"; } $WholeWord=sql_result($melaniert,$melanies,"WholeWord"); if($WholeWord=="on") { $WholeWord = "yes"; } if($WholeWord=="off") { $WholeWord = "no"; } if($WholeWord!="yes"&&$WholeWord!="no") { $WholeWord = "no"; } $Filter = preg_quote($Filter, "/"); if($CaseInsensitive!="yes"&&$WholeWord=="yes") { $_POST['TopicDesc'] = preg_replace("/\b(".$Filter.")\b/", $Replace, $_POST['TopicDesc']); $_POST['TopicPost'] = preg_replace("/\b(".$Filter.")\b/", $Replace, $_POST['TopicPost']); } if($CaseInsensitive=="yes"&&$WholeWord=="yes") { $_POST['TopicDesc'] = preg_replace("/\b(".$Filter.")\b/i", $Replace, $_POST['TopicDesc']); $_POST['TopicPost'] = preg_replace("/\b(".$Filter.")\b/i", $Replace, $_POST['TopicPost']); } if($CaseInsensitive!="yes"&&$WholeWord!="yes") { $_POST['TopicDesc'] = preg_replace("/".$Filter."/", $Replace, $_POST['TopicDesc']); $_POST['TopicPost'] = preg_replace("/".$Filter."/", $Replace, $_POST['TopicPost']); } if($CaseInsensitive=="yes"&&$WholeWord!="yes") { $_POST['TopicDesc'] = preg_replace("/".$Filter."/i", $Replace, $_POST['TopicDesc']); $_POST['TopicPost'] = preg_replace("/".$Filter."/i", $Replace, $_POST['TopicPost']); } ++$melanies; } sql_free_result($melaniert); $lonewolfqy=sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."restrictedwords\" WHERE \"RestrictedTopicName\"='yes' or \"RestrictedUserName\"='yes'", array(null)); $lonewolfrt=sql_query($lonewolfqy,$SQLStat); $lonewolfnm=sql_num_rows($lonewolfrt); $lonewolfs=0; $RMatches = null; $RGMatches = null; while ($lonewolfs < $lonewolfnm) { $RWord=sql_result($lonewolfrt,$lonewolfs,"Word"); $RCaseInsensitive=sql_result($lonewolfrt,$lonewolfs,"CaseInsensitive"); if($RCaseInsensitive=="on") { $RCaseInsensitive = "yes"; } if($RCaseInsensitive=="off") { $RCaseInsensitive = "no"; } if($RCaseInsensitive!="yes"||$RCaseInsensitive!="no") { $RCaseInsensitive = "no"; } $RWholeWord=sql_result($lonewolfrt,$lonewolfs,"WholeWord"); if($RWholeWord=="on") { $RWholeWord = "yes"; } if($RWholeWord=="off") { $RWholeWord = "no"; } if($RWholeWord!="yes"||$RWholeWord!="no") { $RWholeWord = "no"; } $RestrictedTopicName=sql_result($lonewolfrt,$lonewolfs,"RestrictedTopicName"); if($RestrictedTopicName=="on") { $RestrictedTopicName = "yes"; } if($RestrictedTopicName=="off") { $RestrictedTopicName = "no"; } if($RestrictedTopicName!="yes"||$RestrictedTopicName!="no") { $RestrictedTopicName = "no"; } $RestrictedUserName=sql_result($lonewolfrt,$lonewolfs,"RestrictedUserName"); if($RestrictedUserName=="on") { $RestrictedUserName = "yes"; } if($RestrictedUserName=="off") { $RestrictedUserName = "no"; } if($RestrictedUserName!="yes"||$RestrictedUserName!="no") { $RestrictedUserName = "no"; } $RWord = preg_quote($RWord, "/"); if($RCaseInsensitive!="yes"&&$RWholeWord=="yes") { if($RestrictedTopicName=="yes") { $RMatches = preg_match("/\b(".$RWord.")\b/", $_POST['TopicName']); if($RMatches==true) { break 1; } } if($RestrictedUserName=="yes") { $RGMatches = preg_match("/\b(".$RWord.")\b/", $_POST['GuestName']); if($RGMatches==true) { break 1; } } } if($RCaseInsensitive=="yes"&&$RWholeWord=="yes") { if($RestrictedTopicName=="yes") { $RMatches = preg_match("/\b(".$RWord.")\b/i", $_POST['TopicName']); if($RMatches==true) { break 1; } } if($RestrictedUserName=="yes") { $RGMatches = preg_match("/\b(".$RWord.")\b/i", $_POST['GuestName']); if($RGMatches==true) { break 1; } } } if($RCaseInsensitive!="yes"&&$RWholeWord!="yes") { if($RestrictedTopicName=="yes") { $RMatches = preg_match("/".$RWord."/", $_POST['TopicName']); if($RMatches==true) { break 1; } } if($RestrictedUserName=="yes") { $RGMatches = preg_match("/".$RWord."/", $_POST['GuestName']); if($RGMatches==true) { break 1; } } } if($RCaseInsensitive=="yes"&&$RWholeWord!="yes") { if($RestrictedTopicName=="yes") { $RMatches = preg_match("/".$RWord."/i", $_POST['TopicName']); if($RMatches==true) { break 1; } } if($RestrictedUserName=="yes") { $RGMatches = preg_match("/".$RWord."/i", $_POST['GuestName']); if($RGMatches==true) { break 1; } } } ++$lonewolfs; } sql_free_result($lonewolfrt); if ($_POST['TopicName']==null) { $Error="Yes"; ?> getTimestamp(); $requery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."members\" WHERE \"id\"=%i LIMIT 1", array($MyUserID)); $reresult=sql_query($requery,$SQLStat); $renum=sql_num_rows($reresult); $rei=0; while ($rei < $renum) { $User1ID=$MyUserID; $User1Name=sql_result($reresult,$rei,"Name"); if($_SESSION['UserGroup']==$Settings['GuestGroup']) { $User1Name = $_POST['GuestName']; } $User1Email=sql_result($reresult,$rei,"Email"); $User1Title=sql_result($reresult,$rei,"Title"); $User1GroupID=sql_result($reresult,$rei,"GroupID"); $PostCount=sql_result($reresult,$rei,"PostCount"); if($PostCountAdd=="on") { $NewPostCount = $PostCount + 1; } if(!isset($NewPostCount)) { $NewPostCount = $PostCount; } $gquery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."groups\" WHERE \"id\"=%i LIMIT 1", array($User1GroupID)); $gresult=sql_query($gquery,$SQLStat); $User1Group=sql_result($gresult,0,"Name"); sql_free_result($gresult); $User1IP=$_SERVER['REMOTE_ADDR']; ++$rei; } sql_free_result($reresult); $query = sql_pre_query("INSERT INTO \"".$Settings['sqltable']."topics\" (\"PollID\", \"ForumID\", \"CategoryID\", \"OldForumID\", \"OldCategoryID\", \"UserID\", \"GuestName\", \"TimeStamp\", \"LastUpdate\", \"TopicName\", \"Description\", \"NumReply\", \"NumViews\", \"Pinned\", \"Closed\") VALUES\n". "(0, %i, %i, %i, %i, %i, '%s', %i, %i, '%s', '%s', 0, 0, 0, 0)", array($ForumID,$ForumCatID,$ForumID,$ForumCatID,$User1ID,$User1Name,$LastActive,$LastActive,$_POST['TopicName'],$_POST['TopicDesc'])); sql_query($query,$SQLStat); $topicid = sql_get_next_id($Settings['sqltable'],"topics",$SQLStat); $query = sql_pre_query("INSERT INTO \"".$Settings['sqltable']."posts\" (\"TopicID\", \"ForumID\", \"CategoryID\", \"UserID\", \"GuestName\", \"TimeStamp\", \"LastUpdate\", \"EditUser\", \"EditUserName\", \"Post\", \"Description\", \"IP\", \"EditIP\") VALUES\n". "(".$topicid.", %i, %i, %i, '%s', %i, %i, 0, '', '%s', '%s', '%s', '0')", array($ForumID,$ForumCatID,$User1ID,$User1Name,$LastActive,$LastActive,$_POST['TopicPost'],$_POST['TopicDesc'],$User1IP)); sql_query($query,$SQLStat); $postid = sql_get_next_id($Settings['sqltable'],"posts",$SQLStat); $_SESSION['LastPostTime'] = $utccurtime->getTimestamp() + $GroupInfo['FloodControl']; if($User1ID!=0&&$User1ID!=-1) { $queryupd = sql_pre_query("UPDATE \"".$Settings['sqltable']."members\" SET \"LastActive\"=%i,\"IP\"='%s',\"PostCount\"=%i,\"LastPostTime\"=%i WHERE \"id\"=%i", array($LastActive,$User1IP,$NewPostCount,$_SESSION['LastPostTime'],$User1ID)); sql_query($queryupd,$SQLStat); } $NewNumPosts = $NumberPosts + 1; $NewNumTopics = $NumberTopics + 1; $queryupd = sql_pre_query("UPDATE \"".$Settings['sqltable']."forums\" SET \"NumPosts\"=%i,\"NumTopics\"=%i WHERE \"id\"=%i", array($NewNumPosts,$NewNumTopics,$ForumID)); sql_query($queryupd,$SQLStat); redirect("refresh",$rbasedir.url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$topicid."&page=1",$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'],FALSE),"3"); ?>

Your Topic Name is too big.
 

Invalid code entered
 

Your Topic Description is too big.
 

Sorry the referering url dose not match our host name.
 

Sorry the referering url dose not match our host name.
 

You Guest Name is too big.
 

Sorry the referering url dose not match our host name.
 

You need to enter a Topic Name.
 

You need to enter a Topic Description.
 

You need to enter a Guest Name.
 

This Guest Name is restricted to use.
 

You do not have permission to make a topic here.
 

You need to enter a Topic Post.
 

This Topic Name is restricted to use.
 

Click ">here to goto index page.
 


Topic was started.
Click ">here to continue to topic.
 

 
 
">
 */ ?>
 
getTimestamp(); $uviewltime = $uviewlcuttime - ini_get("session.gc_maxlifetime"); if($InSubForum==0) { $uviewlquery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."sessions\" WHERE \"expires\" >= %i AND \"session_id\"<>'%s' AND (\"serialized_data\" LIKE '%s' OR \"serialized_data\" LIKE '%s') ORDER BY \"expires\" DESC", array($uviewltime, session_id(), "%currentforumid:0,".$ForumID.";%", "%currentforumid:".$ForumID.",%")); } if($InSubForum!=0) { $uviewlquery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."sessions\" WHERE \"expires\" >= %i AND \"session_id\"<>'%s' AND (\"serialized_data\" LIKE '%s' OR \"serialized_data\" LIKE '%s') ORDER BY \"expires\" DESC", array($uviewltime, session_id(), "%currentforumid:".$InSubForum.",".$ForumID.";%", "%currentforumid:0,".$ForumID.";")); } $uviewlresult=sql_query($uviewlquery,$SQLStat); $uviewlnum=sql_num_rows($uviewlresult); $uviewli=0; $uviewlmn = 0; $uviewlgn = 0; $uviewlan = 0; $uviewlmbn = 0; $MembersViewList = null; $GuestsOnline = null; while ($uviewli < $uviewlnum) { $session_data=sql_result($uviewlresult,$uviewli,"session_data"); $serialized_data=sql_result($uviewlresult,$uviewli,"serialized_data"); $session_user_agent=sql_result($uviewlresult,$uviewli,"user_agent"); $session_ip_address=sql_result($uviewlresult,$uviewli,"ip_address"); //$UserSessInfo = unserialize_session($session_data); $UserSessInfo = unserialize($serialized_data); if(!isset($UserSessInfo['UserGroup'])) { $UserSessInfo['UserGroup'] = $Settings['GuestGroup']; } $AmIHiddenUser = "no"; $user_agent_check = false; if(user_agent_check($session_user_agent)) { $user_agent_check = user_agent_check($session_user_agent); } if($UserSessInfo['UserGroup']!=$Settings['GuestGroup']||$user_agent_check!==false) { $PreAmIHiddenUser = GetUserName($UserSessInfo['UserID'],$Settings['sqltable'],$SQLStat); $AmIHiddenUser = $PreAmIHiddenUser['Hidden']; if(($AmIHiddenUser=="no"&&$UserSessInfo['UserID']>0)||$user_agent_check!==false) { if($uviewlmbn>0) { $MembersViewList .= ", "; } if($user_agent_check===false) { $uatitleadd = null; if($GroupInfo['CanViewUserAgent']=="yes") { $uatitleadd = " title=\"".htmlentities($session_user_agent, ENT_QUOTES, $Settings['charset'])."\""; } $MembersViewList .= "".$UserSessInfo['MemberName'].""; if($GroupInfo['CanViewIPAddress']=="yes") { $MembersViewList .= " (".$session_ip_address.")"; } ++$uviewlmn; ++$uviewlmbn; } if($user_agent_check!==false) { $uatitleadd = null; if($GroupInfo['CanViewUserAgent']=="yes") { $uatitleadd = " title=\"".htmlentities($session_user_agent, ENT_QUOTES, $Settings['charset'])."\""; } $MembersViewList .= "".$user_agent_check.""; if($GroupInfo['CanViewIPAddress']=="yes") { $MembersViewList .= " (".$session_ip_address.")"; } ++$uviewlmbn; } } if($UserSessInfo['UserID']<=0||$AmIHiddenUser=="yes") { if($user_agent_check===false) { ++$uviewlan; } } } if($UserSessInfo['UserGroup']==$Settings['GuestGroup']) { /*$uatitleadd = null; if($GroupInfo['CanViewUserAgent']=="yes") { $uatitleadd = " title=\"".htmlentities($session_user_agent, ENT_QUOTES, $Settings['charset'])."\""; } $GuestsViewList .= "".$MemList['Name'].""; if($GroupInfo['CanViewIPAddress']=="yes") { $GuestsViewList .= " (".$session_ip_address.")"; } */ ++$uviewlgn; } ++$uviewli; } if(!isset($_SESSION['UserGroup'])) { $_SESSION['UserGroup'] = $Settings['GuestGroup']; } $AmIHiddenUser = "no"; $user_agent_check = false; if(user_agent_check($_SERVER['HTTP_USER_AGENT'])) { $user_agent_check = user_agent_check($_SERVER['HTTP_USER_AGENT']); } if($_SESSION['UserGroup']!=$Settings['GuestGroup']||$user_agent_check!==false) { $PreAmIHiddenUser = GetUserName($_SESSION['UserID'],$Settings['sqltable'],$SQLStat); $AmIHiddenUser = $PreAmIHiddenUser['Hidden']; if(($AmIHiddenUser=="no"&&$_SESSION['UserID']>0)||$user_agent_check!==false) { if($uviewlmbn>0) { $MembersViewList = ", ".$MembersViewList; } if($user_agent_check===false) { $uatitleadd = null; if($GroupInfo['CanViewUserAgent']=="yes") { $uatitleadd = " title=\"".htmlentities($_SERVER['HTTP_USER_AGENT'], ENT_QUOTES, $Settings['charset'])."\""; } if($GroupInfo['CanViewIPAddress']=="yes") { $MembersViewList = " (".$_SERVER['REMOTE_ADDR'].")".$MembersViewList; } $MembersViewList = "".$_SESSION['MemberName']."".$MembersViewList; ++$uviewlmn; ++$uviewlmbn; } if($user_agent_check!==false) { $uatitleadd = null; if($GroupInfo['CanViewIPAddress']=="yes") { $MembersViewList = " (".$_SERVER['REMOTE_ADDR'].")".$MembersViewList; } if($GroupInfo['CanViewUserAgent']=="yes") { $uatitleadd = " title=\"".htmlentities($_SERVER['HTTP_USER_AGENT'], ENT_QUOTES, $Settings['charset'])."\""; } $MembersViewList = "".$user_agent_check."".$MembersViewList; ++$uviewlmbn; } } if($_SESSION['UserID']<=0||$AmIHiddenUser=="yes") { if($user_agent_check===false) { ++$uviewlan; } } } if($_SESSION['UserGroup']==$Settings['GuestGroup']) { /*$uatitleadd = null; if($GroupInfo['CanViewUserAgent']=="yes") { $uatitleadd = " title=\"".htmlentities($_SERVER['HTTP_USER_AGENT'], ENT_QUOTES, $Settings['charset'])."\""; } if($GroupInfo['CanViewIPAddress']=="yes") { $GuestsViewList = " (".$_SERVER['REMOTE_ADDR'].")".$GuestsViewList; } $GuestsViewList = "".$MemList['Name']."".$GuestsViewList; */ ++$uviewlgn; } ++$uviewlnum; ?>
">Forum Statistics
users viewing forum
  guests, members, anonymous members
 "; } ?>