-
Notifications
You must be signed in to change notification settings - Fork 0
/
SkyMakeConfiguration.php.template
executable file
·71 lines (65 loc) · 2.77 KB
/
SkyMakeConfiguration.php.template
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
<?php
/*
* SkyMake 4 Configuration File
* This file contains settings for the installation
* other than the database settings.
* Here is a template for this file.
* Please setup your LiveClass server and MultiConf
* If you don't mind using public jitsi meet servers
* You don't need to change the url.
* After configuration is over,
* Please rename this file to "SkyMakeConfiguration.php"
* (Remove .template extension from the end.)
*/
define("SkyMakeOnConfigConnect", "CONFCONNOK");
$skymakeconfig = array();
//begin editing for your own settings
/*
//Uncomment this if you want to use the install with a single domain.
define("ALLOW_MULTICONF",false);
$skymakeconfig["default"]["sflc_host"] = "meet.jit.si";
*/
/*
//Uncomment this if you want to use multidb
//Note: Comment the default part before doing this
//Note: Replace parts between ### with your own data.
define("ALLOW_MULTICONF",true);
//Replace the following part with this when you enable multidb
$dbconfig["###yourmaindomainwithouttldordot###"]["sflc_host"] = "###meetserver###";
Copy this template for every multidb subdomin
$dbconfig["###yoursubdomain###"]["sflc_host"] = "###meetserver###";
*/
//stop editing
if(!defined("ALLOW_MULTICONF")){
include_once(__DIR__."/../SkyMakeFunctionSet/Mission-Critical-Functions/SMC.php");
SMC::displayCrash("There is a problem with this install. It is configured improperly. Please check your configuration. ERROR_CODE: MULTICONF_NO_CONF","Failed to Load this SkyMake Namespace","There was a issue in the SkyMake Configuration file.");
die();
}
if(ALLOW_MULTICONF){
$url = $_SERVER["HTTP_HOST"];
$parsedUrl = parse_url($url);
$host = explode('.', $parsedUrl['host']);
$subdomain = $host[0];
if(isset($skymakeconfig[$subdomain]["sflc_host"])){
define("SFLC_HOST",$skymakeconfig[$subdomain]["sflc_host"]);
} else {
include_once(__DIR__."/../SkyMakeFunctionSet/Mission-Critical-Functions/SMC.php");
SMC::displayCrash("There is a problem with this Namespace. It either does not exist or configured improperly. Please check your configuration. ERROR_CODE: MULTIDB_UNKNOWN_DOMAIN","Failed to Load this Namespace","There was a issue in the SkyMake Configuration file.");
die();
}
} else {
define("SFLC_HOST", $skymakeconfig["default"]["sflc_host"]);
}
// That's all. Now stop.
include "SkyMakeFunctionSet/includes.php";
include "SkyfallenCodeLib/UpdatesConsoleConnector.php";
define("UPDATES_PROVIDER_URL","https://swupdate.theskyfallen.com");
define("UPDATES_PROVIDER_APP_ID","541a2fb0429491f158f100ce7dcb0b86");
define("UPDATE_SEED","Stable");
if(getenv('SKYMAKE_DEVENV') == "YES"){
define("DEVENV",true);
} else {
define("DEVENV",false);
}
include_once "updater.php";
include "thisversion.php";