forked from cluries/Tw2other
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.php
More file actions
executable file
·35 lines (25 loc) · 897 Bytes
/
install.php
File metadata and controls
executable file
·35 lines (25 loc) · 897 Bytes
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
<?php
/**
* *********************************************************
*
* @author cluries
* @link http://cdbit.com
* @version 1.0
* @copyright 2012 http://cdbit.com All rights reserved
*
* *********************************************************
*/
define ( 'START_TIME', microtime ( true ) );
define ( 'BASE_PATH', dirname ( __FILE__ ) );
define ( 'DEBUG', true );
session_start ();
include BASE_PATH . '/config/config.inc.php';
include BASE_PATH . '/modules/init/bootstarp.php';
//display('Error Processing Request',0);
//trigger_error("error_msg");
//throw new Exception("Error Processing Request", 1);
$action = getVar ( 'action', 'default' );
$actionFile = "/modules/install/{$action}Action.php";
$actionVerify = '/^[a-zA-Z0-9]+$/';
preg_match ( $actionVerify, $action ) && ttimport ( $actionFile ) || display ( _er ( 'E_404' ), 0 );
?>