-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.php
49 lines (40 loc) · 1.43 KB
/
config.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
47
48
49
<?php
$nets = array("beta","test","dev");
$choosenetwork = FALSE;
if(!isset($network)) {
if(isset($_GET['network'])){
$network = $_GET['network'];
}
else
{
$network = $nets[0]; // First network in list default choice
$choosenetwork = TRUE;
}
}
define("CONFIG" , true); // Prevent crondemand loading config twice
define("CRONDEMAND" , false); // Set to true to auto-delete
define("PREFIX_PATH", $network."/");
define("META_PATH" , "meta/");
define("ALLO_PATH" , "allo/");
define("LOG_PATH" , "log/");
define("CMDLOG_PATH", "cmd/");
define("CMDLOG_NAME", "cmdlog");
define("DEBUG_PATH" , "debug/");
define("FILE_PATH" , "file/");
define("HASH_EXT" , ".hash");
define("LOG_EXT" , ".log");
define("DEBUG_EXT" , ".log");
define("NL" , "\n");
define("BLOCK_SIZE" , 65536);
define("ZCN_PATH" , "/home/admin/.zcn");
define("MIN_BLOCKS" , 10);
define("MAX_BLOCKS" , 200);
define("FLAG_AGE" , 60); // Seconds. Set to 0 to not cache
define("DEL_AGE" , 120); // Seconds. Set to 0 to not cache
if(!is_dir($network)) { mkdir($network); }
if(!is_dir(PREFIX_PATH.META_PATH)) { mkdir(PREFIX_PATH.META_PATH); }
if(!is_dir(PREFIX_PATH.ALLO_PATH)) { mkdir(PREFIX_PATH.ALLO_PATH); }
if(!is_dir(PREFIX_PATH.LOG_PATH)) { mkdir(PREFIX_PATH.LOG_PATH); }
if(!is_dir(PREFIX_PATH.CMDLOG_PATH)) { mkdir(PREFIX_PATH.CMDLOG_PATH); }
if(!is_dir(PREFIX_PATH.DEBUG_PATH)) { mkdir(PREFIX_PATH.DEBUG_PATH); }
if(!is_dir(PREFIX_PATH.FILE_PATH)) { mkdir(PREFIX_PATH.FILE_PATH); }