mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
Maintenance
disable error reporting on maintenance.php and network.php
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
session_start();
|
session_start();
|
||||||
|
|
||||||
|
// Turn off php errors
|
||||||
|
error_reporting(0);
|
||||||
|
|
||||||
if ($_SESSION["login"] != 1)
|
if ($_SESSION["login"] != 1)
|
||||||
{
|
{
|
||||||
header('Location: index.php');
|
header('Location: index.php');
|
||||||
@@ -160,14 +163,25 @@ if (submit && isset($_POST['langselector_set'])) {
|
|||||||
}
|
}
|
||||||
if ($pia_lang_error == False) {
|
if ($pia_lang_error == False) {
|
||||||
$testlang = fopen($pia_lang_set_dir.'setting_language_'.$pia_lang_selector, 'w');
|
$testlang = fopen($pia_lang_set_dir.'setting_language_'.$pia_lang_selector, 'w');
|
||||||
$pia_lang_test = '';
|
//$pia_lang_test = '';
|
||||||
echo("<meta http-equiv='refresh' content='1'>");
|
echo("<meta http-equiv='refresh' content='1'>");
|
||||||
} else {
|
} else {
|
||||||
$pia_lang_test = '';
|
//$pia_lang_test = '';
|
||||||
echo("<meta http-equiv='refresh' content='1'>");
|
echo("<meta http-equiv='refresh' content='1'>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set Tab ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
if ($_REQUEST['tab'] == '1') {
|
||||||
|
$pia_tab_setting = 'active'; $pia_tab_tool = ''; $pia_tab_backup = '';
|
||||||
|
} elseif ($_REQUEST['tab'] == '2') {
|
||||||
|
$pia_tab_setting = ''; $pia_tab_tool = 'active'; $pia_tab_backup = '';
|
||||||
|
} elseif ($_REQUEST['tab'] == '3') {
|
||||||
|
$pia_tab_setting = ''; $pia_tab_tool = ''; $pia_tab_backup = 'active';
|
||||||
|
} else { $pia_tab_setting = 'active'; $pia_tab_tool = ''; $pia_tab_backup = '';}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -234,7 +248,7 @@ if (submit && isset($_POST['langselector_set'])) {
|
|||||||
<option value="es_es"><?php echo $pia_lang['Maintenance_lang_es_es'];?></option>
|
<option value="es_es"><?php echo $pia_lang['Maintenance_lang_es_es'];?></option>
|
||||||
</select></div>
|
</select></div>
|
||||||
<div style="display: block;"><input type="submit" name="langselector_set" value="<?php echo $pia_lang['Maintenance_lang_selector_apply'];?>" class="btn bg-green" style="width:160px;">
|
<div style="display: block;"><input type="submit" name="langselector_set" value="<?php echo $pia_lang['Maintenance_lang_selector_apply'];?>" class="btn bg-green" style="width:160px;">
|
||||||
<?php echo $pia_lang_test; ?>
|
<?php // echo $pia_lang_test; ?>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@@ -262,7 +276,7 @@ if (submit && isset($_POST['langselector_set'])) {
|
|||||||
<option value="skin-yellow">yellow</option>
|
<option value="skin-yellow">yellow</option>
|
||||||
</select></div>
|
</select></div>
|
||||||
<div style="display: block;"><input type="submit" name="skinselector_set" value="<?php echo $pia_lang['Maintenance_themeselector_apply'];?>" class="btn bg-green" style="width:160px;">
|
<div style="display: block;"><input type="submit" name="skinselector_set" value="<?php echo $pia_lang['Maintenance_themeselector_apply'];?>" class="btn bg-green" style="width:160px;">
|
||||||
<?php echo $pia_skin_test; ?>
|
<?php // echo $pia_skin_test; ?>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
session_start();
|
session_start();
|
||||||
|
|
||||||
|
// Turn off php errors
|
||||||
|
error_reporting(0);
|
||||||
|
|
||||||
if ($_SESSION["login"] != 1)
|
if ($_SESSION["login"] != 1)
|
||||||
{
|
{
|
||||||
header('Location: index.php');
|
header('Location: index.php');
|
||||||
|
|||||||
Reference in New Issue
Block a user