From 205c22bd4ab38244e7025b2b39e631dae6eef3a1 Mon Sep 17 00:00:00 2001 From: Kazuki Przyborowski Date: Fri, 1 May 2009 07:52:43 +0000 Subject: [PATCH] Add Low View (Lo-Fi) version. git-svn-id: svn://svn.code.sf.net/p/intdb/svn/trunk@246 2b68903e-0b30-0410-9a39-a2e4f3c5be39 --- forum.php | 8 +- inc/lowforums.php | 134 ++++++++++++ inc/lowsubforums.php | 198 ++++++++++++++++++ inc/lowtopics.php | 577 +++++++++++++++++++++++++++++++++++++++++++++++++++ inc/versioninfo.php | 6 +- inc/xhtml10.php | 23 +- inc/xhtml11.php | 23 +- index.php | 9 +- preindex.php | 10 +- subforum.php | 8 +- 10 files changed, 981 insertions(+), 15 deletions(-) create mode 100644 inc/lowforums.php create mode 100644 inc/lowsubforums.php create mode 100644 inc/lowtopics.php diff --git a/forum.php b/forum.php index dc38253..1bc0185 100644 --- a/forum.php +++ b/forum.php @@ -11,8 +11,9 @@ Copyright 2004-2008 Cool Dude 2k - http://idb.berlios.de/ Copyright 2004-2008 Game Maker 2k - http://intdb.sourceforge.net/ - $FileInfo: forum.php - Last Update: 12/09/2008 SVN 207 - Author: cooldude2k $ + $FileInfo: forum.php - Last Update: 5/01/2009 SVN 246 - Author: cooldude2k $ */ +$checklowview = true; require('preindex.php'); $usefileext = $Settings['file_ext']; if($ext=="noext"||$ext=="no ext"||$ext=="no+ext") { $usefileext = ""; } @@ -28,7 +29,8 @@ if($Settings['enable_rss']=="on") { <?php echo $Settings['board_name'].$idbpowertitle; ?> - diff --git a/inc/lowforums.php b/inc/lowforums.php new file mode 100644 index 0000000..f7e8fea --- /dev/null +++ b/inc/lowforums.php @@ -0,0 +1,134 @@ + +
Full Version: ">
+
">Board index
+
 
+
+"; +if($apcl==1) { +$sflist = null; +$sflist = $sflist." ".$sfurl; } +if($apcl>1) { +$sflist = $sflist." ".$sfurl; } +$gltf[$apcl] = $SubsForumID; ++$apcl; } +++$apci; } +@mysql_free_result($apcresult); } } +if(isset($PermissionInfo['CanViewForum'][$ForumID])&& + $PermissionInfo['CanViewForum'][$ForumID]=="yes") { +$LastTopic = " 
 
 "; +if(!isset($LastTopic)) { $LastTopic = null; } +$gltnum = count($gltf); $glti = 0; +$OldUpdateTime = 0; $UseThisFonum = null; +if ($ForumType=="subforum") { +while ($glti < $gltnum) { +$gltfoquery = query("SELECT * FROM `".$Settings['sqltable']."topics` WHERE `ForumID`=%i ORDER BY `LastUpdate` DESC LIMIT 1", array($gltf[$glti])); +$gltforesult=mysql_query($gltfoquery); +$gltfonum=mysql_num_rows($gltforesult); +if($gltfonum>0) { +$NewUpdateTime=mysql_result($gltforesult,0,"LastUpdate"); +if($NewUpdateTime>$OldUpdateTime) { + $UseThisFonum = $gltf[$glti]; +$OldUpdateTime = $NewUpdateTime; } } +@mysql_free_result($gltforesult); +++$glti; } } +if ($ForumType=="redirect") { $LastTopic=" 
Redirects: ".$NumRedirects."
 "; } +$PreForum = $ThemeSet['ForumIcon']; +if ($ForumType=="forum") { $PreForum=$ThemeSet['ForumIcon']; } +if ($ForumType=="subforum") { $PreForum=$ThemeSet['SubForumIcon']; } +if ($ForumType=="redirect") { $PreForum=$ThemeSet['RedirectIcon']; } +$ExStr = ""; if ($ForumType!="redirect"&& + $ForumShowTopics!="no") { $ExStr = "&page=1"; } +?> + +=1) { +?> + +
