OSDN Git Service

Small bug fix.
authorKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Fri, 31 Jul 2009 01:57:36 +0000 (01:57 +0000)
committerKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Fri, 31 Jul 2009 01:57:36 +0000 (01:57 +0000)
git-svn-id: svn://svn.code.sf.net/p/intdb/svn/trunk@284 2b68903e-0b30-0410-9a39-a2e4f3c5be39

inc/navbar.php
inc/replies.php
inc/versioninfo.php

index 0a7d1e2..d31e084 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: navbar.php - Last Update: 7/22/2009 SVN 277 - Author: cooldude2k $
+    $FileInfo: navbar.php - Last Update: 7/30/2009 SVN 284 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="navbar.php"||$File3Name=="/navbar.php") {
@@ -29,7 +29,8 @@ $SentPMNumber=mysql_num_rows($pmresult2);
 if($ThemeSet['LogoStyle']==null) { $logostyle = ""; }
 if($ThemeSet['LogoStyle']!=null) { $logostyle = "style=\"".$ThemeSet['LogoStyle']."\" "; }
 // Am I hidden from everyone
-$AmIHidden = GetHiddenMember($_SESSION['UserID'],$Settings['sqltable']);
+if($_SESSION['UserGroup']!=$Settings['GuestGroup']) {
+$AmIHidden = GetHiddenMember($_SESSION['UserID'],$Settings['sqltable']); }
 // Hide me from everyone! >_> ^_^ <_< 
 ?>
 <div class="NavBorder">
index 0615e0e..8ff7a27 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: replies.php - Last Update: 7/22/2009 SVN 278 - Author: cooldude2k $
+    $FileInfo: replies.php - Last Update: 7/30/2009 SVN 284 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="replies.php"||$File3Name=="/replies.php") {
@@ -38,7 +38,10 @@ $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");
+if(!isset($_GET['post'])||$_GET['post']!==null) {
+$NumberReplies=mysql_result($preresult,0,"NumReply"); }
+if(isset($_GET['post'])&&$_GET['post']!==null) {
+$NumberReplies=1; }
 $ViewTimes=mysql_result($preresult,0,"NumViews");
 @mysql_free_result($preresult);
 $forumcheckx = query("SELECT * FROM `".$Settings['sqltable']."forums` WHERE `id`=%i  LIMIT 1", array($TopicForumID));
@@ -140,7 +143,10 @@ $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']));
+if(!isset($_GET['post'])||$_GET['post']!==null) {
+$query = query("SELECT * FROM `".$Settings['sqltable']."posts` WHERE `TopicID`=%i ORDER BY `TimeStamp` ASC LIMIT %i,%i", array($_GET['id'],$PageLimit,$Settings['max_posts'])); }
+if(isset($_GET['post'])&&$_GET['post']!==null) {
+$query = query("SELECT * FROM `".$Settings['sqltable']."posts` WHERE `TopicID`=%i AND `id`=%i ORDER BY `TimeStamp` ASC LIMIT %i,%i", array($_GET['id'],$_GET['post'],$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=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false));
@@ -318,13 +324,13 @@ if($_SESSION['UserID']==0) {
        $CanEditReply = false; $CanDeleteReply = false; }
 $ReplyNum = $i + $PageLimit + 1;
 ?>
-<div class="TableInfo1Border">
+<div class="TableInfo1Border" id="reply<?php echo $ReplyNum; ?>">
 <?php if($ThemeSet['TableStyle']=="div") { ?>
 <div class="TableInfoRow1">
 <span style="font-weight: bold; text-align: left;"><?php echo $ThemeSet['TitleIcon']; ?><a href="<?php echo url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$_GET['id']."&page=".$_GET['page'],$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic']).$qstrhtml."&#35;reply".$ReplyNum; ?>"><?php echo $TopicName; ?></a> ( <?php echo $MyDescription; ?> )</span>
 </div>
 <?php } ?>
-<table class="TableInfo1">
+<table class="TableInfo1" id="post<?php echo $MyPostID; ?>">
 <?php if($ThemeSet['TableStyle']=="table") { ?>
 <tr class="TableInfoRow1">
 <td class="TableInfoColumn1" colspan="2"><span style="font-weight: bold; text-align: left;"><?php echo $ThemeSet['TitleIcon']; ?><a href="<?php echo url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$_GET['id']."&page=".$_GET['page'],$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic']).$qstrhtml."&#35;reply".$ReplyNum; ?>"><?php echo $TopicName; ?></a> ( <?php echo $MyDescription; ?> )</span>
@@ -341,8 +347,8 @@ if($User1ID<=0||$User1Hidden=="yes") {
 echo "<span>".$User1Name."</span>"; }
 ?></td>
 <td class="TableInfoColumn2" style="vertical-align: middle;">
-<div style="float: left; text-align: left;" id="post<?php echo $MyPostID; ?>">
-<a style="vertical-align: middle;" id="reply<?php echo $ReplyNum; ?>">
+<div style="float: left; text-align: left;">
+<a href="<?php echo url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$_GET['id']."&post=".$MyPostID,$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic']); ?>" style="vertical-align: middle;">
 <span style="font-weight: bold;">Time Posted: </span><?php echo $MyTimeStamp; ?></a>
 </div>
 <div style="float: right;">
index ffc3206..1add3a1 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: versioninfo.php - Last Update: 7/29/2009 SVN 283 - Author: cooldude2k $
+    $FileInfo: versioninfo.php - Last Update: 7/30/2009 SVN 284 - 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] = 8; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2];
-$VER2[0] = "Pre-Alpha"; $VER2[1] = "PA"; $VER2[2] = "SVN"; $SubVerN = 283; $RName = "iDB"; $SFName = "IntDB";
-$SVNDay[0] = 7; $SVNDay[1] = 29; $SVNDay[2] = 2009; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2];
+$VER2[0] = "Pre-Alpha"; $VER2[1] = "PA"; $VER2[2] = "SVN"; $SubVerN = 284; $RName = "iDB"; $SFName = "IntDB";
+$SVNDay[0] = 7; $SVNDay[1] = 30; $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);