mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 01:26:11 -08:00
roll back timezone setting
Why try to fix a faulty configuration instead of correcting the error. In a future FAQ I will address the issue
This commit is contained in:
@@ -14,7 +14,6 @@ DB_PATH = PIALERT_PATH + '/db/pialert.db'
|
|||||||
LOG_PATH = PIALERT_PATH + '/log'
|
LOG_PATH = PIALERT_PATH + '/log'
|
||||||
VENDORS_DB = '/usr/share/arp-scan/ieee-oui.txt'
|
VENDORS_DB = '/usr/share/arp-scan/ieee-oui.txt'
|
||||||
PRINT_LOG = False
|
PRINT_LOG = False
|
||||||
TIMEZONE = 'Europe/Berlin'
|
|
||||||
PIALERT_WEB_PROTECTION = False
|
PIALERT_WEB_PROTECTION = False
|
||||||
PIALERT_WEB_PASSWORD = '8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92'
|
PIALERT_WEB_PASSWORD = '8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92'
|
||||||
|
|
||||||
|
|||||||
@@ -8,20 +8,6 @@
|
|||||||
#--------------------------------------------------------------------------- -->
|
#--------------------------------------------------------------------------- -->
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
// ###################################
|
|
||||||
// ## TimeZone processing start
|
|
||||||
// ###################################
|
|
||||||
$config_file = "../config/pialert.conf";
|
|
||||||
$config_file_lines = file($config_file);
|
|
||||||
$config_file_lines_timezone = array_values(preg_grep('/^TIMEZONE\s.*/', $config_file_lines));
|
|
||||||
$timezone_line = explode("'", $config_file_lines_timezone[0]);
|
|
||||||
$Pia_TimeZone = $timezone_line[1];
|
|
||||||
date_default_timezone_set($Pia_TimeZone);
|
|
||||||
// ###################################
|
|
||||||
// ## TimeZone processing end
|
|
||||||
// ###################################
|
|
||||||
|
|
||||||
|
|
||||||
// ###################################
|
// ###################################
|
||||||
// ## GUI settings processing start
|
// ## GUI settings processing start
|
||||||
// ###################################
|
// ###################################
|
||||||
@@ -233,6 +219,10 @@ function show_pia_servertime() {
|
|||||||
<a href="maintenance.php"><i class="fa fa-cog"></i> <span><?php echo $pia_lang['Navigation_Maintenance'];?></span></a>
|
<a href="maintenance.php"><i class="fa fa-cog"></i> <span><?php echo $pia_lang['Navigation_Maintenance'];?></span></a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li class=" <?php if (in_array (basename($_SERVER['SCRIPT_NAME']), array('help_faq.php') ) ){ echo 'active'; } ?>">
|
||||||
|
<a href="help_faq.php"><i class="fa fa-question"></i> <span><?php echo $pia_lang['Navigation_HelpFAQ'];?></span></a>
|
||||||
|
</li>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
<li class="treeview">
|
<li class="treeview">
|
||||||
<a href="#"><i class="fa fa-link"></i> <span>Config</span>
|
<a href="#"><i class="fa fa-link"></i> <span>Config</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user