OSDN Git Service

Yet another small update. :o
authorKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Tue, 5 Oct 2010 23:28:25 +0000 (23:28 +0000)
committerKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Tue, 5 Oct 2010 23:28:25 +0000 (23:28 +0000)
git-svn-id: svn://svn.code.sf.net/p/intdb/svn/trunk@575 2b68903e-0b30-0410-9a39-a2e4f3c5be39

inc/versioninfo.php
index.php

index f230a11..97ccd8c 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2010 iDB Support - http://idb.berlios.de/
     Copyright 2004-2010 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: versioninfo.php - Last Update: 09/05/2010 SVN 574 - Author: cooldude2k $
+    $FileInfo: versioninfo.php - Last Update: 09/05/2010 SVN 575 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="versioninfo.php"||$File3Name=="/versioninfo.php") {
@@ -27,7 +27,7 @@ function version_info($proname,$subver,$ver,$supver,$reltype,$svnver,$showsvn) {
        return $return_var; }
 // Version number and date stuff. :P
 $VER1[0] = 0; $VER1[1] = 4; $VER1[2] = 1; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2];
-$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 574; $RName = "iDB"; $SFName = "IntDB";
+$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 575; $RName = "iDB"; $SFName = "IntDB";
 $SVNDay[0] = 09; $SVNDay[1] = 05; $SVNDay[2] = 2010; $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);
index 5ce8dc0..1848c94 100644 (file)
--- a/index.php
+++ b/index.php
@@ -8,10 +8,10 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     Revised BSD License for more details.
 
-    Copyright 2004-2009 iDB Support - http://idb.berlios.de/
-    Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
+    Copyright 2004-2010 iDB Support - http://idb.berlios.de/
+    Copyright 2004-2010 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: index.php - Last Update: 09/05/2010 SVN 574 - Author: cooldude2k $
+    $FileInfo: index.php - Last Update: 09/05/2010 SVN 575 - Author: cooldude2k $
 */
 if(ini_get("register_globals")) {
 require_once('inc/misc/killglobals.php'); }
@@ -21,14 +21,24 @@ $usefileext = $Settings['file_ext'];
 if($ext=="noext"||$ext=="no ext"||$ext=="no+ext") { $usefileext = ""; }
 $filewpath = $exfile['index'].$usefileext.$_SERVER['PATH_INFO'];
 
+if(isset($_GET['showcategory'])&&is_numeric($_GET['showcategory'])) {
+redirect("location",$rbasedir.url_maker($exfile['category'],$Settings['file_ext'],"act=view&id=".$_GET['showcategory'],$Settings['qstr'],$Settings['qsep'],$prexqstr['category'],$exqstr['category'],FALSE));
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
+
 if(isset($_GET['showforum'])&&is_numeric($_GET['showforum'])) {
 redirect("location",$rbasedir.url_maker($exfile['forum'],$Settings['file_ext'],"act=view&id=".$_GET['showforum'],$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']); session_write_close(); die(); }
 
 if(isset($_GET['showtopic'])&&is_numeric($_GET['showtopic'])) {
+if(isset($_GET['showpost'])&&is_numeric($_GET['showpost'])) {
+redirect("location",$rbasedir.url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$_GET['showtopic']."&post=".$_GET['showpost'],$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'],FALSE));
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); }
+if(!isset($_GET['showpost'])) { $_GET['showpost'] = null; }
+if(!isset($_GET['showpost'])||!is_numeric($_GET['showpost'])) {
 redirect("location",$rbasedir.url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$_GET['showtopic'],$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'],FALSE));
-ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); }
 gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 
 if(isset($_GET['showuser'])&&is_numeric($_GET['showuser'])) {
@@ -36,8 +46,8 @@ redirect("location",$rbasedir.url_maker($exfile['member'],$Settings['file_ext'],
 ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
 gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 
-if(isset($_GET['showcategory'])&&is_numeric($_GET['showcategory'])) {
-redirect("location",$rbasedir.url_maker($exfile['category'],$Settings['file_ext'],"act=view&id=".$_GET['showcategory'],$Settings['qstr'],$Settings['qsep'],$prexqstr['category'],$exqstr['category'],FALSE));
+if(isset($_GET['showevent'])&&is_numeric($_GET['showevent'])) {
+redirect("location",$rbasedir.url_maker($exfile['event'],$Settings['file_ext'],"act=view&id=".$_GET['showevent'],$Settings['qstr'],$Settings['qsep'],$prexqstr['event'],$exqstr['event'],FALSE));
 ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
 gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 ?>