forked from sergejey/majordomo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php.sample
74 lines (60 loc) · 1.96 KB
/
config.php.sample
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
<?php
/**
* Project Config
*
* @package MajorDoMo
* @author Serge Dzheigalo <[email protected]> http://smartliving.ru/
* @version 1.1
*/
Define('DB_HOST', 'localhost');
Define('DB_NAME', 'db_terminal');
Define('DB_USER', 'root');
Define('DB_PASSWORD', '');
Define('DIR_TEMPLATES', "./templates/");
Define('DIR_MODULES', "./modules/");
Define('DEBUG_MODE', 1);
Define('UPDATES_REPOSITORY_NAME', 'smarthome');
Define('PROJECT_TITLE', 'MajordomoSL');
Define('PROJECT_BUGTRACK', "[email protected]");
date_default_timezone_set('UTC');
if (isset($_ENV["COMPUTERNAME"]) && $_ENV["COMPUTERNAME"])
{
Define('COMPUTER_NAME', strtolower($_ENV["COMPUTERNAME"]));
}
else
{
// Your computer name (optional)
Define('COMPUTER_NAME', 'mycomp');
}
Define('DOC_ROOT', dirname(__FILE__)); // Your htdocs location (should be detected automatically)
Define('SERVER_ROOT', '/var/www');
Define('PATH_TO_PHP', 'php');
Define('PATH_TO_MYSQLDUMP', "mysqldump");
if (isset($_ENV["S2G_BASE_URL"]) && $_ENV["S2G_BASE_URL"])
{
Define('BASE_URL', $_ENV["S2G_BASE_URL"]);
}
else
{
// Your base URL:port (!!!)
Define('BASE_URL', 'http://127.0.0.1:80');
}
Define('ROOT', DOC_ROOT."/");
Define('ROOTHTML', "/");
Define('PROJECT_DOMAIN', $_SERVER['SERVER_NAME']);
// 1-wire OWFS server
//Define('ONEWIRE_SERVER', 'tcp://localhost:8234');
/*
Define('HOME_NETWORK', '192.168.0.*'); // home network (optional)
Define('EXT_ACCESS_USERNAME', 'user'); // access details for external network (internet)
Define('EXT_ACCESS_PASSWORD', 'password');
*/
/// (Optional)
//Define('DROPBOX_SHOPPING_LIST', 'c:/data/dropbox/list.txt');
$restart_threads=array(
'cycle_execs.php',
'cycle_main.php',
'cycle_ping.php',
'cycle_scheduler.php',
'cycle_states.php',
'cycle_webvars.php');