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
33 lines (29 loc) · 788 Bytes
/
config.php
File metadata and controls
33 lines (29 loc) · 788 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
31
32
33
<?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');
if ($rewriting) {
define('LOGOUT', './logout');
define('DETAILS', './details');
define('SERVICES', './services');
define('DISKS', './disks');
define('ME', './me');
}
else {
define('LOGOUT', './login.php?logout');
define('DETAILS', './?page=details');
define('SERVICES', './?page=services');
define('DISKS', './?page=disks');
define('ME', './?page=me');
}
?>