+
 
diff --git a/inc/lowsubforums.php b/inc/lowsubforums.php new file mode 100644 index 0000000..7c65699 --- /dev/null +++ b/inc/lowsubforums.php @@ -0,0 +1,198 @@ +=1) { +$ForumID=mysql_result($checkresult,0,"id"); +$ForumName=mysql_result($checkresult,0,"Name"); +$ForumType=mysql_result($checkresult,0,"ForumType"); +$CategoryID=mysql_result($checkresult,0,"CategoryID"); +$RedirectURL=mysql_result($checkresult,0,"RedirectURL"); +$RedirectTimes=mysql_result($checkresult,0,"Redirects"); +$CanHaveTopics=mysql_result($checkresult,0,"CanHaveTopics"); +$NumberViews=mysql_result($checkresult,0,"NumViews"); +$SForumName = $ForumName; +$ForumType = strtolower($ForumType); $CanHaveTopics = strtolower($CanHaveTopics); +if($CanHaveTopics!="yes"&&$ForumType!="redirect") { +if($NumberViews==0||$NumberViews==null) { $NewNumberViews = 1; } +if($NumberViews!=0&&$NumberViews!=null) { $NewNumberViews = $NumberViews + 1; } +$viewup = query("UPDATE `".$Settings['sqltable']."forums` SET `NumViews`='%s' WHERE `id`=%i", array($NewNumberViews,$_GET['id'])); +mysql_query($viewup); } +if($ForumType=="redirect") { +if($RedirectTimes==0||$RedirectTimes==null) { $NewRedirTime = 1; } +if($RedirectTimes!=0&&$RedirectTimes!=null) { $NewRedirTime = $RedirectTimes + 1; } +$redirup = query("UPDATE `".$Settings['sqltable']."forums` SET `Redirects`='%s' WHERE `id`=%i", array($NewRedirTime,$_GET['id'])); +mysql_query($redirup); +if($RedirectURL!="http://"&&$RedirectURL!="") { +redirect("location",$RedirectURL,0,null,false); ob_clean(); +@header("Content-Type: text/plain; charset=".$Settings['charset']); +gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @mysql_close(); die(); } +if($RedirectURL=="http://"||$RedirectURL=="") { +redirect("location",url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); +ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']); +gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @mysql_close(); die(); } } +if($ForumType=="forum") { +redirect("location",$basedir.url_maker($exfile['forum'],$Settings['file_ext'],"act=".$_GET['act']."&id=".$_GET['id'],$Settings['qstr'],$Settings['qsep'],$prexqstr['forum'],$exqstr['forum'],FALSE)); +ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']); +gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @mysql_close(); die(); } +@mysql_free_result($checkresult); +$prequery = query("SELECT * FROM `".$Settings['sqltable']."categories` WHERE `ShowCategory`='yes' AND `id`=%i ORDER BY `OrderID` ASC, `id` ASC", array($CategoryID)); +$preresult=mysql_query($prequery); +$prenum=mysql_num_rows($preresult); +$prei=0; +$CategoryID=mysql_result($preresult,0,"id"); +$CategoryType=mysql_result($preresult,0,"CategoryType"); +$CategoryName=mysql_result($preresult,0,"Name"); +$CategoryShow=mysql_result($preresult,0,"ShowCategory"); +$CategoryDescription=mysql_result($preresult,0,"Description"); +?> +
Full Version: ">
+
">Board index">
+
 
