-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbbb_config.php
More file actions
58 lines (58 loc) · 1.72 KB
/
Copy pathbbb_config.php
File metadata and controls
58 lines (58 loc) · 1.72 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
<?php
//********************************************************************
//* Description: Configuration file for bbbadmin
//* Author: Automatix <github@unattended.ch>
//* Created at: Tue Aug 31 14:15:10 UTC 2021
//*
//* Copyright (c) 2021 Automatix All rights reserved.
//*
//********************************************************************
global $cfg;
$cfg = LoadConfigFile();
$language = $cfg->language;
$debug = $cfg->debug;
$bbburl = '';
$bbbsalt = '';
//
// Load BBB values from Apache environment variable
// For every server you must define Apache environment variable BBB_SECRET1 and BBB_SERVER1_BASE_URL
// Replace 1 with the index in äserver
//
if ($serverid == '1')
{
if ($cfg->setenv == '1')
{
apache_setenv('BBB_SECRET', apache_getenv('BBB_SECRET1'));
apache_setenv('BBB_SERVER_BASE_URL', apache_getenv('BBB_SERVER1_BASE_URL'));
}
else
{
$bbburl = ServerUrl($serverid);
$bbbsalt = ServerSalt($serverid);
}
$sel1 = 'selected';
$sel2 = '';
}
else
{
if ($cfg->setenv == '1')
{
apache_setenv('BBB_SECRET', apache_getenv('BBB_SECRET2'));
apache_setenv('BBB_SERVER_BASE_URL', apache_getenv('BBB_SERVER2_BASE_URL'));
}
else
{
$bbburl = ServerUrl($serverid);
$bbbsalt = ServerSalt($serverid);
}
$sel1 = '';
$sel2 = 'selected';
}
$servername = ServerName($serverid);
if ($cfg->debug !== '0')
{
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
ini_set("display_errors", 1);
}
date_default_timezone_set('UTC');
?>