OSDN Git Service

Small bug fix. :)
authorKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Tue, 5 Apr 2011 03:40:38 +0000 (03:40 +0000)
committerKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Tue, 5 Apr 2011 03:40:38 +0000 (03:40 +0000)
git-svn-id: svn://svn.code.sf.net/p/intdb/svn/trunk@626 2b68903e-0b30-0410-9a39-a2e4f3c5be39

inc/function.php
inc/misc/sql/index.php [new file with mode: 0644]
inc/searches.php
inc/versioninfo.php
sql.php

index b2a7424..e5f6b8d 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2011 iDB Support - http://idb.berlios.de/
     Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: function.php - Last Update: 12/19/2010 SVN 605 - Author: cooldude2k $
+    $FileInfo: function.php - Last Update: 04/04/2011 SVN 625 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="function.php"||$File3Name=="/function.php") {
@@ -281,10 +281,10 @@ if($opennew===false) {
 $outlink = "<a href=\"".$outurl."\">".$outurl."</a>"; }
 return $outlink; }
 function url2link($string) {
-return preg_replace_callback("/([a-zA-Z]+)\:\/\/([a-z0-9\-\.]+)(\:[0-9]+)?\/([A-Za-z0-9\.\/%\?\-_\:;]+)?(\?)?([A-Za-z0-9\.\/%&=\?\-_\:;]+)?(\#)?([A-Za-z0-9\.\/%&=\?\-_\:;]+)?/is", "pre_url2link", $string); }
+return preg_replace_callback("/([a-zA-Z]+)\:\/\/([a-z0-9\-\.]+)(\:[0-9]+)?\/([A-Za-z0-9\.\/%\?\-_\:;\~]+)?(\?)?([A-Za-z0-9\.\/%&=\?\-_\:;]+)?(\#)?([A-Za-z0-9\.\/%&=\?\-_\:;]+)?/is", "pre_url2link", $string); }
 function urlcheck($string) {
 global $BoardURL;
-$retnum = preg_match_all("/([a-zA-Z]+)\:\/\/([a-z0-9\-\.]+)(\:[0-9]+)?\/([A-Za-z0-9\.\/%\?\-_\:;]+)?(\?)?([A-Za-z0-9\.\/%&=\?\-_\:;]+)?(\#)?([A-Za-z0-9\.\/%&=\?\-_\:;]+)?/is", $string, $urlcheck); 
+$retnum = preg_match_all("/([a-zA-Z]+)\:\/\/([a-z0-9\-\.]+)(\:[0-9]+)?\/([A-Za-z0-9\.\/%\?\-_\:;\~]+)?(\?)?([A-Za-z0-9\.\/%&=\?\-_\:;]+)?(\#)?([A-Za-z0-9\.\/%&=\?\-_\:;]+)?/is", $string, $urlcheck); 
 if(isset($urlcheck[0][0])) { $url = $urlcheck[0][0]; }
 if(!isset($urlcheck[0][0])) { $url = $BoardURL; }
 return $url; }
diff --git a/inc/misc/sql/index.php b/inc/misc/sql/index.php
new file mode 100644 (file)
index 0000000..af2fb36
--- /dev/null
@@ -0,0 +1,17 @@
+<?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-2011 iDB Support - http://idb.berlios.de/
+    Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/
+
+    $FileInfo: index.php - Last Update: 04/04/2011 SVN 626 - Author: cooldude2k $
+*/
+header('Location: ../../../index.php');
+?>
\ No newline at end of file
index 43b241c..860561a 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2011 iDB Support - http://idb.berlios.de/
     Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: searches.php - Last Update: 12/28/2010 SVN 607 - Author: cooldude2k $
+    $FileInfo: searches.php - Last Update: 04/04/2011 SVN 625 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="searches.php"||$File3Name=="/searches.php") {
@@ -97,6 +97,7 @@ if($memsinum==0) { $memsid = -1; }
 if($memsinum!=0) {
 $memsid=sql_result($memsiresult,$memsi,"id"); 
 sql_free_result($memsiresult); } }
+if(!isset($_GET['memid'])) { $_GET['memid'] = null; }
 if(!is_numeric($_GET['memid'])||$_GET['memid']<1) { 
        $_GET['memid'] = null; }
 if($_GET['memid']!=null&&is_numeric($_GET['memid'])) {
index ffdc490..afd7e56 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2011 iDB Support - http://idb.berlios.de/
     Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: versioninfo.php - Last Update: 03/01/2011 SVN 625 - Author: cooldude2k $
+    $FileInfo: versioninfo.php - Last Update: 04/04/2011 SVN 626 - 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] = 4; $VER1[2] = 3; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2];
-$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 625;
-$SVNDay[0] = 03; $SVNDay[1] = 01; $SVNDay[2] = 2011; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2];
+$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 626;
+$SVNDay[0] = 04; $SVNDay[1] = 04; $SVNDay[2] = 2011; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2];
 $AltName = "RDB"; $AltName2 = "ReneeDB"; $RName = "iDB"; $SFName = "IntDB";
 $RFullName = "Internet Discussion Boards"; $AltFullName = "Renee Discussion Boards";
 if(!isset($Settings['usealtname'])) { $Settings['usealtname'] = "no"; }
diff --git a/sql.php b/sql.php
index 77a9718..cdc6928 100644 (file)
--- a/sql.php
+++ b/sql.php
@@ -11,7 +11,7 @@
     Copyright 2004-2011 iDB Support - http://idb.berlios.de/
     Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: sql.php - Last Update: 02/21/2011 SVN 622 - Author: cooldude2k $
+    $FileInfo: sql.php - Last Update: 04/04/2011 SVN 6252 - Author: cooldude2k $
 */
 /* Some ini setting changes uncomment if you need them. 
    Display PHP Errors */
@@ -30,6 +30,7 @@ if(!in_array("ini_set", $disfunc)) {
 @ini_set("session.use_cookies", true);
 @ini_set("session.use_only_cookies", true);
 @ini_set("url_rewriter.tags",""); 
+ini_set('zend.ze1_compatibility_mode', 0);
 @ini_set("ignore_user_abort", 1); }
 @set_time_limit(30); @ignore_user_abort(true);
 /* Change session garbage collection settings */