+
+"; +if($apcl==1) { +$sflist = "Subforums:"; +$sflist = $sflist." ".$sfurl; } +if($apcl>1) { +$sflist = $sflist." ".$sfurl; } +$gltf[$apcl] = $SubsForumID; ++$apcl; } +++$apci; } +@mysql_free_result($apcresult); } } +if(isset($PermissionInfo['CanViewForum'][$ForumID])&& + $PermissionInfo['CanViewForum'][$ForumID]=="yes") { +$LastTopic = " 
 
 "; +if(!isset($LastTopic)) { $LastTopic = null; } +$gltnum = count($gltf); $glti = 0; +$OldUpdateTime = 0; $UseThisFonum = null; +if ($ForumType=="subforum") { +while ($glti < $gltnum) { +$gltfoquery = query("SELECT * FROM `".$Settings['sqltable']."topics` WHERE `CategoryID`=%i AND `ForumID`=%i ORDER BY `LastUpdate` DESC LIMIT 1", array($CategoryID,$gltf[$glti])); +$gltforesult=mysql_query($gltfoquery); +$gltfonum=mysql_num_rows($gltforesult); +if($gltfonum>0) { +$NewUpdateTime=mysql_result($gltforesult,0,"LastUpdate"); +if($NewUpdateTime>$OldUpdateTime) { + $UseThisFonum = $gltf[$glti]; +$OldUpdateTime = $NewUpdateTime; } } +@mysql_free_result($gltforesult); +++$glti; } } +if ($ForumType!="subforum"&&$ForumType!="redirect") { $UseThisFonum = $gltf[0]; } +if ($ForumType!="redirect") { +$gltquery = query("SELECT * FROM `".$Settings['sqltable']."topics` WHERE `ForumID`=%i ORDER BY `LastUpdate` DESC LIMIT 1", array($UseThisFonum)); +$gltresult=mysql_query($gltquery); +$gltnum=mysql_num_rows($gltresult); +if($gltnum>0){ +$TopicID=mysql_result($gltresult,0,"id"); +$TopicName=mysql_result($gltresult,0,"TopicName"); +$NumReplys=mysql_result($gltresult,0,"NumReply"); +$TopicName1 = pre_substr($TopicName,0,20); +$oldtopicname=$TopicName; +if (pre_strlen($TopicName)>20) { +$TopicName1 = $TopicName1."..."; $TopicName=$TopicName1; } +if($UsersID!="-1") { +$lul = url_maker($exfile['member'],$Settings['file_ext'],"act=view&id=".$UsersID,$Settings['qstr'],$Settings['qsep'],$prexqstr['member'],$exqstr['member']); +$LastTopic = $TimeStamp."
\nTopic: ".$TopicName."
\nUser: ".$UsersName.""; } +if($UsersID=="-1") { +$LastTopic = $TimeStamp."
\nTopic: ".$TopicName."
\nGuest: ".$UsersName.""; } } +if($LastTopic==null) { $LastTopic = " 
 
 "; } } +@mysql_free_result($gltresult); +if ($ForumType=="redirect") { $LastTopic="Redirects: ".$NumRedirects; } +$PreForum = $ThemeSet['ForumIcon']; +if ($ForumType=="forum") { $PreForum=$ThemeSet['ForumIcon']; } +if ($ForumType=="subforum") { $PreForum=$ThemeSet['SubForumIcon']; } +if ($ForumType=="redirect") { $PreForum=$ThemeSet['RedirectIcon']; } +$ExStr = ""; if ($ForumType!="redirect"&& + $ForumShowTopics!="no") { $ExStr = "&page=1"; } +?> + + +
+
 
