From ed24a5b8cb15aa42fc9ce89cc421014ff8c9ff21 Mon Sep 17 00:00:00 2001 From: LX1IQ Date: Wed, 20 Dec 2017 11:24:38 +0100 Subject: [PATCH] v2.3.8 put back the support for a second config file in the root, removed by mistake. 73, Luc --- dashboard/pgs/config.inc.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/dashboard/pgs/config.inc.php b/dashboard/pgs/config.inc.php index 2c69ed5..6c8e513 100755 --- a/dashboard/pgs/config.inc.php +++ b/dashboard/pgs/config.inc.php @@ -15,7 +15,7 @@ $CallingHome = array(); $PageOptions = array(); $VNStat = array(); -$PageOptions['ContactEmail'] = 'your_mail'; // Support E-Mail address +$PageOptions['ContactEmail'] = 'your_email'; // Support E-Mail address $PageOptions['DashboardVersion'] = '2.3.8'; // Dashboard Version @@ -68,4 +68,14 @@ $VNStat['Interfaces'][0]['Name'] = 'eth0'; $VNStat['Interfaces'][0]['Address'] = 'eth0'; $VNStat['Binary'] = '/usr/bin/vnstat'; +/* + include an extra config file for people who dont like to mess with shipped config.ing.php + this makes updating dashboard from git a little bit easier +*/ + + if (file_exists("../config.inc.php")) { + include ("../config.inc.php"); + } + + ?>