-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.prototype.php
45 lines (39 loc) · 1.36 KB
/
config.prototype.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
<?php
/*
* Forkor Configurations
*/
if ( ! defined( 'FORKOR_HOST_HASH' ) || FORKOR_HOST_HASH !== sha1( $_SERVER['HTTP_HOST'] ) ||
in_array( basename( __FILE__ ), [ basename( $_SERVER['SCRIPT_NAME'] ), basename( $_SERVER['REQUEST_URI'] ) ], true ) ) {
// Invalid to direct access
header( 'HTTP/1.0 404 Not Found' );
exit;
}
// Database Settings
define( 'DB_DRIVER', '#%dsn_prefix%#' );
define( 'DB_NAME', '#%db_name%#' );
define( 'DB_USER', '#%db_user%#' );
define( 'DB_PASS', '#%db_pass%#' );
define( 'DB_HOST', '#%db_host%#' );
define( 'DB_CHARSET', '#%db_charset%#' );
// Register Path
define( 'REGISTER_PATH', '#%register_path%#' );
$ips_allowed_to_register = [
// IP addresses to allow; all allowed if empty
// c.f. $_SERVER['SERVER_ADDR'], '123.123.4.56', ...
'#%register_allowed_ips%#'
];
define( 'REGISTER_ALLOWED_IPS', $ips_allowed_to_register );
// Analyze Path
define( 'ANALYZE_PATH', '#%analyze_path%#' );
$ips_allowed_to_analyze = [
// IP addresses to allow; all allowed if empty
// c.f. $_SERVER['SERVER_ADDR'], '123.123.4.56', ...
'#%analyze_allowed_ips%#'
];
define( 'ANALYZE_ALLOWED_IPS', $ips_allowed_to_analyze );
// Forkor Index: Not Found if false
define( 'SHOW_INDEX', '#%show_index%#' );
// Switching Debug Mode: Defaults to false as OFF
define( 'DEBUG_MODE', false );
// Other Advanced Settings
// Not yet