-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathlaunch.php
48 lines (41 loc) · 1.87 KB
/
launch.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/* ====================================================================
*
* PHP Setup Wizard
* by Thorsteinn
* April 2010
*
* -= LAUNCH INSTALLER =-
*
* ---------------------------------------------------------------
* WHAT DOES THIS CODE DO?
* ---------------------------------------------------------------
* Put this code in the "index.php" of your personal script to
* launch the installer. Make sure you have edited configuration
* and mask files before running the installation
*
* Get more information about these files and configuration in the
* documentation that came with the installer.
*
* The constants below start with INST_ to prevent collision with
* your own constants or the framework you are using.
*
*
* ---------------------------------------------------------------
* DEFINE INSTALLATION CONSTANTS
* ---------------------------------------------------------------
* INST_RUNSCRIPT - Get the name of the executing script
* INST_BASEDIR - The path to the directory of THIS file
* INST_RUNFOLDER - The folder that will contain the actual installer
* INST_RUNINSTALL - The installer script to launch
*/
define('INST_RUNSCRIPT', pathinfo(__FILE__, PATHINFO_BASENAME));
define('INST_BASEDIR', str_replace(INST_RUNSCRIPT, '', __FILE__));
define('INST_RUNFOLDER', 'installer/');
define('INST_RUNINSTALL', 'installer.php');
if (is_dir(INST_BASEDIR.INST_RUNFOLDER) &&
is_readable(INST_BASEDIR.INST_RUNFOLDER.INST_RUNINSTALL))
require(INST_BASEDIR.INST_RUNFOLDER.INST_RUNINSTALL);
/* ================================================================= */
?>
<h1>Your PHP script starts here!</h1>