OSDN Git Service

Last update to Low View (Lo-Fi) for now.
authorKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Mon, 4 May 2009 05:15:26 +0000 (05:15 +0000)
committerKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Mon, 4 May 2009 05:15:26 +0000 (05:15 +0000)
git-svn-id: svn://svn.code.sf.net/p/intdb/svn/trunk@249 2b68903e-0b30-0410-9a39-a2e4f3c5be39

12 files changed:
inc/lowcategories.php
inc/lowforums.php
inc/lowreplies.php [new file with mode: 0644]
inc/lowsubcategories.php
inc/lowsubforums.php
inc/lowtopics.php
inc/misc/setcheck.php
inc/versioninfo.php
inc/xhtml10.php
inc/xhtml11.php
index.php
topic.php

index bb8bc8a..74a5aae 100644 (file)
@@ -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: lowcategories.php - Last Update: 5/03/2009 SVN 248 - Author: cooldude2k $
+    $FileInfo: lowcategories.php - Last Update: 5/04/2009 SVN 249 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="lowcategories.php"||$File3Name=="/lowcategories.php") {
@@ -98,9 +98,12 @@ $SubsForumName=mysql_result($apcresult,$apci,"Name");
 $SubsForumType=mysql_result($apcresult,$apci,"ForumType");
 if(isset($PermissionInfo['CanViewForum'][$SubsForumID])&&
        $PermissionInfo['CanViewForum'][$SubsForumID]=="yes") {
+$shownum = null;
+if ($SubsForumType=="redirect") { $shownum = "(".$NumRedirects." redirects)"; }
+if ($SubsForumType!="redirect") { $shownum = "(".$NumPosts." posts)"; }
 $sfurl = "<a href=\"";
 $sfurl = url_maker($exfile[$SubsForumType],$Settings['file_ext'],"act=lowview&id=".$SubsForumID.$ExStr,$Settings['qstr'],$Settings['qsep'],$prexqstr[$SubsForumType],$exqstr[$SubsForumType]);
-$sfurl = "<li><ul style=\"list-style-type: none;\"><li><a href=\"".$sfurl."\">".$SubsForumName."</a> (".$NumsPosts." posts)</li></ul></li>";
+$sfurl = "<li><ul style=\"list-style-type: none;\"><li><a href=\"".$sfurl."\">".$SubsForumName."</a><span style=\"color: gray; font-size: 10px;\">".$shownum."</span></li></ul></li>";
 if($apcl==1) {
 $sflist = $sflist." ".$sfurl; }
 if($apcl>1) {
@@ -112,7 +115,9 @@ if(isset($PermissionInfo['CanViewForum'][$ForumID])&&
        $PermissionInfo['CanViewForum'][$ForumID]=="yes") {
 $LastTopic = "&nbsp;<br />&nbsp;<br />&nbsp;";
 if(!isset($LastTopic)) { $LastTopic = null; }
-if ($ForumType=="redirect") { $LastTopic="Redirects: ".$NumRedirects; }
+$shownum = null;
+if ($ForumType=="redirect") { $shownum = "(".$NumRedirects." redirects)"; }
+if ($ForumType!="redirect") { $shownum = "(".$NumPosts." posts)"; }
 $PreForum = $ThemeSet['ForumIcon'];
 if ($ForumType=="forum") { $PreForum=$ThemeSet['ForumIcon']; }
 if ($ForumType=="subforum") { $PreForum=$ThemeSet['SubForumIcon']; }
@@ -121,7 +126,7 @@ $ExStr = ""; if ($ForumType!="redirect"&&
        $ForumShowTopics!="no") { $ExStr = "&page=1"; }
 ?>
 <ul style="list-style-type: none;"><li>
-<a href="<?php echo url_maker($exfile[$ForumType],$Settings['file_ext'],"act=lowview&id=".$ForumID.$ExStr,$Settings['qstr'],$Settings['qsep'],$prexqstr[$ForumType],$exqstr[$ForumType]); ?>"<?php if($ForumType=="redirect") { echo " onclick=\"window.open(this.href);return false;\""; } ?>><?php echo $ForumName; ?></a> (<?php echo $NumPosts; ?> posts)</li>
+<a href="<?php echo url_maker($exfile[$ForumType],$Settings['file_ext'],"act=lowview&id=".$ForumID.$ExStr,$Settings['qstr'],$Settings['qsep'],$prexqstr[$ForumType],$exqstr[$ForumType]); ?>"<?php if($ForumType=="redirect") { echo " onclick=\"window.open(this.href);return false;\""; } ?>><?php echo $ForumName; ?></a> <span style="color: gray; font-size: 10px;"><?php echo $shownum; ?></span></li>
 <?php echo $sflist; ?></ul>
 <?php } ++$i; } @mysql_free_result($result);
 if($num>=1) { ?>
index 1ed8444..bc5b0a5 100644 (file)
@@ -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: lowforums.php - Last Update: 5/03/2009 SVN 248 - Author: cooldude2k $
+    $FileInfo: lowforums.php - Last Update: 5/04/2009 SVN 249 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="lowforums.php"||$File3Name=="/lowforums.php") {
@@ -83,9 +83,12 @@ $SubsForumName=mysql_result($apcresult,$apci,"Name");
 $SubsForumType=mysql_result($apcresult,$apci,"ForumType");
 if(isset($PermissionInfo['CanViewForum'][$SubsForumID])&&
        $PermissionInfo['CanViewForum'][$SubsForumID]=="yes") {
+$shownum = null;
+if ($SubsForumType=="redirect") { $shownum = "(".$NumRedirects." redirects)"; }
+if ($SubsForumType!="redirect") { $shownum = "(".$NumPosts." posts)"; }
 $sfurl = "<a href=\"";
 $sfurl = url_maker($exfile[$SubsForumType],$Settings['file_ext'],"act=lowview&id=".$SubsForumID.$ExStr,$Settings['qstr'],$Settings['qsep'],$prexqstr[$SubsForumType],$exqstr[$SubsForumType]);
-$sfurl = "<li><ul style=\"list-style-type: none;\"><li><a href=\"".$sfurl."\">".$SubsForumName."</a> (".$NumsPosts." posts)</li></ul></li>";
+$sfurl = "<li><ul style=\"list-style-type: none;\"><li><a href=\"".$sfurl."\">".$SubsForumName."</a> <span style=\"color: gray; font-size: 10px;\">".$shownum."</span></li></ul></li>";
 if($apcl==1) {
 $sflist = null;
 $sflist = $sflist." ".$sfurl; }
@@ -112,7 +115,9 @@ if($NewUpdateTime>$OldUpdateTime) {
 $OldUpdateTime = $NewUpdateTime; } }
 @mysql_free_result($gltforesult);
 ++$glti; } }
-if ($ForumType=="redirect") { $LastTopic="&nbsp;<br />Redirects: ".$NumRedirects."<br />&nbsp;"; }
+$shownum = null;
+if ($ForumType=="redirect") { $shownum = "(".$NumRedirects." redirects)"; }
+if ($ForumType!="redirect") { $shownum = "(".$NumPosts." posts)"; }
 $PreForum = $ThemeSet['ForumIcon'];
 if ($ForumType=="forum") { $PreForum=$ThemeSet['ForumIcon']; }
 if ($ForumType=="subforum") { $PreForum=$ThemeSet['SubForumIcon']; }
@@ -121,7 +126,7 @@ $ExStr = ""; if ($ForumType!="redirect"&&
        $ForumShowTopics!="no") { $ExStr = "&page=1"; }
 ?>
 <ul style="list-style-type: none;"><li>
-<a href="<?php echo url_maker($exfile[$ForumType],$Settings['file_ext'],"act=lowview&id=".$ForumID.$ExStr,$Settings['qstr'],$Settings['qsep'],$prexqstr[$ForumType],$exqstr[$ForumType]); ?>"<?php if($ForumType=="redirect") { echo " onclick=\"window.open(this.href);return false;\""; } ?>><?php echo $ForumName; ?></a> (<?php echo $NumPosts; ?> posts)</li>
+<a href="<?php echo url_maker($exfile[$ForumType],$Settings['file_ext'],"act=lowview&id=".$ForumID.$ExStr,$Settings['qstr'],$Settings['qsep'],$prexqstr[$ForumType],$exqstr[$ForumType]); ?>"<?php if($ForumType=="redirect") { echo " onclick=\"window.open(this.href);return false;\""; } ?>><?php echo $ForumName; ?></a> <span style="color: gray; font-size: 10px;"><?php echo $shownum; ?></span></li>
 <?php echo $sflist; ?></ul>
 <?php } ++$i; } @mysql_free_result($result);
 if($num>=1) {
diff --git a/inc/lowreplies.php b/inc/lowreplies.php
new file mode 100644 (file)
index 0000000..4fee4cd
--- /dev/null
@@ -0,0 +1,311 @@
+<?php
+/*
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the Revised BSD License.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    Revised BSD License for more details.
+
+    Copyright 2004-2009 Cool Dude 2k - http://idb.berlios.de/
+    Copyright 2004-2009 Game Maker 2k - http://intdb.sourceforge.net/
+
+    $FileInfo: replies.php - Last Update: 5/04/2009 SVN 249 - Author: cooldude2k $
+*/
+$File3Name = basename($_SERVER['SCRIPT_NAME']);
+if ($File3Name=="replies.php"||$File3Name=="/replies.php") {
+       require('index.php');
+       exit(); }
+$pstring = null; $pagenum = null;
+if(!is_numeric($_GET['id'])) { $_GET['id'] = null; }
+if(!is_numeric($_GET['post'])) { $_GET['post'] = null; }
+if(!is_numeric($_GET['page'])) { $_GET['page'] = null; }
+if(!isset($_GET['modact'])) { $_GET['modact'] = null; }
+if($_GET['modact']=="pin"||$_GET['modact']=="unpin"||$_GET['modact']=="open"||
+       $_GET['modact']=="close"||$_GET['modact']=="edit"||$_GET['modact']=="delete")
+               { $_GET['act'] = $_GET['modact']; }
+if(!isset($ForumCheck)) { $ForumCheck = null; }
+$prequery = query("SELECT * FROM `".$Settings['sqltable']."topics` WHERE `id`=%i LIMIT 1", array($_GET['id']));
+$preresult=mysql_query($prequery);
+$prenum=mysql_num_rows($preresult);
+if($prenum==0) { redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); @mysql_free_result($preresult);
+ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @mysql_close(); die(); }
+if($prenum>=1) {
+$TopicName=mysql_result($preresult,0,"TopicName");
+$TopicID=mysql_result($preresult,0,"id");
+$TopicForumID=mysql_result($preresult,0,"ForumID");
+$TopicCatID=mysql_result($preresult,0,"CategoryID");
+$TopicClosed=mysql_result($preresult,0,"Closed");
+$NumberReplies=mysql_result($preresult,0,"NumReply");
+$ViewTimes=mysql_result($preresult,0,"NumViews");
+@mysql_free_result($preresult);
+$forumcheckx = query("SELECT * FROM `".$Settings['sqltable']."forums` WHERE `id`=%i  LIMIT 1", array($TopicForumID));
+$fmckresult=mysql_query($forumcheckx);
+$ForumName=mysql_result($fmckresult,0,"Name");
+$ForumType=mysql_result($fmckresult,0,"ForumType");
+$CanHaveTopics=mysql_result($fmckresult,0,"CanHaveTopics");
+$ForumPostCountView=mysql_result($fmckresult,0,"PostCountView");
+$ForumKarmaCountView=mysql_result($fmckresult,0,"KarmaCountView");
+@mysql_free_result($fmckresult);
+$catcheck = query("SELECT * FROM `".$Settings['sqltable']."categories` WHERE `id`=%i  LIMIT 1", array($TopicCatID));
+$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)); } }
+if($ForumCheck!="skip") {
+?>
+<div style="font-size: 1.0em; font-weight: bold; margin-bottom: 10px; padding-top: 3px; width: auto;">Full Version: <a href="<?php echo url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$TopicID,$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic']); ?>"><?php echo $TopicName; ?></a></div>
+<div style="padding: 10px; border: 1px solid gray;"><a href="<?php echo url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']); ?>">Board index</a><?php echo $ThemeSet['NavLinkDivider']; ?><a href="<?php echo url_maker($exfile[$CategoryType],$Settings['file_ext'],"act=lowview&id=".$TopicCatID,$Settings['qstr'],$Settings['qsep'],$prexqstr[$CategoryType],$exqstr[$CategoryType]); ?>"><?php echo $CategoryName; ?></a><?php echo $ThemeSet['NavLinkDivider']; ?><a href="<?php echo url_maker($exfile[$ForumType],$Settings['file_ext'],"act=lowview&id=".$TopicForumID."&page=1",$Settings['qstr'],$Settings['qsep'],$prexqstr[$ForumType],$exqstr[$ForumType]); ?>"><?php echo $ForumName; ?></a></div>
+<div>&nbsp;</div>
+<?php }
+if(!isset($CatPermissionInfo['CanViewCategory'][$TopicCatID])) {
+       $CatPermissionInfo['CanViewCategory'][$TopicCatID] = "no"; }
+if($CatPermissionInfo['CanViewCategory'][$TopicCatID]=="no"||
+       $CatPermissionInfo['CanViewCategory'][$TopicCatID]!="yes") {
+redirect("location",$basedir.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(!isset($PermissionInfo['CanViewForum'][$TopicForumID])) {
+       $PermissionInfo['CanViewForum'][$TopicForumID] = "no"; }
+if($PermissionInfo['CanViewForum'][$TopicForumID]=="no"||
+       $PermissionInfo['CanViewForum'][$TopicForumID]!="yes") {
+redirect("location",$basedir.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($_GET['act']!="view") { 
+$CanMakeReply = "no"; $CanMakeTopic = "no";
+if($PermissionInfo['CanMakeTopics'][$TopicForumID]=="yes"&&$CanHaveTopics=="yes") { 
+       $CanMakeTopic = "yes"; }
+if($TopicClosed==0&&$PermissionInfo['CanMakeReplys'][$TopicForumID]=="yes") {
+       $CanMakeReply = "yes"; }
+if($TopicClosed==1&&$PermissionInfo['CanMakeReplysClose'][$TopicForumID]=="yes"
+       &&$PermissionInfo['CanMakeReplys'][$TopicForumID]=="yes") {
+               $CanMakeReply = "yes"; } ?>
+<div style="padding: 10px; border: 1px solid gray;">
+<?php echo $pstring; ?></div>
+<div>&nbsp;</div>
+<div style="padding: 10px; border: 1px solid gray;">
+<?php } if($_GET['act']=="lowview") {
+if($NumberReplies==null) { 
+       $NumberReplies = 0; }
+$num=$NumberReplies+1;
+//Start Reply Page Code
+if(!isset($Settings['max_posts'])) { $Settings['max_posts'] = 10; }
+if($_GET['page']==null) { $_GET['page'] = 1; } 
+if($_GET['page']<=0) { $_GET['page'] = 1; }
+$nums = $_GET['page'] * $Settings['max_posts'];
+if($nums>$num) { $nums = $num; }
+$numz = $nums - $Settings['max_posts'];
+if($numz<=0) { $numz = 0; }
+//$i=$numz;
+if($nums<$num) { $nextpage = $_GET['page'] + 1; }
+if($nums>=$num) { $nextpage = $_GET['page']; }
+if($numz>=$Settings['max_posts']) { $backpage = $_GET['page'] - 1; }
+if($_GET['page']<=1) { $backpage = 1; }
+$pnum = $num; $l = 1; $Pages = null;
+while ($pnum>0) {
+if($pnum>=$Settings['max_posts']) { 
+       $pnum = $pnum - $Settings['max_posts']; 
+       $Pages[$l] = $l; ++$l; }
+if($pnum<$Settings['max_posts']&&$pnum>0) { 
+       $pnum = $pnum - $pnum; 
+       $Pages[$l] = $l; ++$l; } }
+$snumber = $_GET['page'] - 1;
+$PageLimit = $Settings['max_posts'] * $snumber;
+if($PageLimit<0) { $PageLimit = 0; }
+//End Reply Page Code
+$i=0;
+$query = query("SELECT * FROM `".$Settings['sqltable']."posts` WHERE `TopicID`=%i ORDER BY `TimeStamp` ASC LIMIT %i,%i", array($_GET['id'],$PageLimit,$Settings['max_posts']));
+$result=mysql_query($query);
+$num=mysql_num_rows($result);
+if($num==0) { redirect("location",$basedir.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($num!=0) { 
+if($ViewTimes==0||$ViewTimes==null) { $NewViewTimes = 1; }
+if($ViewTimes!=0&&$ViewTimes!=null) { $NewViewTimes = $ViewTimes + 1; }
+$viewsup = query("UPDATE `".$Settings['sqltable']."topics` SET `NumViews`='%s' WHERE `id`=%i", array($NewViewTimes,$_GET['id']));
+mysql_query($viewsup); }
+//List Page Number Code Start
+$pagenum=count($Pages);
+if($_GET['page']>$pagenum) {
+       $_GET['page'] = $pagenum; }
+$pagei=0; $pstring = null;
+if($pagenum>1) {
+$pstring = "<div class=\"PageList\"><span class=\"pagelink\">".$pagenum." Pages:</span> "; }
+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($num==0) {
+$pagenumi = 0;
+$pstring = null; }
+if($pagenum>1) {
+while ($pagei < $pagenumi) {
+if($_GET['page']!=1&&$pagei==1) {
+$Pback = $_GET['page'] - 1;
+$pstring = $pstring."<span class=\"pagelink\"><a href=\"".url_maker($exfile['topic'],$Settings['file_ext'],"act=lowview&id=".$_GET['id']."&page=".$Pback,$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'])."\">&lt;</a></span> "; }
+if($Pagez[$pagei]!=null&&
+   $Pagez[$pagei]!="First"&&
+   $Pagez[$pagei]!="Last") {
+if($pagei!=3) { 
+$pstring = $pstring."<span class=\"pagelink\"><a href=\"".url_maker($exfile['topic'],$Settings['file_ext'],"act=lowview&id=".$_GET['id']."&page=".$Pagez[$pagei],$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'])."\">".$Pagez[$pagei]."</a></span> "; }
+if($pagei==3) { 
+$pstring = $pstring."<span class=\"pagecurrent\"><a href=\"".url_maker($exfile['topic'],$Settings['file_ext'],"act=lowview&id=".$_GET['id']."&page=".$Pagez[$pagei],$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'])."\">".$Pagez[$pagei]."</a></span> "; } }
+if($Pagez[$pagei]=="First") {
+$pstring = $pstring."<span class=\"pagelinklast\"><a href=\"".url_maker($exfile['topic'],$Settings['file_ext'],"act=lowview&id=".$_GET['id']."&page=1",$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'])."\">&laquo;</a></span> "; }
+if($Pagez[$pagei]=="Last") {
+$ptestnext = $pagenext + 1;
+$paget = $pagei - 1;
+$Pnext = $_GET['page'] + 1;
+$pstring = $pstring."<span class=\"pagelink\"><a href=\"".url_maker($exfile['topic'],$Settings['file_ext'],"act=lowview&id=".$_GET['id']."&page=".$Pnext,$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'])."\">&gt;</a></span> ";
+if($ptestnext<$pagenum) {
+$pstring = $pstring."<span class=\"pagelinklast\"><a href=\"".url_maker($exfile['topic'],$Settings['file_ext'],"act=lowview&id=".$_GET['id']."&page=".$pagenum,$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'])."\">&raquo;</a></span> "; } }
+       ++$pagei; } $pstring = $pstring."</div>"; }
+//List Page Number Code end
+$CanMakeReply = "no"; $CanMakeTopic = "no";
+if($PermissionInfo['CanMakeTopics'][$TopicForumID]=="yes"&&$CanHaveTopics=="yes") { 
+       $CanMakeTopic = "yes"; }
+if($TopicClosed==0&&$PermissionInfo['CanMakeReplys'][$TopicForumID]=="yes") {
+       $CanMakeReply = "yes"; }
+if($TopicClosed==1&&$PermissionInfo['CanMakeReplysClose'][$TopicForumID]=="yes"
+       &&$PermissionInfo['CanMakeReplys'][$TopicForumID]=="yes") {
+               $CanMakeReply = "yes"; }
+if($pstring!=null||$CanMakeReply=="yes"||$CanMakeTopic=="yes") {
+/* ?>
+<div style="padding: 10px; border: 1px solid gray;">
+<?php echo $pstring; ?></div>
+<div>&nbsp;</div>
+<div style="padding: 10px; border: 1px solid gray;">
+<ul style="list-style-type: none;">
+<?php */ } while ($i < $num) {
+$MyPostID=mysql_result($result,$i,"id");
+$MyTopicID=mysql_result($result,$i,"TopicID");
+$MyPostIP=mysql_result($result,$i,"IP");
+$MyForumID=mysql_result($result,$i,"ForumID");
+$MyCategoryID=mysql_result($result,$i,"CategoryID");
+$MyUserID=mysql_result($result,$i,"UserID");
+$MyGuestName=mysql_result($result,$i,"GuestName");
+$MyTimeStamp=mysql_result($result,$i,"TimeStamp");
+$MyEditTime=mysql_result($result,$i,"LastUpdate");
+$MyEditUserID=mysql_result($result,$i,"EditUser");
+$MyTimeStamp=GMTimeChange("M j, Y, g:i a",$MyTimeStamp,$_SESSION['UserTimeZone'],0,$_SESSION['UserDST']);
+$MyPost=mysql_result($result,$i,"Post");
+$MyPost = preg_replace("/\<br\>/", "<br />\n", nl2br($MyPost));
+$MyDescription=mysql_result($result,$i,"Description");
+$requery = query("SELECT * FROM `".$Settings['sqltable']."members` WHERE `id`=%i LIMIT 1", array($MyUserID));
+$reresult=mysql_query($requery);
+$renum=mysql_num_rows($reresult);
+$rei=0; $ipshow = "two";
+$User1ID=$MyUserID; $GuestName = $MyGuestName;
+$User1Name=mysql_result($reresult,$rei,"Name");
+$User1IP=mysql_result($reresult,$rei,"IP");
+if($User1IP==$MyPostIP) { $ipshow = "one"; }
+$User1Email=mysql_result($reresult,$rei,"Email");
+$User1Title=mysql_result($reresult,$rei,"Title");
+$User1Joined=mysql_result($reresult,$rei,"Joined");
+$User1Joined=GMTimeChange("M j Y",$User1Joined,$_SESSION['UserTimeZone'],0,$_SESSION['UserDST']);
+$User1GroupID=mysql_result($reresult,$rei,"GroupID");
+$gquery = query("SELECT * FROM `".$Settings['sqltable']."groups` WHERE `id`=%i LIMIT 1", array($User1GroupID));
+$gresult=mysql_query($gquery);
+$User1Group=mysql_result($gresult,0,"Name");
+$GroupNamePrefix=mysql_result($gresult,0,"NamePrefix");
+$GroupNameSuffix=mysql_result($gresult,0,"NameSuffix");
+@mysql_free_result($gresult);
+$User1Signature=mysql_result($reresult,$rei,"Signature");
+$User1Avatar=mysql_result($reresult,$rei,"Avatar");
+$User1AvatarSize=mysql_result($reresult,$rei,"AvatarSize");
+if ($User1Avatar=="http://"||$User1Avatar==null||
+       strtolower($User1Avatar)=="noavatar") {
+$User1Avatar=$ThemeSet['NoAvatar'];
+$User1AvatarSize=$ThemeSet['NoAvatarSize']; }
+$AvatarSize1=explode("x", $User1AvatarSize);
+$AvatarSize1W=$AvatarSize1[0]; $AvatarSize1H=$AvatarSize1[1];
+$User1Website=mysql_result($reresult,$rei,"Website");
+$User1PostCount=mysql_result($reresult,$rei,"PostCount");
+$User1Karma=mysql_result($reresult,$rei,"Karma");
+$User1IP=mysql_result($reresult,$rei,"IP");
+@mysql_free_result($reresult);
+if($User1Name=="Guest") { $User1Name=$GuestName;
+if($User1Name==null) { $User1Name="Guest"; } }
+if(isset($GroupNamePrefix)&&$GroupNamePrefix!=null) {
+       $User1Name = $GroupNamePrefix.$User1Name; }
+if(isset($GroupNameSuffix)&&$GroupNameSuffix!=null) {
+       $User1Name = $User1Name.$GroupNameSuffix; }
+$MySubPost = null;
+if($MyEditTime!=$MyTimeStamp&&$MyEditUserID!=0) {
+$euquery = query("SELECT * FROM `".$Settings['sqltable']."members` WHERE `id`=%i LIMIT 1", array($MyEditUserID));
+$euresult = mysql_query($euquery);
+$eunum = mysql_num_rows($euresult);
+$eui=0; while ($eui < $eunum) {
+       $EditUserID = $MyEditUserID;
+       $EditUserName = mysql_result($euresult,$eui,"Name");
+       ++$eui; }
+       $MyEditTime = GMTimeChange("M j, Y, g:i a",$MyEditTime,$_SESSION['UserTimeZone'],0,$_SESSION['UserDST']);
+       $MySubPost = "<div class=\"EditReply\"><br />This post has been edited by <b>".$EditUserName."</b> on ".$MyEditTime."</div>"; }
+$MyPost = text2icons($MyPost,$Settings['sqltable']);
+if($MySubPost!=null) { $MyPost = $MyPost."\n".$MySubPost; }
+$User1Signature = preg_replace("/\<br\>/", "<br />\n", nl2br($User1Signature));
+$User1Signature = text2icons($User1Signature,$Settings['sqltable']);
+$CanEditReply = false; $CanDeleteReply = false;
+if($_SESSION['UserGroup']!=$Settings['GuestGroup']) {
+if($PermissionInfo['CanEditReplys'][$MyForumID]=="yes"&&
+       $_SESSION['UserID']==$MyUserID) { $CanEditReply = true; }
+if($PermissionInfo['CanDeleteReplys'][$MyForumID]=="yes"&&
+       $_SESSION['UserID']==$MyUserID) { $CanDeleteReply = true; }
+if($PermissionInfo['CanModForum'][$MyForumID]=="yes") { 
+       $CanEditReply = true; $CanDeleteReply = true; } }
+if($_SESSION['UserID']==0) { 
+       $CanEditReply = false; $CanDeleteReply = false; }
+$ReplyNum = $i + $PageLimit + 1;
+?>
+<div style="border: 1px solid #E6E3E4; padding:1px; margin-bottom: 15px; background-color: #E6E3E4; padding: 6px;">
+<div style="font-weight: bold; font-size: 0.8em; width: auto; float: left;"><?php echo $User1Name; ?></div>
+<div style="width:auto; font-size: 0.8em; color: gray; text-align:right;"><?php echo $MyTimeStamp; ?></div>
+</div>
+<div style="padding: 6px; font-size: 0.8em;"><?php echo $MyPost; ?></div>
+<?php ++$i; } @mysql_free_result($result); 
+?></div><div>&nbsp;</div><?php
+if($CanMakeReply=="yes") {  
+$QuoteReply = null; $QuoteDescription = null;
+$queryra = query("SELECT * FROM `".$Settings['sqltable']."posts` WHERE `TopicID`=%i ORDER BY `TimeStamp` ASC LIMIT 1", array($_GET['id']));
+$resultra=mysql_query($queryra);
+$numrose=mysql_num_rows($resultra);
+$QuoteDescription=mysql_result($resultra,0,"Description"); 
+$QuoteDescription = str_replace("Re: ","",$QuoteDescription);
+$QuoteDescription = "Re: ".$QuoteDescription;
+@mysql_free_result($resultra); } } } ?>
index 7543392..b089681 100644 (file)
@@ -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: lowsubcategories.php - Last Update: 5/03/2009 SVN 248 - Author: cooldude2k $
+    $FileInfo: lowsubcategories.php - Last Update: 5/04/2009 SVN 249 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="lowsubcategories.php"||$File3Name=="/lowsubcategories.php") {
@@ -102,9 +102,12 @@ $SubsForumName=mysql_result($apcresult,$apci,"Name");
 $SubsForumType=mysql_result($apcresult,$apci,"ForumType");
 if(isset($PermissionInfo['CanViewForum'][$SubsForumID])&&
        $PermissionInfo['CanViewForum'][$SubsForumID]=="yes") {
+$shownum = null;
+if ($SubsForumType=="redirect") { $shownum = "(".$NumRedirects." redirects)"; }
+if ($SubsForumType!="redirect") { $shownum = "(".$NumPosts." posts)"; }
 $sfurl = "<a href=\"";
 $sfurl = url_maker($exfile[$SubsForumType],$Settings['file_ext'],"act=view&id=".$SubsForumID.$ExStr,$Settings['qstr'],$Settings['qsep'],$prexqstr[$SubsForumType],$exqstr[$SubsForumType]);
-$sfurl = "<li><ul style=\"list-style-type: none;\"><li><a href=\"".$sfurl."\">".$SubsForumName."</a> (".$NumsPosts." posts)</li></ul></li>";
+$sfurl = "<li><ul style=\"list-style-type: none;\"><li><a href=\"".$sfurl."\">".$SubsForumName."</a> <span style=\"color: gray; font-size: 10px;\">".$shownum."</span></li></ul></li>";
 if($apcl==1) {
 $sflist = $sflist." ".$sfurl; }
 if($apcl>1) {
@@ -146,7 +149,9 @@ if($NewUpdateTime>$OldUpdateTime) {
 $OldUpdateTime = $NewUpdateTime; } }
 @mysql_free_result($gltforesult);
 ++$glti; } }
-if ($ForumType=="redirect") { $LastTopic="Redirects: ".$NumRedirects; }
+$shownum = null;
+if ($ForumType=="redirect") { $shownum = "(".$NumRedirects." redirects)"; }
+if ($ForumType!="redirect") { $shownum = "(".$NumPosts." posts)"; }
 $PreForum = $ThemeSet['ForumIcon'];
 if ($ForumType=="forum") { $PreForum=$ThemeSet['ForumIcon']; }
 if ($ForumType=="subforum") { $PreForum=$ThemeSet['SubForumIcon']; }
@@ -155,7 +160,7 @@ $ExStr = ""; if ($ForumType!="redirect"&&
        $ForumShowTopics!="no") { $ExStr = "&page=1"; }
 ?>
 <ul style="list-style-type: none;"><li>
-<a href="<?php echo url_maker($exfile[$ForumType],$Settings['file_ext'],"act=lowview&id=".$ForumID.$ExStr,$Settings['qstr'],$Settings['qsep'],$prexqstr[$ForumType],$exqstr[$ForumType]); ?>"<?php if($ForumType=="redirect") { echo " onclick=\"window.open(this.href);return false;\""; } ?>><?php echo $ForumName; ?></a> (<?php echo $NumPosts; ?> posts)</li>
+<a href="<?php echo url_maker($exfile[$ForumType],$Settings['file_ext'],"act=lowview&id=".$ForumID.$ExStr,$Settings['qstr'],$Settings['qsep'],$prexqstr[$ForumType],$exqstr[$ForumType]); ?>"<?php if($ForumType=="redirect") { echo " onclick=\"window.open(this.href);return false;\""; } ?>><?php echo $ForumName; ?></a> <span style="color: gray; font-size: 10px;"><?php echo $shownum; ?></span></li>
 <?php echo $sflist; ?></ul>
 <?php } ++$i; } @mysql_free_result($result); } ?>
 </li></ul>
index 92229e6..1e861b2 100644 (file)
@@ -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: lowsubforums.php - Last Update: 5/03/2009 SVN 248 - Author: cooldude2k $
+    $FileInfo: lowsubforums.php - Last Update: 5/04/2009 SVN 249 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="lowsubforums.php"||$File3Name=="/lowsubforums.php") {
@@ -69,7 +69,7 @@ $CategoryShow=mysql_result($preresult,0,"ShowCategory");
 $CategoryDescription=mysql_result($preresult,0,"Description");
 ?>
 <div style="font-size: 1.0em; font-weight: bold; margin-bottom: 10px; padding-top: 3px; width: auto;">Full Version: <a href="<?php echo url_maker($exfile[$ForumType],$Settings['file_ext'],"act=lowview&id=".$ForumID."&page=1",$Settings['qstr'],$Settings['qsep'],$prexqstr[$ForumType],$exqstr[$ForumType]); ?>"><?php echo $ForumName; ?></a></div>
-<div style="padding: 10px; border: 1px solid gray;"><?php echo $ThemeSet['NavLinkIcon']; ?><a href="<?php echo url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']); ?>">Board index</a><?php echo $ThemeSet['NavLinkDivider']; ?><a href="<?php echo url_maker($exfile[$CategoryType],$Settings['file_ext'],"act=lowview&id=".$CategoryID,$Settings['qstr'],$Settings['qsep'],$prexqstr[$CategoryType],$exqstr[$CategoryType]); ?>"><?php echo $CategoryName; ?></a><?php echo $ThemeSet['NavLinkDivider']; ?><a href="<?php echo url_maker($exfile[$ForumType],$Settings['file_ext'],"act=lowview&id=".$ForumID."&page=1",$Settings['qstr'],$Settings['qsep'],$prexqstr[$ForumType],$exqstr[$ForumType]); ?>"><?php echo $ForumName; ?></a></div>
+<div style="padding: 10px; border: 1px solid gray;"><a href="<?php echo url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']); ?>">Board index</a><?php echo $ThemeSet['NavLinkDivider']; ?><a href="<?php echo url_maker($exfile[$CategoryType],$Settings['file_ext'],"act=lowview&id=".$CategoryID,$Settings['qstr'],$Settings['qsep'],$prexqstr[$CategoryType],$exqstr[$CategoryType]); ?>"><?php echo $CategoryName; ?></a><?php echo $ThemeSet['NavLinkDivider']; ?><a href="<?php echo url_maker($exfile[$ForumType],$Settings['file_ext'],"act=lowview&id=".$ForumID."&page=1",$Settings['qstr'],$Settings['qsep'],$prexqstr[$ForumType],$exqstr[$ForumType]); ?>"><?php echo $ForumName; ?></a></div>
 <div>&nbsp;</div>
 <div style="padding: 10px; border: 1px solid gray;">
 <ul style="list-style-type: none;">
@@ -125,9 +125,12 @@ $SubsForumName=mysql_result($apcresult,$apci,"Name");
 $SubsForumType=mysql_result($apcresult,$apci,"ForumType");
 if(isset($PermissionInfo['CanViewForum'][$SubsForumID])&&
        $PermissionInfo['CanViewForum'][$SubsForumID]=="yes") {
+$shownum = null;
+if ($SubsForumType=="redirect") { $shownum = "(".$NumRedirects." redirects)"; }
+if ($SubsForumType!="redirect") { $shownum = "(".$NumPosts." posts)"; }
 $sfurl = "<a href=\"";
 $sfurl = url_maker($exfile[$SubsForumType],$Settings['file_ext'],"act=lowview&id=".$SubsForumID.$ExStr,$Settings['qstr'],$Settings['qsep'],$prexqstr[$SubsForumType],$exqstr[$SubsForumType]);
-$sfurl = "<li><ul style=\"list-style-type: none;\"><li><a href=\"".$sfurl."\">".$SubsForumName."</a> (".$NumsPosts." posts)</li></ul></li>";
+$sfurl = "<li><ul style=\"list-style-type: none;\"><li><a href=\"".$sfurl."\">".$SubsForumName."</a> <span style=\"color: gray; font-size: 10px;\">".$shownum."</span></li></ul></li>";
 if($apcl==1) {
 $sflist = "Subforums:";
 $sflist = $sflist." ".$sfurl; }
@@ -174,7 +177,9 @@ if($UsersID=="-1") {
 $LastTopic = $TimeStamp."<br />\nTopic: <a href=\"".url_maker($exfile['topic'],$Settings['file_ext'],"act=lowview&id=".$TopicID,$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'])."&#35;post".$ReplyID."\" title=\"".$oldtopicname."\">".$TopicName."</a><br />\nGuest: <span title=\"".$oldusername."\">".$UsersName."</span>"; } }
 if($LastTopic==null) { $LastTopic = "&nbsp;<br />&nbsp;<br />&nbsp;"; } }
 @mysql_free_result($gltresult);
-if ($ForumType=="redirect") { $LastTopic="Redirects: ".$NumRedirects; }
+$shownum = null;
+if ($ForumType=="redirect") { $shownum = "(".$NumRedirects." redirects)"; }
+if ($ForumType!="redirect") { $shownum = "(".$NumPosts." posts)"; }
 $PreForum = $ThemeSet['ForumIcon'];
 if ($ForumType=="forum") { $PreForum=$ThemeSet['ForumIcon']; }
 if ($ForumType=="subforum") { $PreForum=$ThemeSet['SubForumIcon']; }
@@ -183,7 +188,7 @@ $ExStr = ""; if ($ForumType!="redirect"&&
        $ForumShowTopics!="no") { $ExStr = "&page=1"; }
 ?>
 <ul style="list-style-type: none;"><li>
-<a href="<?php echo url_maker($exfile[$ForumType],$Settings['file_ext'],"act=lowview&id=".$ForumID.$ExStr,$Settings['qstr'],$Settings['qsep'],$prexqstr[$ForumType],$exqstr[$ForumType]); ?>"<?php if($ForumType=="redirect") { echo " onclick=\"window.open(this.href);return false;\""; } ?>><?php echo $ForumName; ?> (<?php echo $NumPosts; ?> posts)</a></li>
+<a href="<?php echo url_maker($exfile[$ForumType],$Settings['file_ext'],"act=lowview&id=".$ForumID.$ExStr,$Settings['qstr'],$Settings['qsep'],$prexqstr[$ForumType],$exqstr[$ForumType]); ?>"<?php if($ForumType=="redirect") { echo " onclick=\"window.open(this.href);return false;\""; } ?>><?php echo $ForumName; ?> <span style="color: gray; font-size: 10px;"><?php echo $shownum; ?></span></a></li>
 <?php echo $sflist; ?></ul>
 <?php } ++$i; } @mysql_free_result($result);
 ?>
index 3f39e4e..6eb35d3 100644 (file)
@@ -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: lowtopics.php - Last Update: 5/03/2009 SVN 248 - Author: cooldude2k $
+    $FileInfo: lowtopics.php - Last Update: 5/04/2009 SVN 249 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="lowtopics.php"||$File3Name=="/lowtopics.php") {
@@ -67,7 +67,7 @@ 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)); } }
 ?>
 <div style="font-size: 1.0em; font-weight: bold; margin-bottom: 10px; padding-top: 3px; width: auto;">Full Version: <a href="<?php echo url_maker($exfile['forum'],$Settings['file_ext'],"act=view&id=".$ForumID."&page=".$_GET['page'],$Settings['qstr'],$Settings['qsep'],$prexqstr['forum'],$exqstr['forum']); ?>"><?php echo $ForumName; ?></a></div>
-<div style="padding: 10px; border: 1px solid gray;"><?php echo $ThemeSet['NavLinkIcon']; ?><a href="<?php echo url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']); ?>">Board index</a><?php echo $ThemeSet['NavLinkDivider']; ?><a href="<?php echo url_maker($exfile[$CategoryType],$Settings['file_ext'],"act=lowview&id=".$ForumCatID,$Settings['qstr'],$Settings['qsep'],$prexqstr[$CategoryType],$exqstr[$CategoryType]); ?>"><?php echo $CategoryName; ?></a><?php echo $ThemeSet['NavLinkDivider']; ?><a href="<?php echo url_maker($exfile[$ForumType],$Settings['file_ext'],"act=lowview&id=".$ForumID."&page=1",$Settings['qstr'],$Settings['qsep'],$prexqstr[$ForumType],$exqstr[$ForumType]); ?>"><?php echo $ForumName; ?></a></div>
+<div style="padding: 10px; border: 1px solid gray;"><a href="<?php echo url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']); ?>">Board index</a><?php echo $ThemeSet['NavLinkDivider']; ?><a href="<?php echo url_maker($exfile[$CategoryType],$Settings['file_ext'],"act=lowview&id=".$ForumCatID,$Settings['qstr'],$Settings['qsep'],$prexqstr[$CategoryType],$exqstr[$CategoryType]); ?>"><?php echo $CategoryName; ?></a><?php echo $ThemeSet['NavLinkDivider']; ?><a href="<?php echo url_maker($exfile[$ForumType],$Settings['file_ext'],"act=lowview&id=".$ForumID."&page=1",$Settings['qstr'],$Settings['qsep'],$prexqstr[$ForumType],$exqstr[$ForumType]); ?>"><?php echo $ForumName; ?></a></div>
 <div>&nbsp;</div>
 <?php
 if(!isset($CatPermissionInfo['CanViewCategory'][$ForumCatID])) {
@@ -304,274 +304,7 @@ if(!is_numeric($TopicStat)) { $TopicStat = 1; }
 if ($PinnedTopic==1) { $PreTopic="Pinned: "; }
 if ($PinnedTopic==0) { $PreTopic=null; }
 ?>
-<li><a href="<?php echo url_maker($exfile['topic'],$Settings['file_ext'],"act=lowview&id=".$TopicID."&page=1",$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic']); ?>"><?php echo $PreTopic.$TopicName; ?></a> (<?php echo $NumReply; ?> replies)</li>
+<li><a href="<?php echo url_maker($exfile['topic'],$Settings['file_ext'],"act=lowview&id=".$TopicID."&page=1",$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic']); ?>"><?php echo $PreTopic.$TopicName; ?></a> <span style="color: gray; font-size: 10px;">(<?php echo $NumReply; ?> replies)</span></li>
 <?php ++$i; } ?>
 </ul></div><div>&nbsp;</div>
-<?php @mysql_free_result($result); }/*
-if($_GET['act']=="maketopic"&&$_POST['act']=="maketopics") {
-if($PermissionInfo['CanMakeTopics'][$ForumID]=="no"||$CanHaveTopics=="no") { redirect("location",$basedir.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(); }
-$MyUserID = $_SESSION['UserID']; if($MyUserID=="0"||$MyUserID==null) { $MyUserID = -1; }
-$REFERERurl = parse_url($_SERVER['HTTP_REFERER']);
-$URL['REFERER'] = $REFERERurl['host'];
-$URL['HOST'] = $_SERVER["SERVER_NAME"];
-$REFERERurl = null;
-if(!isset($_POST['TopicName'])) { $_POST['TopicName'] = null; }
-if(!isset($_POST['TopicDesc'])) { $_POST['TopicDesc'] = null; }
-if(!isset($_POST['TopicPost'])) { $_POST['TopicPost'] = null; }
-if(!isset($_POST['GuestName'])) { $_POST['GuestName'] = null; }
-if($_SESSION['UserGroup']==$Settings['GuestGroup']&&
-       $Settings['captcha_guest']=="on") {
-require($SettDir['inc']."captcha.php"); }
-?>
-<div class="Table1Border">
-<?php if($ThemeSet['TableStyle']=="div") { ?>
-<div class="TableRow1">
-<span style="text-align: left;">
-<?php echo $ThemeSet['TitleIcon']; ?><a href="<?php echo url_maker($exfile['forum'],$Settings['file_ext'],"act=lowview&id=".$ForumID."&page=1",$Settings['qstr'],$Settings['qsep'],$prexqstr['forum'],$exqstr['forum']); ?>"><?php echo $ForumName; ?></a></span></div>
-<?php } ?>
-<table class="Table1">
-<?php if($ThemeSet['TableStyle']=="table") { ?>
-<tr class="TableRow1">
-<td class="TableColumn1"><span style="text-align: left;">
-<?php echo $ThemeSet['TitleIcon']; ?><a href="<?php echo url_maker($exfile['forum'],$Settings['file_ext'],"act=lowview&id=".$ForumID."&page=1",$Settings['qstr'],$Settings['qsep'],$prexqstr['forum'],$exqstr['forum']); ?>"><?php echo $ForumName; ?></a></span>
-</td>
-</tr><?php } ?>
-<tr class="TableRow2">
-<th class="TableColumn2" style="width: 100%; text-align: left;">&nbsp;Make Topic Message: </th>
-</tr>
-<tr class="TableRow3">
-<td class="TableColumn3">
-<table style="width: 100%; height: 25%; text-align: center;">
-<?php if (pre_strlen($_POST['TopicName'])>="30") { $Error="Yes";  ?>
-<tr>
-       <td><span class="TableMessage">
-       <br />Your Topic Name is too big.<br />
-       </span>&nbsp;</td>
-</tr>
-<?php } if($_SESSION['UserGroup']==$Settings['GuestGroup']&&
-       $Settings['captcha_guest']=="on") {
-if (PhpCaptcha::Validate($_POST['signcode'])) {
-//echo 'Valid code entered';
-} else { $Error="Yes"; ?>
-<tr>
-       <td><span class="TableMessage">
-       <br />Invalid code entered<br />
-       </span>&nbsp;</td>
-</tr>
-<?php } } if (pre_strlen($_POST['TopicDesc'])>="45") { $Error="Yes";  ?>
-<tr>
-       <td><span class="TableMessage">
-       <br />Your Topic Description is too big.<br />
-       </span>&nbsp;</td>
-</tr>
-<?php } if($_SESSION['UserGroup']==$Settings['GuestGroup']&&
-       pre_strlen($_POST['GuestName'])>="25") { $Error="Yes"; ?>
-<tr>
-       <td><span class="TableMessage">
-       <br />You Guest Name is too big.<br />
-       </span>&nbsp;</td>
-</tr>
-<?php } if ($Settings['TestReferer']=="on") {
-       if ($URL['HOST']!=$URL['REFERER']) { $Error="Yes";  ?>
-<tr>
-       <td><span class="TableMessage">
-       <br />Sorry the referering url dose not match our host name.<br />
-       </span>&nbsp;</td>
-</tr>
-<?php } }
-$_POST['TopicName'] = stripcslashes(htmlspecialchars($_POST['TopicName'], ENT_QUOTES, $Settings['charset']));
-//$_POST['TopicName'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['TopicName']);
-$_POST['TopicName'] = @remove_spaces($_POST['TopicName']);
-$_POST['TopicDesc'] = stripcslashes(htmlspecialchars($_POST['TopicDesc'], ENT_QUOTES, $Settings['charset']));
-//$_POST['TopicDesc'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['TopicDesc']);
-$_POST['TopicDesc'] = @remove_spaces($_POST['TopicDesc']);
-$_POST['GuestName'] = stripcslashes(htmlspecialchars($_POST['GuestName'], ENT_QUOTES, $Settings['charset']));
-//$_POST['GuestName'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['GuestName']);
-$_POST['GuestName'] = @remove_spaces($_POST['GuestName']);
-$_POST['TopicPost'] = stripcslashes(htmlspecialchars($_POST['TopicPost'], ENT_QUOTES, $Settings['charset']));
-//$_POST['TopicPost'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['TopicPost']);
-$_POST['TopicPost'] = remove_bad_entities($_POST['TopicPost']);
-//$_POST['TopicPost'] = @remove_spaces($_POST['TopicPost']);
-if($_SESSION['UserGroup']==$Settings['GuestGroup']) {
-if(isset($_POST['GuestName'])&&$_POST['GuestName']!=null) {
-@setcookie("GuestName", $_POST['GuestName'], time() + (7 * 86400), $cbasedir);
-$_SESSION['GuestName']=$_POST['GuestName']; } }*/
-/*    <_<  iWordFilter  >_>      
-   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"; ?>
-<tr>
-       <td><span class="TableMessage">
-       <br />You need to enter a Topic Name.<br />
-       </span>&nbsp;</td>
-</tr>
-<?php } if ($_POST['TopicDesc']==null) { $Error="Yes"; ?>
-<tr>
-       <td><span class="TableMessage">
-       <br />You need to enter a Topic Description.<br />
-       </span>&nbsp;</td>
-</tr>
-<?php } if($_SESSION['UserGroup']==$Settings['GuestGroup']&&
-       $_POST['GuestName']==null) { $Error="Yes"; ?>
-<tr>
-       <td><span class="TableMessage">
-       <br />You need to enter a Guest Name.<br />
-       </span>&nbsp;</td>
-</tr>
-<?php } if($_SESSION['UserGroup']==$Settings['GuestGroup']&&
-       $RGMatches==true) { $Error="Yes"; ?>
-<tr>
-       <td><span class="TableMessage">
-       <br />This Guest Name is restricted to use.<br />
-       </span>&nbsp;</td>
-</tr>
-<?php } if($PermissionInfo['CanMakeTopics'][$ForumID]=="no"||$CanHaveTopics=="no") { $Error="Yes"; ?>
-<tr>
-       <td><span class="TableMessage">
-       <br />You do not have permission to make a topic here.<br />
-       </span>&nbsp;</td>
-</tr>
-<?php } if ($_POST['TopicPost']==null) { $Error="Yes"; ?>
-<tr>
-       <td><span class="TableMessage">
-       <br />You need to enter a Topic Post.<br />
-       </span>&nbsp;</td>
-</tr>
-<?php } if($RMatches==true) { $Error="Yes"; ?>
-<tr>
-       <td><span class="TableMessage">
-       <br />This Topic Name is restricted to use.<br />
-       </span>&nbsp;</td>
-</tr>
-<?php } if ($Error=="Yes") {
-@redirect("refresh",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false),"4"); ?>
-<tr>
-       <td><span class="TableMessage">
-       <br />Click <a href="<?php echo url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']); ?>">here</a> to goto index page.<br />&nbsp;
-       </span><br /></td>
-</tr>
-<?php } if ($Error!="Yes") { $LastActive = GMTimeStamp();
-$topicid = getnextid($Settings['sqltable'],"topics");
-$postid = getnextid($Settings['sqltable'],"posts");
-$requery = query("SELECT * FROM `".$Settings['sqltable']."members` WHERE `id`=%i LIMIT 1", array($MyUserID));
-$reresult=mysql_query($requery);
-$renum=mysql_num_rows($reresult);
-$rei=0;
-while ($rei < $renum) {
-$User1ID=$MyUserID;
-$User1Name=mysql_result($reresult,$rei,"Name");
-if($_SESSION['UserGroup']==$Settings['GuestGroup']) { $User1Name = $_POST['GuestName']; }
-$User1Email=mysql_result($reresult,$rei,"Email");
-$User1Title=mysql_result($reresult,$rei,"Title");
-$User1GroupID=mysql_result($reresult,$rei,"GroupID");
-$PostCount=mysql_result($reresult,$rei,"PostCount");
-if($PostCountAdd=="on") { $NewPostCount = $PostCount + 1; }
-if(!isset($NewPostCount)) { $NewPostCount = $PostCount; }
-$gquery = query("SELECT * FROM `".$Settings['sqltable']."groups` WHERE `id`=%i LIMIT 1", array($User1GroupID));
-$gresult=mysql_query($gquery);
-$User1Group=mysql_result($gresult,0,"Name");
-@mysql_free_result($gresult);
-$User1IP=$_SERVER['REMOTE_ADDR'];
-++$rei; } @mysql_free_result($reresult);
-$query = query("INSERT INTO `".$Settings['sqltable']."topics` VALUES (".$topicid.",%i,%i,0,%i,'%s',%i,%i,'%s','%s',0,0,0,0)", array($ForumID,$ForumCatID,$User1ID,$User1Name,$LastActive,$LastActive,$_POST['TopicName'],$_POST['TopicDesc']));
-mysql_query($query);
-$query = query("INSERT INTO `".$Settings['sqltable']."posts` VALUES (".$postid.",".$topicid.",%i,%i,%i,'%s',%i,%i,0,'%s','%s','%s','0')", array($ForumID,$ForumCatID,$User1ID,$User1Name,$LastActive,$LastActive,$_POST['TopicPost'],$_POST['TopicDesc'],$User1IP));
-mysql_query($query);
-if($User1ID!=0&&$User1ID!=-1) {
-$queryupd = query("UPDATE `".$Settings['sqltable']."members` SET `LastActive`=%i,`IP`='%s',`PostCount`=%i WHERE `id`=%i", array($LastActive,$User1IP,$NewPostCount,$User1ID));
-mysql_query($queryupd); }
-$NewNumPosts = $NumberPosts + 1; $NewNumTopics = $NumberTopics + 1;
-$queryupd = query("UPDATE `".$Settings['sqltable']."forums` SET `NumPosts`=%i,`NumTopics`=%i WHERE `id`=%i", array($NewNumPosts,$NewNumTopics,$ForumID));
-mysql_query($queryupd);
-@redirect("refresh",$basedir.url_maker($exfile['topic'],$Settings['file_ext'],"act=lowview&id=".$topicid."&page=1",$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'],FALSE),"3");
-?><tr>
-       <td><span class="TableMessage"><br />
-       Topic <?php echo $_POST['TopicName']; ?> was started.<br />
-       Click <a href="<?php echo url_maker($exfile['topic'],$Settings['file_ext'],"act=lowview&id=".$topicid."&page=1",$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic']); ?>">here</a> to continue to topic.<br />&nbsp;
-       </span><br /></td>
-</tr>
-<?php }  ?>
-</ul></div>
-<?php } */ } } ?>
+<?php @mysql_free_result($result); } } } ?>
index 1e4f765..a9e8bdd 100644 (file)
@@ -8,10 +8,10 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     Revised BSD License for more details.
 
-    Copyright 2004-2008 Cool Dude 2k - http://idb.berlios.de/
-    Copyright 2004-2008 Game Maker 2k - http://intdb.sourceforge.net/
+    Copyright 2004-2009 Cool Dude 2k - http://idb.berlios.de/
+    Copyright 2004-2009 Game Maker 2k - http://intdb.sourceforge.net/
 
-    $FileInfo: setcheck.php - Last Update: 12/11/2008 SVN 210 - Author: cooldude2k $
+    $FileInfo: setcheck.php - Last Update: 5/04/2009 SVN 249 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="setcheck.php"||$File3Name=="/setcheck.php") {
@@ -167,6 +167,9 @@ if ($_GET['act']==null&&$_GET['mode']!=null) { $_GET['act']=$_GET['mode']; }
 if ($_GET['act']==null&&$_GET['show']!=null) { $_GET['act']=$_GET['show']; }
 if ($_GET['act']==null&&$_GET['do']!=null) { $_GET['act']=$_GET['do']; }
 if ($_GET['act']=="idx"||$_GET['act']=="View") { $_GET['act']="view"; }
+if ($_GET['act']=="Lo-Fi"||$_GET['act']=="lo-fi") { $_GET['act']="lowview"; }
+if ($_GET['act']=="Low-View"||$_GET['act']=="low-view") { $_GET['act']="lowview"; }
+if ($_GET['act']=="LowView"||$_GET['act']=="loview") { $_GET['act']="lowview"; }
 if ($_GET['act']=="iDBInfo") { @header('Location: http://sourceforge.net/projects/intdb/'); }
 if ($_GET['act']=="iDBSite") { @header('Location: http://intdb.sourceforge.net/'); }
 if ($_GET['act']=="OldiDBInfo") { @header('Location: http://developer.berlios.de/projects/idb/'); }
@@ -174,4 +177,4 @@ if ($_GET['act']=="OldiDBSite") { @header('Location: http://idb.berlios.de/'); }
 if ($_GET['act']=="DF2kInfo") { @header('Location: http://developer.berlios.de/projects/df2k/'); }
 if ($_GET['act']=="DF2kSite") { @header('Location: http://df2k.berlios.de/'); }
 if ($_GET['act']=="GM2kSite") { @header('Location: http://upload.idb.s1.jcink.com/'); }
-?>
\ No newline at end of file
+?>
index 550a92f..4a0c636 100644 (file)
@@ -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: 5/03/2009 SVN 248 - Author: cooldude2k $
+    $FileInfo: versioninfo.php - Last Update: 5/04/2009 SVN 249 - 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 = 248; $RName = "iDB"; $SFName = "IntDB";
-$SVNDay[0] = 5; $SVNDay[1] = 03; $SVNDay[2] = 2009; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2];
+$VER2[0] = "Pre-Alpha"; $VER2[1] = "PA"; $VER2[2] = "SVN"; $SubVerN = 249; $RName = "iDB"; $SFName = "IntDB";
+$SVNDay[0] = 5; $SVNDay[1] = 04; $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);
index 17b2f90..0fe1c7b 100644 (file)
@@ -8,10 +8,10 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     Revised BSD License for more details.
 
-    Copyright 2004-2008 Cool Dude 2k - http://idb.berlios.de/
-    Copyright 2004-2008 Game Maker 2k - http://intdb.sourceforge.net/
+    Copyright 2004-2009 Cool Dude 2k - http://idb.berlios.de/
+    Copyright 2004-2009 Game Maker 2k - http://intdb.sourceforge.net/
 
-    $FileInfo: xhtml10.php - Last Update: 5/01/2009 SVN 246 - Author: cooldude2k $
+    $FileInfo: xhtml10.php - Last Update: 5/04/2009 SVN 249 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="xhtml10.php"||$File3Name=="/xhtml10.php") {
@@ -57,7 +57,11 @@ $csryear = "2004"; $cryear = date("Y"); if($cryear<=2004) { $cryear = "2005"; }
 $BSDL = "<a href=\"".url_maker($exfile['index'],$Settings['file_ext'],"act=bsd",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'])."\" title=\"".$RName." is dual-licensed under the Revised BSD License\">BSDL</a>";
 $GPL = "<a href=\"".url_maker($exfile['index'],$Settings['file_ext'],"act=bsd",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'])."\" title=\"".$RName." is dual-licensed under the Gnu General Public License\">GPL</a>";
 $DualLicense = $BSDL." &amp; ".$GPL;
-$endpagevar = "<div class=\"copyright\">Powered by ".$iDBURL1.$RName."</a> &copy; ".$GM2kURL." @ ".$csryear." - ".$cryear." <br />\n".$ThemeSet['CopyRight'];
+$extext = null;
+if($checklowview!==true) { $extext = "<a href=\"".url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'])."\">Low-Version</a>"; }
+if($checklowview===true&&$_GET['act']!="lowview") { $extext = "<a href=\"".url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'])."\">Low-Version</a>"; }
+if($checklowview===true&&$_GET['act']=="lowview") {  $extext = "<a href=\"".url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'])."\">Hi-Version</a>"; }
+$endpagevar = "<div class=\"copyright\">Powered by ".$iDBURL1.$RName."</a> &copy; ".$GM2kURL." @ ".$csryear." - ".$cryear." <br />\n".$ThemeSet['CopyRight']." | ".$extext; 
 @header("Content-Language: en");
 @header("Vary: Accept");
 // Check if we are on a secure HTTP connection
index d71733d..1173895 100644 (file)
@@ -8,10 +8,10 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     Revised BSD License for more details.
 
-    Copyright 2004-2008 Cool Dude 2k - http://idb.berlios.de/
-    Copyright 2004-2008 Game Maker 2k - http://intdb.sourceforge.net/
+    Copyright 2004-2009 Cool Dude 2k - http://idb.berlios.de/
+    Copyright 2004-2009 Game Maker 2k - http://intdb.sourceforge.net/
 
-    $FileInfo: xhtml11.php - Last Update: 5/01/2009 SVN 246 - Author: cooldude2k $
+    $FileInfo: xhtml11.php - Last Update: 5/04/2009 SVN 249 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="xhtml11.php"||$File3Name=="/xhtml11.php") {
@@ -59,7 +59,11 @@ $csryear = "2004"; $cryear = date("Y"); if($cryear<=2004) { $cryear = "2005"; }
 $BSDL = "<a href=\"".url_maker($exfile['index'],$Settings['file_ext'],"act=bsd",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'])."\" title=\"".$RName." is dual-licensed under the Revised BSD License\">BSDL</a>";
 $GPL = "<a href=\"".url_maker($exfile['index'],$Settings['file_ext'],"act=bsd",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'])."\" title=\"".$RName." is dual-licensed under the Gnu General Public License\">GPL</a>";
 $DualLicense = $BSDL." &amp; ".$GPL;
-$endpagevar = "<div class=\"copyright\">Powered by ".$iDBURL1.$RName."</a> &copy; ".$GM2kURL." @ ".$csryear." - ".$cryear." <br />\n".$ThemeSet['CopyRight'];
+$endpagevar = "<div class=\"copyright\">Powered by ".$iDBURL1.$RName."</a> &copy; ".$GM2kURL." @ ".$csryear." - ".$extext = null;
+if($checklowview!==true) { $extext = "<a href=\"".url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'])."\">Low-Version</a>"; }
+if($checklowview===true&&$_GET['act']!="lowview") { $extext = "<a href=\"".url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'])."\">Low-Version</a>"; }
+if($checklowview===true&&$_GET['act']=="lowview") {  $extext = "<a href=\"".url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'])."\">Hi-Version</a>"; }
+$endpagevar = "<div class=\"copyright\">Powered by ".$iDBURL1.$RName."</a> &copy; ".$GM2kURL." @ ".$csryear." - ".$cryear." <br />\n".$ThemeSet['CopyRight']." | ".$extext; 
 @header("Content-Language: en");
 @header("Vary: Accept");
 // Check if we are on a secure HTTP connection
index a2b26a4..1372b54 100644 (file)
--- a/index.php
+++ b/index.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: index.php - Last Update: 5/01/2009 SVN 247 - Author: cooldude2k $
+    $FileInfo: index.php - Last Update: 5/04/2009 SVN 249 - Author: cooldude2k $
 */
 if(@ini_get("register_globals")) {
 require_once('inc/misc/killglobals.php'); }
@@ -25,8 +25,7 @@ $filewpath = $exfile['index'].$usefileext.$_SERVER['PATH_INFO'];
 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
 </head>
 <body>
-<?php 
-if($_GET['act']!="lowview") {
+<?php if($_GET['act']!="lowview") {
 require($SettDir['inc'].'navbar.php'); }
 
 if($_GET['act']==null)
index a66ff27..4ebb294 100644 (file)
--- a/topic.php
+++ b/topic.php
     Copyright 2004-2009 Cool Dude 2k - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://intdb.sourceforge.net/
 
-    $FileInfo: topic.php - Last Update: 5/01/2009 SVN 247 - Author: cooldude2k $
+    $FileInfo: topic.php - Last Update: 5/04/2009 SVN 249 - Author: cooldude2k $
 */
 if(@ini_get("register_globals")) {
 require_once('inc/misc/killglobals.php'); }
+$checklowview = true;
 require('preindex.php');
 $usefileext = $Settings['file_ext'];
 if($ext=="noext"||$ext=="no ext"||$ext=="no+ext") { $usefileext = ""; }
@@ -24,7 +25,8 @@ $filewpath = $exfile['topic'].$usefileext.$_SERVER['PATH_INFO'];
 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
 </head>
 <body>
-<?php require($SettDir['inc'].'navbar.php'); 
+<?php if($_GET['act']!="lowview") {
+require($SettDir['inc'].'navbar.php'); }
 if($_GET['act']==null)
 { $_GET['act']="view"; }
 if(!is_numeric($_GET['id']))
@@ -36,6 +38,8 @@ if($_GET['act']=="view"||$_GET['act']=="create"||$_GET['act']=="delete"||
 if($_GET['act']=="edit"||$_GET['act']=="makereply"||$_POST['act']=="makereplies"||
        $_GET['act']=="editreply"||$_POST['act']=="editreplies")
 { require($SettDir['inc'].'replies.php'); }
+if($_GET['act']=="lowview")
+{ require($SettDir['inc'].'lowreplies.php'); }
 require($SettDir['inc'].'endpage.php');
 if(!isset($TopicName)) { $TopicName = null; }
 ?>
@@ -45,6 +49,8 @@ if(!isset($TopicName)) { $TopicName = null; }
 <?php 
 if($_GET['act']=="view") {
 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." ".$TopicName,$Settings['use_gzip'],$GZipEncode['Type']); } 
+if($_GET['act']=="lowview") {
+change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." ".$TopicName,$Settings['use_gzip'],$GZipEncode['Type']); }
 if($_GET['act']=="create") {
 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Replying to ".$TopicName,$Settings['use_gzip'],$GZipEncode['Type']); }
 if($_GET['act']=="delete") {