OSDN Git Service

Small update to function chack_themes.
authorKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Sat, 5 Dec 2009 16:45:39 +0000 (16:45 +0000)
committerKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Sat, 5 Dec 2009 16:45:39 +0000 (16:45 +0000)
Added new function urlcheck.

git-svn-id: svn://svn.code.sf.net/p/intdb/svn/trunk@376 2b68903e-0b30-0410-9a39-a2e4f3c5be39

inc/events.php
inc/function.php
inc/lowreplies.php
inc/members.php
inc/misc/functions.php
inc/pm.php
inc/profilemain.php
inc/replies.php
inc/versioninfo.php

index 2bf5138..0f7fb77 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: events.php - Last Update: 12/03/2009 SVN 375 - Author: cooldude2k $
+    $FileInfo: events.php - Last Update: 12/05/2009 SVN 376 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="events.php"||$File3Name=="/events.php") {
@@ -82,6 +82,12 @@ $User1AvatarSize=$ThemeSet['NoAvatarSize']; }
 $AvatarSize1=explode("x", $User1AvatarSize);
 $AvatarSize1W=$AvatarSize1[0]; $AvatarSize1H=$AvatarSize1[1];
 $User1Website=sql_result($reresult,$rei,"Website");
+$User1Website = urlcheck($User1Website);
+$BoardWWWChCk = parse_url($Settings['idburl']);
+$User1WWWChCk = parse_url($User1Website);
+$opennew = " onclick=\"window.open(this.href);return false;\"";
+if($BoardWWWChCk['host']==$User1WWWChCk['host']) {
+       $opennew = null; }
 $User1PostCount=sql_result($reresult,$rei,"PostCount");
 $User1IP=sql_result($reresult,$rei,"IP");
 sql_free_result($reresult);
@@ -162,7 +168,7 @@ if(($User1ID<=0||$User1Hidden=="yes")&&isset($ThemeSet['Profile'])&&$ThemeSet['P
 echo url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']); }
 ?>"><?php echo $ThemeSet['Profile']; ?></a>
 <?php if(isset($ThemeSet['WWW'])&&$ThemeSet['WWW']!=null) {
-echo $ThemeSet['LineDividerTopic']; ?><a href="<?php echo $User1Website; ?>" onclick="window.open(this.href);return false;"><?php echo $ThemeSet['WWW']; ?></a><?php } echo $ThemeSet['LineDividerTopic']; ?><a href="<?php
+echo $ThemeSet['LineDividerTopic']; ?><a href="<?php echo $User1Website; ?>"<?php echo $opennew; ?>><?php echo $ThemeSet['WWW']; ?></a><?php } echo $ThemeSet['LineDividerTopic']; ?><a href="<?php
 if($User1ID>0&&$User1Hidden=="no"&&isset($ThemeSet['PM'])&&$ThemeSet['PM']!=null) {
 echo url_maker($exfile['messenger'],$Settings['file_ext'],"act=create&id=".$User1ID,$Settings['qstr'],$Settings['qsep'],$prexqstr['messenger'],$exqstr['messenger']); }
 if(($User1ID<=0||$User1Hidden=="yes")&&isset($ThemeSet['PM'])&&$ThemeSet['PM']!=null) {
index 8ab2190..94b1e67 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: function.php - Last Update: 12/02/2009 SVN 372 - Author: cooldude2k $
+    $FileInfo: function.php - Last Update: 12/05/2009 SVN 376 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="function.php"||$File3Name=="/function.php") {
@@ -248,6 +248,32 @@ $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); }
+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); 
+if(isset($urlcheck[0][0])) { $url = $urlcheck[0][0]; }
+if(!isset($urlcheck[0][0])) { $url = $BoardURL; }
+return $url; }
+//Check to make sure theme exists
+function chack_themes($theme) {
+global $BoardTheme;
+if(!isset($theme)) { $theme = null; }
+if(preg_match("/([a-zA-Z]+)\:/isU",$theme)) {
+       $theme = $BoardTheme; }
+require('settings.php');
+$ckskindir = dirname(realpath("settings.php"))."/".$SettDir['themes'];
+if ($handle = opendir($ckskindir)) { $dirnum = null;
+   while (false !== ($ckfile = readdir($handle))) {
+          if ($dirnum==null) { $dirnum = 0; }
+          if (file_exists($ckskindir.$ckfile."/info.php")) {
+                  if ($ckfile != "." && $ckfile != "..") {
+          //include($ckskindir.$ckfile."/info.php");
+       $cktheme[$dirnum] =  $ckfile;
+          ++$dirnum; } } }
+   closedir($handle); asort($cktheme); }
+$theme=preg_replace("/(.*?)\.\/(.*?)/", $BoardTheme, $theme);
+if(!in_array($theme,$cktheme)||strlen($theme)>26) {
+       $theme = $BoardTheme; } return $theme; }
 // Make a url with query string
 function url_maker($file="index",$ext=".php",$qvarstr=null,$qstr=";",$qsep="=",$prexqstr=null,$exqstr=null,$fixhtml=true) {
 global $sidurls, $icharset, $debug_on;
index c34d18e..86700f1 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: 12/02/2009 SVN 372 - Author: cooldude2k $
+    $FileInfo: lowreplies.php - Last Update: 12/05/2009 SVN 376 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="replies.php"||$File3Name=="/replies.php") {
@@ -261,6 +261,12 @@ $User1AvatarSize=$ThemeSet['NoAvatarSize']; }
 $AvatarSize1=explode("x", $User1AvatarSize);
 $AvatarSize1W=$AvatarSize1[0]; $AvatarSize1H=$AvatarSize1[1];
 $User1Website=sql_result($reresult,$rei,"Website");
