-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinc-env.php
More file actions
99 lines (78 loc) · 3.46 KB
/
inc-env.php
File metadata and controls
99 lines (78 loc) · 3.46 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?php
//?commandline=grant&p1=67c48dfb112f78-85899685
define("ENABLEGET", "TRUE"); // useful for debugging
define("RELEASEDIRSUFFIX", ""); // e.g. the JS folder should be renamed with this suffix to prevent cashing issues when deploying updates
define("MINIFIED", "FALSE"); // can be TRUE or FALSE, to use the minified versions vs the unminified
// environment constants
define("APPNAME", "CyborgShell");
define("VERSION", "v1.0");
define("BUILD", "Build 20251027");
define("AUTHOR", "By PrimalNinja 2025");
define("PASSWORDMINIMUMLENGTH", 8);
define("JSONVERSION", 1); // the current user file JSON version
define("HELP_DIRNAME", "help"); // help files go in here
define("LANGUAGE_DIRNAME", "languages");// langauge files go in here
define("SYSTEM_DIRNAME", "system"); // system files go in here
define("USERS_DIRNAME", "users"); // this is where user data is stored
define("DEMO_USERKEY", "demo"); // the demo user key
define("PUBLIC_USERKEY", "public"); // the public user key
define("DEMO_DIRNAME", "demo"); // user demo dirs are below here
define("HOME_DIRNAME", "home"); // user home dirs are below here
define("PUBLIC_DIRNAME", "public"); // this is the public home dir
define("DEMO_SPACENAME", "demo"); // this is the name of the demo space
define("HOME_SPACENAME", "home"); // this is the name of the public space
define("PUBLIC_SPACENAME", "public"); // this is the name of the public space
define("ENABLEIPADDRESSES", "FALSE"); // can be TRUE or FALSE, to enable IP address collection for the user's benefit
define("ENABLEAGENTS", "FALSE"); // can be TRUE or FALSE, to enable Agent collection for the user's benefit
$g_strMinifiedSuffix = "";
if (MINIFIED == "TRUE")
{
$g_strMinifiedSuffix = ".min";
}
//$strDataRoot = '/home/cyborgshell/cyborgshell'; // server deploy
$strDataRoot = __DIR__; // dev
error_reporting(0);
error_reporting(E_ALL); // enable for debug
$g_arrValidLanguages = ["arabic", "chinese", "chineset", "czech", "dutch", "english", "french", "german", "greek", "hausa",
"hebrew", "hindi", "igbo", "italian", "japanese", "javanese", "klingon", "korean", "persian", "polish",
"portuguese", "romanian", "russian", "spanish", "swahili", "swedish", "tagalog", "thai",
"turkish", "vietnamese", "yoruba"];
$g_arrRTLLanguages = ["arabic", "hebrew", "persian"];
// ensure directories exist
$g_strServerSystemDir = $strDataRoot . '/' . SYSTEM_DIRNAME . '/';
$g_strServerLanguageDir = $strDataRoot . '/' . LANGUAGE_DIRNAME . '/';
$g_strServerHelpDir = $strDataRoot . '/' . HELP_DIRNAME . '/';
$g_strServerUsersDir = $strDataRoot . '/' . USERS_DIRNAME . '/';
$g_strServerPublicDir = $strDataRoot . '/' . PUBLIC_DIRNAME . '/';
$g_strServerHomeDir = $strDataRoot . '/' . HOME_DIRNAME . '/';
// Ensure the system directory exists
if (!is_dir($g_strServerSystemDir))
{
mkdir($g_strServerSystemDir);
}
// Ensure the language directory exists
if (!is_dir($g_strServerLanguageDir))
{
mkdir($g_strServerLanguageDir);
}
// Ensure the help directory exists
if (!is_dir($g_strServerHelpDir))
{
mkdir($g_strServerHelpDir);
}
// Ensure the users directory exists
if (!is_dir($g_strServerUsersDir))
{
mkdir($g_strServerUsersDir);
}
// Ensure the public directory exists
if (!is_dir($g_strServerPublicDir))
{
mkdir($g_strServerPublicDir);
}
// Ensure the home directory exists
if (!is_dir($g_strServerHomeDir))
{
mkdir($g_strServerHomeDir);
}
?>