forked from emoncms/emoncms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprocess_settings.php
More file actions
33 lines (28 loc) · 962 Bytes
/
process_settings.php
File metadata and controls
33 lines (28 loc) · 962 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
/*
All Emoncms code is released under the GNU Affero General Public License.
See COPYRIGHT.txt and LICENSE.txt.
---------------------------------------------------------------------
Emoncms - open source energy visualisation
Part of the OpenEnergyMonitor project:
http://openenergymonitor.org
*/
// no direct access
defined('EMONCMS_EXEC') or die('Restricted access');
// Check if settings.php file exists
if(file_exists(dirname(__FILE__)."/settings.php"))
{
// Load settigs.php
require_once('settings.php');
// Set display errors
if (isset($display_errors) && ($display_errors)) {
error_reporting(E_ALL);
ini_set('display_errors', 'on');
}
}
else
{
echo 'Copy and modify default.settings.php to settings.php<br>';
echo 'For more information about configure settings.php file go to <a href="http://emoncms.org">http://emoncms.org</a>';
die;
}