+$BoardWWWChCk = parse_url($Settings['idburl']);
+$User1WWWChCk = parse_url($User1Website);
+$User1Website = urlcheck($User1Website);
+$opennew = " onclick=\"window.open(this.href);return false;\"";
+if($BoardWWWChCk['host']==$User1WWWChCk['host']) {
+       $opennew = null; }
 $User1PostCount=sql_result($reresult,$rei,"PostCount");
 $User1Karma=sql_result($reresult,$rei,"Karma");
 $User1IP=sql_result($reresult,$rei,"IP");
index 483d3d8..c409c56 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: members.php - Last Update: 12/02/2009 SVN 372 - Author: cooldude2k $
+    $FileInfo: members.php - Last Update: 12/05/2009 SVN 376 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="members.php"||$File3Name=="/members.php") {
@@ -211,6 +211,12 @@ $MemList['Joined']=GMTimeChange("F j Y, g:i a",$MemList['Joined'],$_SESSION['Use
 $MemList['LastActive']=sql_result($result,$i,"LastActive");
 $MemList['LastActive']=GMTimeChange("F j Y, g:i a",$MemList['LastActive'],$_SESSION['UserTimeZone'],0,$_SESSION['UserDST']);
 $MemList['Website']=sql_result($result,$i,"Website");
+$MemList['Website'] = urlcheck($MemList['Website']);
+$BoardWWWChCk = parse_url($Settings['idburl']);
+$MemsWWWChCk = parse_url($MemList['Website']);
+$opennew = " onclick=\"window.open(this.href);return false;\"";
+if($BoardWWWChCk['host']==$MemsWWWChCk['host']) {
+       $opennew = null; }
 $MemList['Gender']=sql_result($result,$i,"Gender");
 $MemList['PostCount']=sql_result($result,$i,"PostCount");
 $MemList['Karma']=sql_result($result,$i,"Karma");
@@ -238,7 +244,7 @@ if($MemList['Group']!=$Settings['GuestGroup']) {
 <td class="TableColumn3" style="text-align: center;"><?php echo $MemList['Karma']; ?></td>
 <td class="TableColumn3" style="text-align: center;"><?php echo $MemList['Joined']; ?></td>
 <td class="TableColumn3" style="text-align: center;"><?php echo $MemList['LastActive']; ?></td>
-<td class="TableColumn3" style="text-align: center;"><a href="<?php echo $MemList['Website']; ?>" onclick="window.open(this.href);return false;">Website</a></td>
+<td class="TableColumn3" style="text-align: center;"><a href="<?php echo $MemList['Website']; ?>"<?php echo $opennew; ?>>Website</a></td>
 </tr>
 <?php }
 ++$i; } sql_free_result($result);
@@ -564,6 +570,12 @@ $ViewMem['Joined']=GMTimeChange("M j Y, g:i a",$ViewMem['Joined'],$_SESSION['Use
 $ViewMem['LastActive']=sql_result($result,$i,"LastActive");
 $ViewMem['LastActive']=GMTimeChange("M j Y, g:i a",$ViewMem['LastActive'],$_SESSION['UserTimeZone'],0,$_SESSION['UserDST']);
 $ViewMem['Website']=sql_result($result,$i,"Website");
+$ViewMem['Website'] = urlcheck($ViewMem['Website']);
+$BoardWWWChCk = parse_url($Settings['idburl']);
+$MemsWWWChCk = parse_url($ViewMem['Website']);
+$opennew = " onclick=\"window.open(this.href);return false;\"";
+if($BoardWWWChCk['host']==$MemsWWWChCk['host']) {
+       $opennew = null; }
 $ViewMem['Gender']=sql_result($result,$i,"Gender");
 $ViewMem['PostCount']=sql_result($result,$i,"PostCount");
 $ViewMem['Karma']=sql_result($result,$i,"Karma");
@@ -662,7 +674,7 @@ Title: <?php echo $ViewMem['Title']; ?>
 &nbsp;User Joined: <?php echo $ViewMem['Joined']; ?><br />
 &nbsp;Last Active: <?php echo $ViewMem['LastActive']; ?><br />
 &nbsp;User Time: <?php echo GMTimeGet("M j Y, g:i a",$ViewMem['TimeZone'],0,$ViewMem['DST']); ?><br />
-&nbsp;User Website: <a href="<?php echo $ViewMem['Website']; ?>" onclick="window.open(this.href);return false;">Website</a><br />
+&nbsp;User Website: <a href="<?php echo $ViewMem['Website']; ?>"<?php echo $opennew; ?>>Website</a><br />
 &nbsp;Post Count: <?php echo $ViewMem['PostCount']; ?><br />
 &nbsp;Karma: <?php echo $ViewMem['Karma']; ?><br />
 &nbsp;Interests: <?php echo $ViewMem['Interests']; ?><br />
index 2fe5651..83ef383 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: functions.php - Last Update: 12/02/2009 SVN 370 - Author: cooldude2k $
+    $FileInfo: functions.php - Last Update: 12/02/2009 SVN 373 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="functions.php"||$File3Name=="/functions.php") {
@@ -112,26 +112,6 @@ $varname = preg_replace("/(HTTP_GET_VARS|HTTP_POST_VARS|HTTP_POST_FILES)/i", nul
 if(!isset($Settings['DefaultTheme'])) {
        $Settings['DefaultTheme'] = "iDB"; }
 $BoardTheme = $Settings['DefaultTheme'];
-//Check to make sure theme exists
-function chack_themes($theme) {
-global $BoardTheme;
-if(!isset($theme)) { $theme = null; }
-if(preg_match("/([a-zA-Z].+)\:/isU",$theme)) {
-       $theme = $BoardTheme; }
-require('settings.php');
-$ckskindir = dirname(realpath("settings.php"))."/".$SettDir['themes'];
-if ($handle = opendir($ckskindir)) { $dirnum = null;
-   while (false !== ($ckfile = readdir($handle))) {
-          if ($dirnum==null) { $dirnum = 0; }
-          if (file_exists($ckskindir.$ckfile."/info.php")) {
-                  if ($ckfile != "." && $ckfile != "..") {
-          //include($ckskindir.$ckfile."/info.php");
-       $cktheme[$dirnum] =  $ckfile;
-          ++$dirnum; } } }
-   closedir($handle); asort($cktheme); }
-$theme=preg_replace("/(.*?)\.\/(.*?)/", $BoardTheme, $theme);
-if(!in_array($theme,$cktheme)||strlen($theme)>26) {
-       $theme = $BoardTheme; } return $theme; }
 // Change the text to icons(smileys)
 function text2icons($Text,$sqlt) {
 global $Settings;
index 1e6d129..9ddc19c 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: pm.php - Last Update: 12/03/2009 SVN 375 - Author: cooldude2k $
+    $FileInfo: pm.php - Last Update: 12/05/2009 SVN 376 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="pm.php"||$File3Name=="/pm.php") {
@@ -469,6 +469,12 @@ $User1AvatarSize=$ThemeSet['NoAvatarSize']; }
 $AvatarSize1=explode("x", $User1AvatarSize);
 $AvatarSize1W=$AvatarSize1[0]; $AvatarSize1H=$AvatarSize1[1];
 $User1Website=sql_result($reresult,$rei,"Website");
+$User1Website = urlcheck($User1Website);
+$BoardWWWChCk = parse_url($Settings['idburl']);
+$User1WWWChCk = parse_url($User1Website);
+$opennew = " onclick=\"window.open(this.href);return false;\"";
+if($BoardWWWChCk['host']==$User1WWWChCk['host']) {
+       $opennew = null; }
 $User1PostCount=sql_result($reresult,$rei,"PostCount");
 $User1Karma=sql_result($reresult,$rei,"Karma");
 $User1IP=sql_result($reresult,$rei,"IP");
@@ -561,7 +567,7 @@ if(($User1ID<=0||$User1Hidden=="yes")&&isset($ThemeSet['Profile'])&&$ThemeSet['P
 echo url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']); }
 ?>"><?php echo $ThemeSet['Profile']; ?></a>
 <?php if(isset($ThemeSet['WWW'])&&$ThemeSet['WWW']!=null) {
-echo $ThemeSet['LineDividerTopic']; ?><a href="<?php echo $User1Website; ?>" onclick="window.open(this.href);return false;"><?php echo $ThemeSet['WWW']; ?></a><?php } echo $ThemeSet['LineDividerTopic']; ?><a href="<?php
+echo $ThemeSet['LineDividerTopic']; ?><a href="<?php echo $User1Website; ?>"<?php echo $opennew; ?>><?php echo $ThemeSet['WWW']; ?></a><?php } echo $ThemeSet['LineDividerTopic']; ?><a href="<?php
 if($User1ID>0&&$User1Hidden=="no"&&isset($ThemeSet['PM'])&&$ThemeSet['PM']!=null) {
 echo url_maker($exfile['messenger'],$Settings['file_ext'],"act=create&id=".$User1ID,$Settings['qstr'],$Settings['qsep'],$prexqstr['messenger'],$exqstr['messenger']); }
 if(($User1ID<=0||$User1Hidden=="yes")&&isset($ThemeSet['PM'])&&$ThemeSet['PM']!=null) {
index 908ab7f..00877f6 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: profilemain.php - Last Update: 11/26/2009 SVN 365 - Author: cooldude2k $
+    $FileInfo: profilemain.php - Last Update: 12/05/2009 SVN 376 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="profilemain.php"||$File3Name=="/profilemain.php") {
@@ -543,6 +543,7 @@ $YourID=sql_result($result,$i,"id");
 $User1Interests=sql_result($result,$i,"Interests"); 
 $User1Title=sql_result($result,$i,"Title");
 $User1Website=sql_result($result,$i,"Website"); 
+$User1Website = urlcheck($User1Website);
 $User1Gender=sql_result($result,$i,"Gender");
 $User1TimeZone=sql_result($result,$i,"TimeZone");
 $BirthDay=sql_result($result,$i,"BirthDay");
@@ -780,6 +781,7 @@ if($_POST['act']=="profile"&&
        $_SESSION['UserDST'] = $_POST['DST'];
        $NewDay=GMTimeStamp();
        $NewIP=$_SERVER['REMOTE_ADDR'];
+       $_POST['Website'] = urlcheck($_POST['Website']);
        $querynewprofile = sql_pre_query("UPDATE `".$Settings['sqltable']."members` SET `Interests`='%s',`Title`='%s',`Website`='%s',`TimeZone`='%s',`Gender`='%s',`DST`='%s',`LastActive`=%i,`BirthMonth`=%i,`BirthDay`=%i,`BirthYear`=%i,RepliesPerPage=%i,TopicsPerPage=%i,MessagesPerPage=%i,`IP`='%s' WHERE `id`=%i", array($_POST['Interests'],$_POST['Title'],$_POST['Website'],$_POST['YourOffSet'],$_POST['YourGender'],$_POST['DST'],$NewDay,$BirthMonth,$BirthDay,$BirthYear,$_POST['RepliesPerPage'],$_POST['TopicsPerPage'],$_POST['MessagesPerPage'],$NewIP,$_SESSION['UserID']));
        sql_query($querynewprofile); } } }
 if($_GET['act']=="userinfo") {
index 82377c9..b4b0dd5 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: 12/03/2009 SVN 375 - Author: cooldude2k $
+    $FileInfo: replies.php - Last Update: 12/05/2009 SVN 376 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="replies.php"||$File3Name=="/replies.php") {
@@ -299,6 +299,12 @@ $User1AvatarSize=$ThemeSet['NoAvatarSize']; }
 $AvatarSize1=explode("x", $User1AvatarSize);
 $AvatarSize1W=$AvatarSize1[0]; $AvatarSize1H=$AvatarSize1[1];
 $User1Website=sql_result($reresult,$rei,"Website");
+$User1Website = urlcheck($User1Website);
+$BoardWWWChCk = parse_url($Settings['idburl']);
+$User1WWWChCk = parse_url($User1Website);
+$opennew = " onclick=\"window.open(this.href);return false;\"";
+if($BoardWWWChCk['host']==$User1WWWChCk['host']) {
+       $opennew = null; }
 $User1PostCount=sql_result($reresult,$rei,"PostCount");
 $User1Karma=sql_result($reresult,$rei,"Karma");
 $User1IP=sql_result($reresult,$rei,"IP");
@@ -445,7 +451,7 @@ if(($User1ID<=0||$User1Hidden=="yes")&&isset($ThemeSet['Profile'])&&$ThemeSet['P
 echo url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']); }
 ?>"><?php echo $ThemeSet['Profile']; ?></a>
 <?php if(isset($ThemeSet['WWW'])&&$ThemeSet['WWW']!=null) {
-echo $ThemeSet['LineDividerTopic']; ?><a href="<?php echo $User1Website; ?>" onclick="window.open(this.href);return false;"><?php echo $ThemeSet['WWW']; ?></a><?php } echo $ThemeSet['LineDividerTopic']; ?><a href="<?php
+echo $ThemeSet['LineDividerTopic']; ?><a href="<?php echo $User1Website; ?>"<?php echo $opennew; ?>><?php echo $ThemeSet['WWW']; ?></a><?php } echo $ThemeSet['LineDividerTopic']; ?><a href="<?php
 if($User1ID>0&&$User1Hidden=="no"&&isset($ThemeSet['PM'])&&$ThemeSet['PM']!=null) {
 echo url_maker($exfile['messenger'],$Settings['file_ext'],"act=create&id=".$User1ID,$Settings['qstr'],$Settings['qsep'],$prexqstr['messenger'],$exqstr['messenger']); }
 if(($User1ID<=0||$User1Hidden=="yes")&&isset($ThemeSet['PM'])&&$ThemeSet['PM']!=null) {
index 5323ca7..f4b63c3 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: 12/03/2009 SVN 375 - Author: cooldude2k $
+    $FileInfo: versioninfo.php - Last Update: 12/05/2009 SVN 376 - 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] = 3; $VER1[2] = 2; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2];
-$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 375; $RName = "iDB"; $SFName = "IntDB";
-$SVNDay[0] = 12; $SVNDay[1] = 03; $SVNDay[2] = 2009; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2];
+$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 376; $RName = "iDB"; $SFName = "IntDB";
+$SVNDay[0] = 12; $SVNDay[1] = 05; $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);