OSDN Git Service

e88125a47d495194c4ce064fd255f616e1c09129
[idb/iDB-Extras.git.git] / vercheck / download.php
1 <?php
2 /*
3     This program is free software; you can redistribute it and/or modify
4     it under the terms of the Revised BSD License.
5
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.
10
11     Copyright 2009-2014 iDB Support - http://idb.berlios.de/
12     Copyright 2009-2014 Game Maker 2k - http://gamemaker2k.org/
13
14     $FileInfo: index.php - Last Update: 07/18/2014 Ver 3.1.2 - Author: cooldude2k $
15 */
16 @ini_set("html_errors", false);
17 @ini_set("track_errors", false);
18 @ini_set("display_errors", false);
19 @ini_set("report_memleaks", false);
20 @ini_set("display_startup_errors", false);
21 //@ini_set("error_log","logs/error.log"); 
22 //@ini_set("log_errors","On"); 
23 @ini_set("docref_ext", "");
24 @ini_set("docref_root", "http://php.net/");
25 @ini_set("date.timezone","UTC"); 
26 @ini_set("default_mimetype","text/html");
27 @error_reporting(E_ALL ^ E_NOTICE);
28 @set_time_limit(30); @ignore_user_abort(true);
29 if(function_exists("date_default_timezone_set")) { 
30         @date_default_timezone_set("UTC"); }
31 function idb_output_handler($buffer) { return $buffer; }
32 @ob_start("idb_output_handler");
33 header("Cache-Control: private, no-cache, no-store, must-revalidate, pre-check=0, post-check=0, max-age=0");
34 header("Pragma: private, no-cache, no-store, must-revalidate, pre-check=0, post-check=0, max-age=0");
35 header("P3P: CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"");
36 header("Date: ".gmdate("D, d M Y H:i:s")." GMT");
37 header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
38 header("Expires: ".gmdate("D, d M Y H:i:s")." GMT");
39 output_reset_rewrite_vars();
40 header("Location: https://github.com/GameMaker2k/iDB/releases/latest");
41 $_GET['file'] = null;
42 if($_GET['file']==null) {
43 $mirrors['mirror'] = array("downloads.sourceforge.net","idb.gamemaker2k.org","of.openfoundry.org"); 
44 $mirrors['url'] = array("http://downloads.sourceforge.net/intdb/","http://of.openfoundry.org/download_path/idb/0.4.6.696/");
45 $mirrors['name'] = array("SourceForge","iDB Support FTP","OpenFoundry"); 
46 $mirrors['links'] = array("http://sourceforge.net/projects/intdb","http://idb.gamemaker2k.org/","http://of.openfoundry.org/projects/1220");
47 //$files = array("iDB.zip","iDB.tar.gz","iDB.tar.bz2","iDB.tar.lzma","iDB.tar.xz","iDB.7z","iDB.deb","iDB.rpm","iDB-Host.zip","iDB-Host.tar.gz","iDB-Host.lzma","iDB-Host.tar.xz","iDB-Host.tar.bz2","iDB-Host.7z","iDB-Host.deb","iDB-Host.rpm","iDBEH-Mod.zip","iDBEH-Mod.tar.gz","iDBEH-Mod.tar.bz2","iDBEH-Mod.tar.lzma","iDBEH-Mod.tar.xz","iDBEH-Mod.7z");
48 $files = array("iDB.zip","iDB.tar.gz","iDB.tar.bz2","iDB.tar.xz","iDB.7z","iDB-Host.zip","iDB-Host.tar.gz","iDB-Host.tar.xz","iDB-Host.tar.bz2","iDB-Host.7z","iDBEH-Mod.zip","iDBEH-Mod.tar.gz","iDBEH-Mod.tar.bz2","iDBEH-Mod.tar.xz","iDBEH-Mod.7z","iDBEH-SubMod.zip","iDBEH-SubMod.tar.gz","iDBEH-SubMod.tar.bz2","iDBEH-SubMod.tar.xz","iDBEH-SubMod.7z","webinstaller.zip","webinstaller.tar.gz","webinstaller.tar.bz2","webinstaller.7z");
49 ?>
50 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
51    "http://www.w3.org/TR/html4/strict.dtd">
52 <html>
53 <head>
54 <title> iDB Download List </title>
55 <meta http-equiv="content-language" content="en-US">
56 <meta http-equiv="content-type" content="text/html; charset=iso-8859-15">
57 <meta name="Generator" content="EditPlus">
58 <meta name="Author" content="Cool Dude 2k">
59 <meta name="Keywords" content="iDB Download List">
60 <meta name="Description" content="iDB Download List">
61 <meta name="ROBOTS" content="Index, FOLLOW">
62 <meta name="revisit-after" content="1 days">
63 <meta name="GOOGLEBOT" content="Index, FOLLOW">
64 <meta name="resource-type" content="document">
65 <meta name="distribution" content="global">
66 <link rel="icon" href="favicon.ico" type="image/icon">
67 <link rel="shortcut icon" href="favicon.ico" type="image/icon">
68 </head>
69
70 <body>
71 <?php $i = 0; $num = count($mirrors['mirror']);
72 while($i < $num) {
73 $l = 0; $nums = count($files); ?>
74 <ul><li><a href="<?php echo $mirrors['links'][$i]; ?>"><?php echo $mirrors['name'][$i]; ?></a><ul>
75 <?php while($l < $nums) { ?>
76         <li><a href="<?php echo $mirrors['url'][$i]; ?><?php echo $files[$l]; ?>"><?php echo $files[$l]; ?></a></li>
77 <?php ++$l; } ?>
78 </ul></li></ul>
79 <?php ++$i; } ?>
80 <div class="copyright">Powered by <a href="http://ja.gamemaker2k.org/" title="iDB Al 0.4.7 SVN 753" onclick="window.open(this.href);return false;">iDB VerCheck</a> &copy; <a href="http://ja.gamemaker2k.org/support/category.php?act=view&amp;id=2" title="Game Maker 2k" onclick="window.open(this.href);return false;">Game Maker 2k</a> @ 2004 - 2011</div>
81 </body>
82 </html>
83 <?php } ?>