forked from weah/Raspcontrol
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.php
More file actions
30 lines (27 loc) · 803 Bytes
/
config.php
File metadata and controls
30 lines (27 loc) · 803 Bytes
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
<?php
/*
* To enable URL rewriting, please set the $rewriting variable on 'true'
*
* Ensure you have done every other steps described on
* https://github.com/Bioshox/Raspcontrol/wiki/Enable-URL-Rewriting#configure-your-web-server
*/
$rewriting = false;
/*
* Do NOT change the following lines
*/
error_reporting(0);
define('INDEX', './');
define('LOGIN', 'login.php');
define('FILE_PASS', '/etc/raspcontrol/database.aptmnt');
if ($rewriting) {
define('LOGOUT', './logout');
define('DETAILS', './details');
define('SERVICES', './services');
define('DISKS', './disks');
} else {
define('LOGOUT', './login.php?logout');
define('DETAILS', './?page=details');
define('SERVICES', './?page=services');
define('DISKS', './?page=disks');
}
?>