OSDN Git Service

Another small update to version checker.
authorKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Fri, 22 Jan 2010 02:45:54 +0000 (02:45 +0000)
committerKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Fri, 22 Jan 2010 02:45:54 +0000 (02:45 +0000)
git-svn-id: svn://svn.code.sf.net/p/intdb/svn/trunk@445 2b68903e-0b30-0410-9a39-a2e4f3c5be39

inc/versioninfo.php
sql.php

index cd0d708..0879fe5 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: 01/21/2010 SVN 444 - Author: cooldude2k $
+    $FileInfo: versioninfo.php - Last Update: 01/21/2010 SVN 445 - 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] = 3; $VER1[2] = 6; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2];
-$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 444; $RName = "iDB"; $SFName = "IntDB";
+$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 445; $RName = "iDB"; $SFName = "IntDB";
 $SVNDay[0] = 01; $SVNDay[1] = 21; $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);
diff --git a/sql.php b/sql.php
index 42c4a86..faa12b9 100644 (file)
--- a/sql.php
+++ b/sql.php
@@ -11,7 +11,7 @@
     Copyright 2004-2010 iDB Support - http://idb.berlios.de/
     Copyright 2004-2010 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: sql.php - Last Update: 01/20/2010 SVN 443 - Author: cooldude2k $
+    $FileInfo: sql.php - Last Update: 01/21/2010 SVN 445 - Author: cooldude2k $
 */
 /* Some ini setting changes uncomment if you need them. 
    Display PHP Errors */
@@ -156,7 +156,7 @@ echo "\n"; ?>
   <body style="font-family:Arial;font-size:12pt;background-color:#EEEEEE">
     <xsl:for-each select="versioninfo/version">
       <div style="background-color:teal;color:white;padding:4px">
-        <span style="font-weight:bold">iDB Version Checker</span>
+        <span style="font-weight:bold"><xsl:value-of select="vname"/></span>
       </div>
       <div style="margin-left:20px;margin-bottom:1em;font-size:10pt">
         <span style="font-style:italic">
@@ -170,9 +170,8 @@ echo "\n"; ?>
 if(stristr($_SERVER["HTTP_ACCEPT"],"application/xml") ) {
 header("Content-Type: application/xml; charset=UTF-8"); }
 else { header("Content-Type: text/xml; charset=UTF-8"); }
-echo '<?xml version="1.0" encoding="UTF-8"?>'."\n";
-echo '<?xml-stylesheet type="text/xsl" href="'.url_maker($exfile['index'],$Settings['file_ext'],"act=vercheckxsl",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']).'"?>';
-echo "\n"; ?>
+xml_doc_start("1.0",$Settings['charset']);
+echo '<?xml-stylesheet type="text/xsl" href="'.url_maker($exfile['index'],$Settings['file_ext'],"act=vercheckxsl",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']).'"?>'."\n"; ?>
 
 <!DOCTYPE versioninfo [
 <!ELEMENT versioninfo (version*)>
@@ -180,6 +179,7 @@ echo "\n"; ?>
 <!ELEMENT charset (#PCDATA)>
 <!ELEMENT title (#PCDATA)>
 <!ELEMENT name (#PCDATA)>
+<!ELEMENT vname (#PCDATA)>
 ]>
 
 <versioninfo>
@@ -188,6 +188,7 @@ echo "\n"; ?>
 <charset><?php echo $Settings['charset']; ?></charset> 
 <title><?php echo $Settings['board_name']; ?></title> 
 <?php echo "<name>".$iDBVerName."</name>\n"; ?>
+<vname>iDB Version Checker</vname>
 </version>
 
 </versioninfo>