+ diff --git a/inc/lowtopics.php b/inc/lowtopics.php new file mode 100644 index 0000000..13a93cb --- /dev/null +++ b/inc/lowtopics.php @@ -0,0 +1,577 @@ +=1) { +$ForumID=mysql_result($preresult,0,"id"); +$ForumCatID=mysql_result($preresult,0,"CategoryID"); +$ForumName=mysql_result($preresult,0,"Name"); +$ForumType=mysql_result($preresult,0,"ForumType"); +$RedirectURL=mysql_result($preresult,0,"RedirectURL"); +$RedirectTimes=mysql_result($preresult,0,"Redirects"); +$NumberViews=mysql_result($preresult,0,"NumViews"); +$NumberPosts=mysql_result($preresult,0,"NumPosts"); +$NumberTopics=mysql_result($preresult,0,"NumTopics"); +$PostCountAdd=mysql_result($preresult,0,"PostCountAdd"); +$CanHaveTopics=mysql_result($preresult,0,"CanHaveTopics"); +$HotTopicPosts=mysql_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=mysql_result($preresult,0,"PostCountView"); +$ForumKarmaCountView=mysql_result($preresult,0,"KarmaCountView"); +@mysql_free_result($preresult); +$ForumType = strtolower($ForumType); $CanHaveTopics = strtolower($CanHaveTopics); +$catcheck = query("SELECT * FROM `".$Settings['sqltable']."categories` WHERE `id`=%i LIMIT 1", array($ForumCatID)); +$catresult=mysql_query($catcheck); +$CategoryName=mysql_result($catresult,0,"Name"); +$CategoryType=mysql_result($catresult,0,"CategoryType"); +$CategoryPostCountView=mysql_result($catresult,0,"PostCountView"); +$CategoryKarmaCountView=mysql_result($catresult,0,"KarmaCountView"); +@mysql_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",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); } +if($CategoryPostCountView!=0&&$MyPostCountChk<$CategoryPostCountView) { +redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); } +if($ForumKarmaCountView!=0&&$MyKarmaCount<$ForumKarmaCountView) { +redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); } +if($CategoryKarmaCountView!=0&&$MyKarmaCount<$CategoryKarmaCountView) { +redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); } } +?> +
Full Version: ">
+
">Board index">
+
 
+$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; +$PageLimit = $Settings['max_topics'] * $snumber; +if($PageLimit<0) { $PageLimit = 0; } +//End Topic Page Code +$i=0; +$query = query("SELECT * FROM `".$Settings['sqltable']."topics` WHERE `ForumID`=%i ORDER BY `Pinned` DESC, `LastUpdate` DESC LIMIT %i,%i", array($_GET['id'],$PageLimit,$Settings['max_topics'])); +$result=mysql_query($query); +$num=mysql_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."
"; } +?> +
+
+
 
+
+ +
 
+ +
+ +
+ +">
+ + + + + + + + + + +
+"> +
 Make Topic Message:
+ +="30") { $Error="Yes"; ?> + + + + + + + +="45") { $Error="Yes"; ?> + + + +="25") { $Error="Yes"; ?> + + + + + + + +_> + by Kazuki Przyborowski - Cool Dude 2k *//* +$katarzynaqy=query("SELECT * FROM `".$Settings['sqltable']."wordfilter`", array(null)); +$katarzynart=mysql_query($katarzynaqy); +$katarzynanm=mysql_num_rows($katarzynart); +$katarzynas=0; +while ($katarzynas < $katarzynanm) { +$Filter=mysql_result($katarzynart,$katarzynas,"Filter"); +$Replace=mysql_result($katarzynart,$katarzynas,"Replace"); +$CaseInsensitive=mysql_result($katarzynart,$katarzynas,"CaseInsensitive"); +if($CaseInsensitive=="on") { $CaseInsensitive = "yes"; } +if($CaseInsensitive=="off") { $CaseInsensitive = "no"; } +if($CaseInsensitive!="yes"||$CaseInsensitive!="no") { $CaseInsensitive = "no"; } +$WholeWord=mysql_result($katarzynart,$katarzynas,"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']); } +++$katarzynas; } @mysql_free_result($katarzynart); +$lonewolfqy=query("SELECT * FROM `".$Settings['sqltable']."restrictedwords` WHERE `RestrictedTopicName`='yes' or `RestrictedUserName`='yes'", array(null)); +$lonewolfrt=mysql_query($lonewolfqy); +$lonewolfnm=mysql_num_rows($lonewolfrt); +$lonewolfs=0; $RMatches = null; $RGMatches = null; +while ($lonewolfs < $lonewolfnm) { +$RWord=mysql_result($lonewolfrt,$lonewolfs,"Word"); +$RCaseInsensitive=mysql_result($lonewolfrt,$lonewolfs,"CaseInsensitive"); +if($RCaseInsensitive=="on") { $RCaseInsensitive = "yes"; } +if($RCaseInsensitive=="off") { $RCaseInsensitive = "no"; } +if($RCaseInsensitive!="yes"||$RCaseInsensitive!="no") { $RCaseInsensitive = "no"; } +$RWholeWord=mysql_result($lonewolfrt,$lonewolfs,"WholeWord"); +if($RWholeWord=="on") { $RWholeWord = "yes"; } +if($RWholeWord=="off") { $RWholeWord = "no"; } +if($RWholeWord!="yes"||$RWholeWord!="no") { $RWholeWord = "no"; } +$RestrictedTopicName=mysql_result($lonewolfrt,$lonewolfs,"RestrictedTopicName"); +if($RestrictedTopicName=="on") { $RestrictedTopicName = "yes"; } +if($RestrictedTopicName=="off") { $RestrictedTopicName = "no"; } +if($RestrictedTopicName!="yes"||$RestrictedTopicName!="no") { $RestrictedTopicName = "no"; } +$RestrictedUserName=mysql_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; } @mysql_free_result($lonewolfrt); +if ($_POST['TopicName']==null) { $Error="Yes"; ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/inc/versioninfo.php b/inc/versioninfo.php index 0da1299..3bbc557 100644 --- a/inc/versioninfo.php +++ b/inc/versioninfo.php @@ -11,7 +11,7 @@ Copyright 2004-2009 Cool Dude 2k - http://idb.berlios.de/ Copyright 2004-2009 Game Maker 2k - http://intdb.sourceforge.net/ - $FileInfo: versioninfo.php - Last Update: 4/22/2009 SVN 245 - Author: cooldude2k $ + $FileInfo: versioninfo.php - Last Update: 5/01/2009 SVN 246 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="versioninfo.php"||$File3Name=="/versioninfo.php") { @@ -27,8 +27,8 @@ function version_info($proname,$subver,$ver,$supver,$reltype,$svnver,$showsvn) { return $return_var; } // Version number and date stuff. :P $VER1[0] = 0; $VER1[1] = 2; $VER1[2] = 6; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2]; -$VER2[0] = "Pre-Alpha"; $VER2[1] = "PA"; $VER2[2] = "SVN"; $SubVerN = 245; $RName = "iDB"; $SFName = "IntDB"; -$SVNDay[0] = 4; $SVNDay[1] = 22; $SVNDay[2] = 2009; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2]; +$VER2[0] = "Pre-Alpha"; $VER2[1] = "PA"; $VER2[2] = "SVN"; $SubVerN = 246; $RName = "iDB"; $SFName = "IntDB"; +$SVNDay[0] = 5; $SVNDay[1] = 01; $SVNDay[2] = 2009; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2]; $VerInfo['iDB_Ver'] = version_info($RName,$VER1[0],$VER1[1],$VER1[2],$VER2[1],$SubVerN,false); $VerInfo['iDB_Ver_SVN'] = version_info($RName,$VER1[0],$VER1[1],$VER1[2],$VER2[1],$SubVerN,true); $VerInfo['iDB_Full_Ver'] = version_info($RName,$VER1[0],$VER1[1],$VER1[2],$VER2[0],$SubVerN,false); diff --git a/inc/xhtml10.php b/inc/xhtml10.php index 1220cf1..17b2f90 100644 --- a/inc/xhtml10.php +++ b/inc/xhtml10.php @@ -11,7 +11,7 @@ Copyright 2004-2008 Cool Dude 2k - http://idb.berlios.de/ Copyright 2004-2008 Game Maker 2k - http://intdb.sourceforge.net/ - $FileInfo: xhtml10.php - Last Update: 12/11/2008 SVN 210 - Author: cooldude2k $ + $FileInfo: xhtml10.php - Last Update: 5/01/2009 SVN 246 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="xhtml10.php"||$File3Name=="/xhtml10.php") { @@ -38,13 +38,14 @@ if($Settings['output_type']!="xhtml") { if($Settings['output_type']!="html") { $ccstart = "//"; @header("Content-Type: text/html; charset=".$Settings['charset']); } } +if($checklowview===true) { $ThemeSet['CSSType'] = "lowview"; } if($ThemeSet['CSSType']!="import"&& $ThemeSet['CSSType']!="link"&& + $ThemeSet['CSSType']!="lowview"&& $ThemeSet['CSSType']!="xml") { $ThemeSet['CSSType'] = "import"; } if($ThemeSet['CSSType']=="xhtml") { xml_tag_make("xml-stylesheet","type=text/css&href=".$ThemeSet['CSS']); } -if($ThemeSet['CSSType']!="xhtml") { $ThemeSet['CSSType'] = "import"; } @header("Content-Style-Type: text/css"); @header("Content-Script-Type: text/javascript"); if($Settings['showverinfo']!="on") { @@ -121,6 +122,24 @@ if($Settings['html_level']=="Strict") { ?> + + diff --git a/inc/xhtml11.php b/inc/xhtml11.php index b5e16df..d71733d 100644 --- a/inc/xhtml11.php +++ b/inc/xhtml11.php @@ -11,7 +11,7 @@ Copyright 2004-2008 Cool Dude 2k - http://idb.berlios.de/ Copyright 2004-2008 Game Maker 2k - http://intdb.sourceforge.net/ - $FileInfo: xhtml11.php - Last Update: 12/11/2008 SVN 210 - Author: cooldude2k $ + $FileInfo: xhtml11.php - Last Update: 5/01/2009 SVN 246 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="xhtml11.php"||$File3Name=="/xhtml11.php") { @@ -40,13 +40,14 @@ if($Settings['output_type']!="xhtml") { if($Settings['output_type']!="html") { $ccstart = "//"; @header("Content-Type: text/html; charset=".$Settings['charset']); } } +if($checklowview===true) { $ThemeSet['CSSType'] = "lowview"; } if($ThemeSet['CSSType']!="import"&& $ThemeSet['CSSType']!="link"&& + $ThemeSet['CSSType']!="lowview"&& $ThemeSet['CSSType']!="xml") { $ThemeSet['CSSType'] = "import"; } if($ThemeSet['CSSType']=="xhtml") { xml_tag_make("xml-stylesheet","type=text/css&href=".$ThemeSet['CSS']); } -if($ThemeSet['CSSType']!="xhtml") { $ThemeSet['CSSType'] = "import"; } @header("Content-Style-Type: text/css"); @header("Content-Script-Type: text/javascript"); if($Settings['showverinfo']!="on") { @@ -111,6 +112,24 @@ if($Settings['idburl']!="localhost"&&$Settings['idburl']!=null) { + + diff --git a/index.php b/index.php index f1ad50e..ac63e92 100644 --- a/index.php +++ b/index.php @@ -11,8 +11,9 @@ Copyright 2004-2008 Cool Dude 2k - http://idb.berlios.de/ Copyright 2004-2008 Game Maker 2k - http://intdb.sourceforge.net/ - $FileInfo: index.php - Last Update: 01/01/2008 SVN 144 - Author: cooldude2k $ + $FileInfo: index.php - Last Update: 5/01/2009 SVN 246 - Author: cooldude2k $ */ +$checklowview = true; require('preindex.php'); $usefileext = $Settings['file_ext']; if($ext=="noext"||$ext=="no ext"||$ext=="no+ext") { $usefileext = ""; } @@ -22,12 +23,16 @@ $filewpath = $exfile['index'].$usefileext.$_SERVER['PATH_INFO']; <?php echo $Settings['board_name'].$idbpowertitle; ?> -"; require($SettDir['inc'].'xhtml10.php'); } } -?> \ No newline at end of file +?> diff --git a/subforum.php b/subforum.php index 72a7cb8..4c2a7f7 100644 --- a/subforum.php +++ b/subforum.php @@ -11,8 +11,9 @@ Copyright 2004-2008 Cool Dude 2k - http://idb.berlios.de/ Copyright 2004-2008 Game Maker 2k - http://intdb.sourceforge.net/ - $FileInfo: subforum.php - Last Update: 12/09/2008 SVN 207 - Author: cooldude2k $ + $FileInfo: subforum.php - Last Update: 5/01/2009 SVN 246 - Author: cooldude2k $ */ +$checklowview = true; require('preindex.php'); $usefileext = $Settings['file_ext']; if($ext=="noext"||$ext=="no ext"||$ext=="no+ext") { $usefileext = ""; } @@ -28,7 +29,8 @@ if($Settings['enable_rss']=="on") { <?php echo $Settings['board_name'].$idbpowertitle; ?> - -- 2.11.0
+
Your Topic Name is too big.
+
 
+
Invalid code entered
+
 
+
Your Topic Description is too big.
+
 
+
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.
  +