OSDN Git Service

Add files via upload
[idb/iDB-Extras.git.git] / webinstaller-svn / webinstall.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 2004-2010 iDB Support - https://idb.osdn.jp/support/category.php?act=view&id=1
12     Copyright 2004-2010 Game Maker 2k - https://idb.osdn.jp/support/category.php?act=view&id=2
13
14     $FileInfo: webinstall.php - Last Update: 09/24/2010 Ver 3.0 - Author: cooldude2k $
15 */
16 @ob_start();
17 // HTTP Download Info
18 $HTTPURL = "http://intdb.svn.sourceforge.net/viewvc/intdb/trunk/?view=tar";
19 // File Name Info for both FTP and HTTP
20 $TARGZFILE = "iDB.tar.gz";
21 $TARFILE = "iDB.tar";
22 require_once("./untar.php");
23 $mydir = addslashes(str_replace("\\","/",dirname(__FILE__)."/"));
24 $tarhandle = fopen("./".$TARGZFILE, "a+");
25 fwrite($tarhandle,file_get_contents($HTTPURL));
26 fclose($tarhandle);
27 chmod("./".$TARGZFILE,0777);
28 gunzip("./".$TARGZFILE,"./".$TARFILE);
29 unlink("./".$TARGZFILE);
30 unlink("./LICENSE");
31 untar("./".$TARFILE,"./");
32 unlink("./".$TARFILE);
33 unlink("./untar.php");
34 unlink("./webinstall.php");
35 header("Location: ./install.php");
36 ?>