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 - 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
14 $FileInfo: webinstall.php - Last Update: 09/24/2010 Ver 3.0 - Author: cooldude2k $
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";
22 require_once("./untar.php");
23 $mydir = addslashes(str_replace("\\","/",dirname(__FILE__)."/"));
24 $tarhandle = fopen("./".$TARGZFILE, "a+");
25 fwrite($tarhandle,file_get_contents($HTTPURL));
27 chmod("./".$TARGZFILE,0777);
28 gunzip("./".$TARGZFILE,"./".$TARFILE);
29 unlink("./".$TARGZFILE);
31 untar("./".$TARFILE,"./");
32 unlink("./".$TARFILE);
33 unlink("./untar.php");
34 unlink("./webinstall.php");
35 header("Location: ./install.php");