3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the Revised BSD License.
6 This program is distributed in the hope that it will be useful,
7 but WITHOUT ANY WARRANTY; without even the implied warranty of
8 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 Revised BSD License for more details.
11 Copyright 2004-2010 iDB Support - http://idb.berlios.de/
12 Copyright 2004-2010 Game Maker 2k - http://gamemaker2k.org/
14 $FileInfo: versioninfo.php - Last Update: 09/05/2010 SVN 577 - Author: cooldude2k $
16 $File3Name = basename($_SERVER['SCRIPT_NAME']);
17 if ($File3Name=="versioninfo.php"||
$File3Name=="/versioninfo.php") {
21 // Version info stuff. :P
22 function version_info($proname,$subver,$ver,$supver,$reltype,$svnver,$showsvn) {
23 $return_var = $proname." ".$reltype." ".$subver.".".$ver.".".$supver;
24 if($showsvn===false) { $showsvn = null; }
25 if($showsvn===true) { $return_var .= " SVN ".$svnver; }
26 if($showsvn!==true&&$showsvn!==null) { $return_var .= " ".$showsvn." ".$svnver; }
28 // Version number and date stuff. :P
29 $VER1[0] = 0; $VER1[1] = 4; $VER1[2] = 1; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2];
30 $VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 577; $RName = "iDB"; $SFName = "IntDB";
31 $SVNDay[0] = 09; $SVNDay[1] = 05; $SVNDay[2] = 2010; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2];
32 $VerInfo['iDB_Ver'] = version_info($RName,$VER1[0],$VER1[1],$VER1[2],$VER2[1],$SubVerN,false);
33 $VerInfo['iDB_Ver_SVN'] = version_info($RName,$VER1[0],$VER1[1],$VER1[2],$VER2[1],$SubVerN,true);
34 $VerInfo['iDB_Full_Ver'] = version_info($RName,$VER1[0],$VER1[1],$VER1[2],$VER2[0],$SubVerN,false);
35 $VerInfo['iDB_Full_Ver_SVN'] = version_info($RName,$VER1[0],$VER1[1],$VER1[2],$VER2[0],$SubVerN,true);
36 $VerInfo['iDB_Ver_Show'] = $VerInfo['iDB_Ver_SVN']; $VerInfo['iDB_Full_Ver_Show'] = $VerInfo['iDB_Full_Ver_SVN'];
37 define("_iDB_Ver_", $VerInfo['iDB_Ver']); define("_iDB_Ver_SVN_", $VerInfo['iDB_Ver_SVN']);
38 define("_iDB_Full_Ver_", $VerInfo['iDB_Full_Ver']); define("_iDB_Full_Ver_SVN_", $VerInfo['iDB_Full_Ver_SVN']);
39 define("_iDB_Ver_Show_", $VerInfo['iDB_Ver_Show']); define("_iDB_Full_Ver_Show_", $VerInfo['iDB_Full_Ver_Show']);
40 // URLs and names and stuff. :P $KSP = "Kazuki Sabonis Przyborowski";
41 $iDBHome = "http://idb.berlios.de/"; $DF2kHome = "http://df2k.berlios.de/"; $OrgName = "iDB";
42 if(!isset($Settings['VerCheckURL'])) {
43 $VerCheckURL = $iDBHome."?act=vercheck"; }
44 if(isset($Settings['VerCheckURL'])) {
45 $VerCheckURL = $Settings['VerCheckURL']; }
46 $VerCheckQuery = parse_url($VerCheckURL);
47 $VerCheckQuery = $VerCheckQuery['query'];
48 if($VerCheckQuery=="") { $VerCheckURL = $VerCheckURL."?"; }
49 if(!isset($Settings['IPCheckURL'])) {
50 $IPCheckURL = 'http://cqcounter.com/whois/?query=%s'; }
51 if(isset($Settings['IPCheckURL'])) {
52 $IPCheckURL = $Settings['IPCheckURL']; }
53 $CD2k = "Kazuki Przyborowski"; $GM2k = "Game Maker 2k"; $iDB_Author = "Kazuki";
54 $iDB = "Internet Discussion Boards"; $iTB = "Internet Tag Boards"; $DF2k = "Discussion Forums 2k"; $TB2k = "Tag Boards 2k";
55 $iDBURL1 = "<a href=\"".$iDBHome."\" onclick=\"window.open(this.href);return false;\">"; $iDBURL2 = $iDBURL1.$iDB."</a>";
56 $DF2kURL1 = "<a href=\"".$DF2kHome."\" onclick=\"window.open(this.href);return false;\">"; $DF2kURL2 = $DF2kURL1.$DF2k."</a>";
57 $GM2kURL = "<a href=\"".$iDBHome."support/category.php?act=view&id=2\" title=\"".$GM2k."\" onclick=\"window.open(this.href);return false;\">".$GM2k."</a>";
58 $iDBURL3 = "<a href=\"".$iDBHome."\" title=\"".$iDB."\" onclick=\"window.open(this.href);return false;\">".$iDB."</a>";
59 $PHPQA = "PHP-Quick-Arcade|http://quickarcade.jcink.com/"; $TFBB = "TextFileBB|https://launchpad.net/tfbb";
60 $PHPQA = explode("|",$PHPQA); $TFBB = explode("|",$TFBB);
61 $PHPQA = "<a href=\"".$PHPQA[1]."\" title=\"".$PHPQA[0]."\" onclick=\"window.open(this.href);return false;\">".$PHPQA[0]."</a>";
62 $TFBB = "<a href=\"".$TFBB[1]."\" title=\"".$TFBB[0]."\" onclick=\"window.open(this.href);return false;\">".$TFBB[0]."</a>";
63 $PHPV1 = phpversion(); $PHPV2 = "PHP ".$PHPV1; $OSType = @php_uname
("s"); $OSType .= " ".@php_uname
("r");
64 $OSType .= " ".@php_uname
("m"); if($OSType==""||
!isset($OSType)) { $OSType = PHP_OS
; } // Check OS Name
65 if($OSType=="WINNT") { $OSType="Windows NT"; } if($OSType=="WIN32") { $OSType="Windows 9x"; }
66 $OSType2 = $PHPV2." / ".$OSType; $ZENDV1 = zend_version(); $ZENDV2 = "Zend engine ".$ZENDV1;
67 // Show or hide the version number
68 if($Settings['showverinfo']=="on") {
69 //header("X-".$RName."-Powered-By: ".$VerInfo['iDB_Ver_Show']);
70 header("Generator: ".$VerInfo['iDB_Ver_Show']); }
71 if($Settings['showverinfo']!="on") {
72 //header("X-".$RName."-Powered-By: ".$RName);
73 //header("X-Powered-By: PHP");
74 header("Generator: ".$RName); }
75 // Uncomment next two lines to get rid of version info headers
76 //header("X-Powered-By: ");
77 //header("Generator: ");