<relname>iDB</relname>
<reltype>Al</reltype>
<reltypename>Alpha</reltypename>
-<relnum>0.4.6</relnum>
+<relnum>0.4.8</relnum>
<subtype>SVN</subtype>
-<relsvnum>696</relsvnum>
-<fullrel>iDB Al 0.4.6</fullrel>
-<fullname>iDB Al 0.4.6 SVN 696</fullname>
+<relsvnum>789</relsvnum>
+<fullrel>iDB Al 0.4.8</fullrel>
+<fullname>iDB Al 0.4.8 SVN 789</fullname>
</version>
-<version>
-<relname>iDB-Host</relname>
-<reltype>Al</reltype>
-<reltypename>Alpha</reltypename>
-<relnum>0.4.6</relnum>
-<subtype>SVN</subtype>
-<relsvnum>696</relsvnum>
-<fullrel>iDB-Host Al 0.4.6</fullrel>
-<fullname>iDB-Host Al 0.4.6 SVN 696</fullname>
-</version>
-
-<version>
-<relname>iDBEH-Mod</relname>
-<reltype>Al</reltype>
-<reltypename>Alpha</reltypename>
-<relnum>0.4.6</relnum>
-<subtype>SVN</subtype>
-<relsvnum>696</relsvnum>
-<fullrel>iDBEH-Mod Al 0.4.6</fullrel>
-<fullname>iDBEH-Mod Al 0.4.6 SVN 696</fullname>
-</version>
-
-</versioninfo>
\ No newline at end of file
+</versioninfo>
} else {
$GetNewVersion = file_get_contents("http://sourceforge.jp/projects/idb/releases/");
}
-preg_match_all("/([0-9])\.([0-9])\.([0-9]) ([A-Za-z]+) SVN ([0-9]+)\<\/a\>/isU", $GetNewVersion, $NewVersionPart);
+preg_match_all("/([0-9])\.([0-9])\.([0-9]) ([A-Za-z]+) SVN ([0-9]+)/is", $GetNewVersion, $NewVersionPart);
$NewSVNPart = $NewVersionPart[5][0];
if (function_exists("stream_context_create")) {
$GetSVNVersion = file_get_contents("http://sourceforge.net/p/intdb/svn/".$NewSVNPart."/tree/trunk/inc/versioninfo.php?format=raw",false,$context);
$VersionXML .= "<fullrel>iDB ".$newver['reltype']." ".$newver['ver']."</fullrel>\n";
$VersionXML .= "<fullname>iDB ".$newver['reltype']." ".$newver['ver']." ".$newver['subtype']." ".$newver['subver']."</fullname>\n";
$VersionXML .= "</version>\n\n";
-$VersionXML .= "<version>\n";
-$VersionXML .= "<relname>iDB-Host</relname>\n";
-$VersionXML .= "<reltype>".$newver['reltype']."</reltype>\n";
-$VersionXML .= "<reltypename>".$newver['fullreltype']."</reltypename>\n";
-$VersionXML .= "<relnum>".$newver['ver']."</relnum>\n";
-$VersionXML .= "<subtype>".$newver['subtype']."</subtype>\n";
-$VersionXML .= "<relsvnum>".$newver['subver']."</relsvnum>\n";
-$VersionXML .= "<fullrel>iDB-Host ".$newver['reltype']." ".$newver['ver']."</fullrel>\n";
-$VersionXML .= "<fullname>iDB-Host ".$newver['reltype']." ".$newver['ver']." ".$newver['subtype']." ".$newver['subver']."</fullname>\n";
-$VersionXML .= "</version>\n\n";
-$VersionXML .= "<version>\n";
-$VersionXML .= "<relname>iDBEH-Mod</relname>\n";
-$VersionXML .= "<reltype>".$newver['reltype']."</reltype>\n";
-$VersionXML .= "<reltypename>".$newver['fullreltype']."</reltypename>\n";
-$VersionXML .= "<relnum>".$newver['ver']."</relnum>\n";
-$VersionXML .= "<subtype>".$newver['subtype']."</subtype>\n";
-$VersionXML .= "<relsvnum>".$newver['subver']."</relsvnum>\n";
-$VersionXML .= "<fullrel>iDBEH-Mod ".$newver['reltype']." ".$newver['ver']."</fullrel>\n";
-$VersionXML .= "<fullname>iDBEH-Mod ".$newver['reltype']." ".$newver['ver']." ".$newver['subtype']." ".$newver['subver']."</fullname>\n";
-$VersionXML .= "</version>\n\n";
-$VersionXML .= "</versioninfo>";
+$VersionXML .= "</versioninfo>\n";
$fp = fopen("./inc/version.xml","w+");
fwrite($fp, $VersionXML);
fclose($fp); }