forked from doio/WebTSS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
45 lines (39 loc) · 1.3 KB
/
config.php
File metadata and controls
45 lines (39 loc) · 1.3 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
<?php
require_once('functions.php');
$ismac = contains("darwin", php_uname('s'));
$islinux = contains("linux", php_uname('s'));
$aGlobalConfig = array
(
"tssbinary" => $ismac ? "tsschecker_latest_macos" : "tsschecker_latest_linux",
"interface" => array
(
"appURL" => "http://virulent.pw/webtss", // Full url to WebTSS, no trailing slash or space.
"theme" => "default" // Bootstrap theme for interfaces. Themes are in /css with the naming scheme "*.bootstrap.min.css".
),
"cron" => array
(
"enableWebAccess" => True // Allow cron triggering through the url.
),
"recaptcha" => array
(
// Get it from here: https://www.google.com/recaptcha/intro/index.html
"enabled" => False,
"siteKey" => "",
"secretKey" => ""
),
"database" => array
(
"host" => "127.0.0.1", // use an actual IP address instead of localhost to stop it from using a socket
"port" => "3306",
"username" => "<DB USERNAME>",
"password" => "<DB PASSWORD>",
"database" => "webtss"
)
);
// Configuration pre-processing.
// Don't touch this.
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
if(!file_exists(dirname(__FILE__).'/css/'.$aGlobalConfig['interface']['theme'].'.bootstrap.min.css')) { die("The theme '".$aGlobalConfig['interface']['theme']."' does not exist."); }
?>