3 This program is free software; you can redistribute it and/or modify
\r
4 it under the terms of the Revised BSD License.
\r
6 This program is distributed in the hope that it will be useful,
\r
7 but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
8 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
9 Revised BSD License for more details.
\r
11 Copyright 2004-2017 iDB Support - http://idb.berlios.de/
\r
12 Copyright 2004-2017 Game Maker 2k - http://gamemaker2k.org/
\r
14 $FileInfo: versioninfo.php - Last Update: 09/14/2018 SVN 880 - Author: cooldude2k $
\r
16 $File3Name = basename($_SERVER['SCRIPT_NAME']);
\r
17 if ($File3Name=="versioninfo.php"||$File3Name=="/versioninfo.php") {
\r
18 require('index.php');
\r
21 // Version info stuff. :P
\r
22 function version_info($proname,$subver,$ver,$supver,$reltype,$svnver,$showsvn) {
\r
23 $return_var = $proname." ".$reltype." ".$subver.".".$ver.".".$supver;
\r
24 if($showsvn===false) { $showsvn = null; }
\r
25 if($showsvn===true) { $return_var .= " SVN ".$svnver; }
\r
26 if($showsvn!==true&&$showsvn!==null) { $return_var .= " ".$showsvn." ".$svnver; }
\r
27 return $return_var; }
\r
28 // Version number and date stuff. :P
\r
29 $VER1[0] = 0; $VER1[1] = 5; $VER1[2] = 0; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2];
\r
30 $VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 879;
\r
31 $SVNDay[0] = 9; $SVNDay[1] = 14; $SVNDay[2] = 2018; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2];
\r
32 $AltName = "DF2k"; $AltName2 = "DF2k"; $RName = "iDB"; $SFName = "IntDB";
\r
33 $RFullName = "Internet Discussion Boards"; $AltFullName = "Discussion Forums 2k"; $AltGM2k = "Game Maker 2k";
\r
34 $VerCheckName = "iDB"; $AltVerCheckName = "DF2k"; $AltiDBHome = "http://df2k.gamemaker2k.org/";
\r
35 $AltGM2kHome = "http://df2k.gamemaker2k.org/"; $AltGM2kURL = "<a href=\"".$AltGM2kHome."\" title=\"".$AltGM2k."\" onclick=\"window.open(this.href);return false;\">".$AltGM2k."</a>";
\r
36 $iDBTheme = "iDB"; $AltiDBTheme = "Gray";
\r
37 $UserAgentName = "iDB-Forum"; $AltUserAgentName = "DF2k-Forum";
\r
38 if(!isset($Settings['usealtname'])) { $Settings['usealtname'] = "no"; }
\r
39 if(isset($Settings['usealtname'])&&$Settings['usealtname']=="yes") {
\r
40 if(isset($iDBAltName['VER1'][0])) { $VER1[0] = $iDBAltName['VER1'][0]; }
\r
41 if(isset($iDBAltName['VER1'][1])) { $VER1[1] = $iDBAltName['VER1'][1]; }
\r
42 if(isset($iDBAltName['VER1'][2])) { $VER1[2] = $iDBAltName['VER1'][2]; }
\r
43 if(isset($iDBAltName['VER1'][0])&&
\r
44 isset($iDBAltName['VER1'][1])&&
\r
45 isset($iDBAltName['VER1'][2])) {
\r
46 $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2]; }
\r
47 if(isset($iDBAltName['VER2'][0])) { $VER2[0] = $iDBAltName['VER2'][0]; }
\r
48 if(isset($iDBAltName['VER2'][1])) { $VER2[1] = $iDBAltName['VER2'][1]; }
\r
49 if(isset($iDBAltName['VER2'][2])) { $VER2[2] = $iDBAltName['VER2'][2]; }
\r
50 if(isset($iDBAltName['SubVerN'])) { $SubVerN = $iDBAltName['SubVerN']; }
\r
51 if(isset($iDBAltName['SVNDay'][0])) { $SVNDay[0] = $iDBAltName['SVNDay'][0]; }
\r
52 if(isset($iDBAltName['SVNDay'][1])) { $SVNDay[1] = $iDBAltName['SVNDay'][1]; }
\r
53 if(isset($iDBAltName['SVNDay'][2])) { $SVNDay[2] = $iDBAltName['SVNDay'][2]; }
\r
54 if(isset($iDBAltName['SVNDay'][0])&&
\r
55 isset($iDBAltName['SVNDay'][1])&&
\r
56 isset($iDBAltName['SVNDay'][2])) {
\r
57 $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2]; }
\r
58 if(isset($iDBAltName['AltName'])) { $AltName = $iDBAltName['AltName']; }
\r
59 if(isset($iDBAltName['AltName2'])) { $AltName2 = $iDBAltName['AltName2']; }
\r
60 if(isset($iDBAltName['AltFullName'])) { $AltFullName = $iDBAltName['AltFullName']; }
\r
61 if(isset($iDBAltName['AltVerCheckName'])) { $AltVerCheckName = $iDBAltName['AltVerCheckName']; }
\r
62 if(isset($iDBAltName['AltUserAgentName'])) { $AltUserAgentName = $iDBAltName['AltUserAgentName']; }
\r
63 if(isset($iDBAltName['AltiDBHome'])) { $AltiDBHome = $iDBAltName['AltiDBHome']; }
\r
64 if(isset($iDBAltName['AltGM2k'])) { $AltGM2k = $iDBAltName['AltGM2k']; }
\r
65 if(isset($iDBAltName['AltGM2kHome'])) { $AltGM2kHome = $iDBAltName['AltGM2kHome']; }
\r
66 if(isset($iDBAltName['AltGM2kURL'])) { $AltGM2kURL = $iDBAltName['AltGM2kURL']; }
\r
67 if(isset($iDBAltName['AltiDBTheme'])) { $AltiDBTheme = $iDBAltName['AltiDBTheme']; }
\r
68 if(isset($iDBAltName['VerCheckURL'])) { $Settings['VerCheckURL'] = $iDBAltName['VerCheckURL']; } }
\r
69 if(isset($Settings['usealtname'])&&$Settings['usealtname']=="yes") {
\r
70 $RName = $AltName2; $SFName = $AltName; $RFullName = $AltFullName; $VerCheckName = $AltVerCheckName; $UserAgentName = $AltUserAgentName; }
\r
71 $VerInfo['iDB_Ver'] = version_info($RName,$VER1[0],$VER1[1],$VER1[2],$VER2[1],$SubVerN,false);
\r
72 $VerInfo['iDB_Ver_SVN'] = version_info($RName,$VER1[0],$VER1[1],$VER1[2],$VER2[1],$SubVerN,$VER2[2]);
\r
73 $VerInfo['iDB_Full_Ver'] = version_info($RName,$VER1[0],$VER1[1],$VER1[2],$VER2[0],$SubVerN,false);
\r
74 $VerInfo['iDB_Full_Ver_SVN'] = version_info($RName,$VER1[0],$VER1[1],$VER1[2],$VER2[0],$SubVerN,$VER2[2]);
\r
75 $VerInfo['iDB_Ver_Show'] = $VerInfo['iDB_Ver_SVN']; $VerInfo['iDB_Full_Ver_Show'] = $VerInfo['iDB_Full_Ver_SVN'];
\r
76 define("_iDB_Ver_", $VerInfo['iDB_Ver']); define("_iDB_Ver_SVN_", $VerInfo['iDB_Ver_SVN']);
\r
77 define("_iDB_Full_Ver_", $VerInfo['iDB_Full_Ver']); define("_iDB_Full_Ver_SVN_", $VerInfo['iDB_Full_Ver_SVN']);
\r
78 define("_iDB_Ver_Show_", $VerInfo['iDB_Ver_Show']); define("_iDB_Full_Ver_Show_", $VerInfo['iDB_Full_Ver_Show']);
\r
80 URLs and names and stuff. :P
\r
81 $KSP = "Kazuki Suzuki Przyborowski";
\r
82 $KSPAlt = "Kazuki Suzuki Przyborowski";
\r
84 $iDBHome = "http://ja.gamemaker2k.org/"; $DF2kHome = "http://df2k.gamemaker2k.org/";
\r
85 $OrgName = "iDB"; $AltOrgName = "DF2k"; $AltiDB = "Discussion Forums 2k";
\r
86 $AltSQLDumper = null;
\r
87 if(isset($Settings['usealtname'])&&$Settings['usealtname']=="yes") {
\r
88 if(isset($iDBAltName['AltOrgName'])) { $AltOrgName = $iDBAltName['AltOrgName']; }
\r
89 if(isset($iDBAltName['AltiDB'])) { $AltiDB = $iDBAltName['AltiDB']; }
\r
90 if(isset($iDBAltName['AltSQLDumperName'])) { $AltSQLDumper = $iDBAltName['AltSQLDumperName']; } }
\r
91 if(!isset($Settings['VerCheckURL'])||
\r
92 $Settings['VerCheckURL']==="") {
\r
93 $VerCheckURL = $iDBHome."?act=vercheck"; }
\r
94 if(isset($Settings['VerCheckURL'])&&
\r
95 $Settings['VerCheckURL']!=="") {
\r
96 $VerCheckURL = $Settings['VerCheckURL']; }
\r
97 $VerCheckQuery = parse_url($VerCheckURL);
\r
98 $VerCheckQuery = $VerCheckQuery['query'];
\r
99 if($VerCheckQuery=="") { $VerCheckURL = $VerCheckURL."?"; }
\r
100 if(!isset($Settings['IPCheckURL'])||
\r
101 $Settings['IPCheckURL']==="") {
\r
102 $IPCheckURL = 'http://cqcounter.com/whois/?query=%s'; }
\r
103 if(isset($Settings['IPCheckURL'])&&
\r
104 $Settings['IPCheckURL']!=="") {
\r
105 $IPCheckURL = $Settings['IPCheckURL']; }
\r
106 $CD2k = "Kazuki Przyborowski"; $CD2k_Full = "Kazuki Suzuki Przyborowski";
\r
107 $GM2k = "Game Maker 2k"; $iDB_Author = "Kazuki";
\r
108 $iDB = "Internet Discussion Boards"; $iTB = "Internet Tag Boards";
\r
109 $DF2k = "Discussion Forums 2k"; $TB2k = "Tag Boards 2k";
\r
110 $TheProgrammerNaps = "The programmer has a nap. \nHold out! Programmer! ";
\r
111 if(isset($Settings['usealtname'])&&$Settings['usealtname']=="yes") {
\r
112 $iDB = $AltiDB; $OrgName = $AltOrgName; $iDBTheme = $AltiDBTheme; }
\r
113 $iDBURL1 = "<a href=\"".$iDBHome."\" onclick=\"window.open(this.href);return false;\">"; $iDBURL2 = $iDBURL1.$iDB."</a>";
\r
114 $DF2kURL1 = "<a href=\"".$DF2kHome."\" onclick=\"window.open(this.href);return false;\">"; $DF2kURL2 = $DF2kURL1.$DF2k."</a>";
\r
115 $GM2kHome = $iDBHome."support/category.php?act=view&id=2";
\r
116 $GM2kURL = "<a href=\"".$GM2kHome."\" title=\"".$GM2k."\" onclick=\"window.open(this.href);return false;\">".$GM2k."</a>";
\r
117 $iDBURL3 = "<a href=\"".$iDBHome."\" title=\"".$iDB."\" onclick=\"window.open(this.href);return false;\">".$iDB."</a>";
\r
118 $PHPQA = "PHP-Quick-Arcade|http://quickarcade.jcink.com/"; $TFBB = "TextFileBB|https://launchpad.net/tfbb";
\r
119 $PHPQA = explode("|",$PHPQA); $TFBB = explode("|",$TFBB);
\r
120 $PHPQA = "<a href=\"".$PHPQA[1]."\" title=\"".$PHPQA[0]."\" onclick=\"window.open(this.href);return false;\">".$PHPQA[0]."</a>";
\r
121 $TFBB = "<a href=\"".$TFBB[1]."\" title=\"".$TFBB[0]."\" onclick=\"window.open(this.href);return false;\">".$TFBB[0]."</a>";
\r
122 if(isset($Settings['usealtname'])&&$Settings['usealtname']=="yes") {
\r
123 $iDBHome = $AltiDBHome; $GM2k = $AltGM2k; $GM2kHome = $AltGM2kHome; $GM2kURL = $AltGM2kURL; }
\r
124 $PHPV1 = phpversion(); $PHPV2 = "PHP ".$PHPV1; $OSType = @php_uname("s"); $OSType .= " ".@php_uname("r");
\r
125 $OSType .= " ".@php_uname("m"); if($OSType==""||!isset($OSType)) { $OSType = PHP_OS; } // Check OS Name
\r
126 if($OSType=="WINNT") { $OSType="Windows NT"; } if($OSType=="WIN32") { $OSType="Windows 9x"; }
\r
127 $OSType2 = $PHPV2." / ".$OSType; $ZENDV1 = zend_version(); $ZENDV2 = "Zend engine ".$ZENDV1;
\r
128 // Show or hide the version number
\r
129 if($Settings['showverinfo']=="on") {
\r
130 //header("X-".$RName."-Powered-By: ".$VerInfo['iDB_Ver_Show']);
\r
131 header("Generator: ".$VerInfo['iDB_Ver_Show']); }
\r
132 if($Settings['showverinfo']!="on") {
\r
133 //header("X-".$RName."-Powered-By: ".$RName);
\r
134 //header("X-Powered-By: PHP");
\r
135 header("Generator: ".$RName); }
\r
136 if(!isset($Settings['hideverinfohttp'])) {
\r
137 $Settings['hideverinfohttp'] = "off"; }
\r
138 if($Settings['hideverinfohttp']=="on") {
\r
139 header("X-Powered-By: ");
\r
140 header("Generator: "); }
\r