mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
(legacy) fix check on $savemsg and $input_errors
This commit is contained in:
parent
19181b27da
commit
ba800ae6c8
@ -90,7 +90,7 @@ include("head.inc");
|
||||
<div class="row">
|
||||
<section class="col-xs-12">
|
||||
|
||||
<?php if ($savemsg) print_info_box($savemsg); ?>
|
||||
<?php if (isset($savemsg)) print_info_box($savemsg); ?>
|
||||
|
||||
<?PHP if ($carp_detected_problems) print_info_box(gettext("CARP has detected a problem and this unit has been demoted to BACKUP status.") . "<br />" . gettext("Check link status on all interfaces with configured CARP VIPs.")); ?>
|
||||
|
||||
|
||||
@ -64,14 +64,14 @@ include("head.inc");
|
||||
|
||||
<?php include("fbegin.inc"); ?>
|
||||
|
||||
<?php if ($savemsg) print_info_box($savemsg);?>
|
||||
<?php if (isset($savemsg)) print_info_box($savemsg);?>
|
||||
|
||||
<form id="iform" name="iform" action="<?php echo $_SERVER['REQUEST_URI'];?>" method="post">
|
||||
<section class="page-content-main">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors);?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors);?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
<div class="content-box">
|
||||
|
||||
@ -574,7 +574,7 @@ function backuparea_change(obj) {
|
||||
</script>
|
||||
|
||||
|
||||
<?php if ($savemsg) print_info_box($savemsg); ?>
|
||||
<?php if (isset($savemsg)) print_info_box($savemsg); ?>
|
||||
<?php if (is_subsystem_dirty('restore')): ?><br/>
|
||||
<form action="reboot.php" method="post">
|
||||
<input name="Submit" type="hidden" value="Yes" />
|
||||
@ -588,7 +588,7 @@ function backuparea_change(obj) {
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<?php if ($input_messages) print_info_box($input_messages); ?>
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -175,7 +175,7 @@ include("head.inc"); ?>
|
||||
<section class="col-xs-12">
|
||||
<div class="content-box">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<header class="content-box-head container-fluid">
|
||||
<h3><?=gettext("Resolve DNS hostname or IP");?></h3>
|
||||
|
||||
@ -157,7 +157,7 @@ foreach ($unused_disks as $disk) {
|
||||
<div class="row">
|
||||
<?
|
||||
|
||||
if ($input_errors)
|
||||
if (isset($input_errors))
|
||||
print_input_errors($input_errors);
|
||||
if ($_GET["error"] && ($_GET["error"] != 0))
|
||||
print_info_box(gettext("There was an error performing the chosen mirror operation. Check the System Log for details."));
|
||||
|
||||
@ -80,7 +80,7 @@ $status = ipsec_smp_dump_status();
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -44,7 +44,7 @@ $mobile = ipsec_dump_mobile();
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -46,7 +46,7 @@ $sad = ipsec_dump_sad();
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -45,7 +45,7 @@ $spd = ipsec_dump_spd();
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -84,7 +84,7 @@ include("head.inc");
|
||||
print_info_box($savemsg);
|
||||
echo "</div>";
|
||||
}
|
||||
if ($input_errors)
|
||||
if (isset($input_errors))
|
||||
print_input_errors($input_errors);
|
||||
?>
|
||||
|
||||
|
||||
@ -66,7 +66,7 @@ include("head.inc");
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -54,7 +54,7 @@ include("head.inc");
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -56,7 +56,7 @@ include("head.inc");
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -122,7 +122,7 @@ include("head.inc");
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -85,7 +85,7 @@ include("head.inc");
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -182,7 +182,7 @@ include("head.inc"); ?>
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -68,7 +68,7 @@ include("head.inc");
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -58,7 +58,7 @@ include("head.inc");
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -55,7 +55,7 @@ include("head.inc");
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -57,7 +57,7 @@ include("head.inc");
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -54,7 +54,7 @@ include("head.inc");
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -56,7 +56,7 @@ include("head.inc");
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -68,7 +68,7 @@ include("head.inc");
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -54,7 +54,7 @@ include("head.inc");
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -245,8 +245,8 @@ function check_everything() {
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if ($savemsg) print_info_box($savemsg); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($savemsg)) print_info_box($savemsg); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -110,7 +110,7 @@ include("head.inc");
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -56,7 +56,7 @@ include("head.inc");
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -220,7 +220,7 @@ include("fbegin.inc");
|
||||
<section class="col-xs-12">
|
||||
<div class="content-box">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<header class="content-box-head container-fluid">
|
||||
<h3><?=gettext("Packet capture");?></h3>
|
||||
|
||||
@ -79,7 +79,7 @@ jQuery(document).ready(function() {setTimeout('getpfinfo()', 5000);});
|
||||
print_info_box($savemsg);
|
||||
echo "</div>";
|
||||
}
|
||||
if ($input_errors)
|
||||
if (isset($input_errors))
|
||||
print_input_errors($input_errors);
|
||||
?>
|
||||
|
||||
|
||||
@ -77,7 +77,7 @@ include("head.inc"); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<div class="content-box">
|
||||
|
||||
|
||||
@ -35,13 +35,13 @@ if ($_POST) {
|
||||
$savemsg = "";
|
||||
if ($_POST['statetable']) {
|
||||
filter_flush_state_table();
|
||||
if ($savemsg)
|
||||
if (isset($savemsg))
|
||||
$savemsg .= " ";
|
||||
$savemsg .= gettext("The state table has been flushed successfully.");
|
||||
}
|
||||
if ($_POST['sourcetracking']) {
|
||||
mwexec("/sbin/pfctl -F Sources");
|
||||
if ($savemsg)
|
||||
if (isset($savemsg))
|
||||
$savemsg .= " <br />";
|
||||
$savemsg .= gettext("The source tracking table has been flushed successfully.");
|
||||
}
|
||||
@ -77,8 +77,8 @@ include("head.inc");
|
||||
<div class="tab-pane active" id="system">
|
||||
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if ($savemsg) print_info_box($savemsg); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($savemsg)) print_info_box($savemsg); ?>
|
||||
|
||||
|
||||
<form action="<?=$_SERVER['REQUEST_URI'];?>" method="post">
|
||||
|
||||
@ -153,7 +153,7 @@ include('head.inc');
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<div class="content-box">
|
||||
|
||||
|
||||
@ -194,7 +194,7 @@ switch($action) {
|
||||
}
|
||||
}
|
||||
// Was the config changed? if so , print the message
|
||||
if ($savemsg) print_info_box($savemsg);
|
||||
if (isset($savemsg)) print_info_box($savemsg);
|
||||
// Get users email from the xml file
|
||||
$pconfig['smartmonemail'] = $config['system']['smartmonemail'];
|
||||
|
||||
@ -276,7 +276,7 @@ switch($action) {
|
||||
|
||||
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<div class="content-box">
|
||||
|
||||
|
||||
@ -53,7 +53,7 @@ $showAllOption = $showAll ? "" : "?showAll";
|
||||
<p>For explanation about the meaning of the information listed for each socket click <a href="#about">here</a>.</p>
|
||||
<p><input type="button" class="btn btn-default" value="<?=$showAllText?>" onclick="window.location.href='diag_sockets.php<?=$showAllOption?>'"/><br/>To show information about both listening and connected sockets click this.</p>
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
@ -78,7 +78,7 @@ include("head.inc");
|
||||
print_info_box($savemsg);
|
||||
echo "</div>";
|
||||
}
|
||||
if ($input_errors)
|
||||
if (isset($input_errors))
|
||||
print_input_errors($input_errors);
|
||||
?>
|
||||
|
||||
|
||||
@ -170,7 +170,7 @@ if($_REQUEST['sorttype'] && in_array($_REQUEST['sorttype'], $sorttypes)
|
||||
print_info_box($savemsg);
|
||||
echo "</div>";
|
||||
}
|
||||
if ($input_errors)
|
||||
if (isset($input_errors))
|
||||
print_input_errors($input_errors);
|
||||
?>
|
||||
|
||||
|
||||
@ -112,7 +112,7 @@ include("head.inc");
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
<?php if ($savemsg) print_info_box($savemsg); ?>
|
||||
<?php if (isset($savemsg)) print_info_box($savemsg); ?>
|
||||
|
||||
|
||||
<select id="type" onchange="method_change(jQuery('#type').val());" name="type" class='form-control'>
|
||||
|
||||
@ -92,7 +92,7 @@ include("head.inc"); ?>
|
||||
<?php echo gettext("No data is transmitted to the remote host during this test, it will only attempt to open a connection and optionally display the data sent back from the server."); ?>
|
||||
<br /><br /><br />
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<div class="content-box">
|
||||
|
||||
|
||||
@ -85,7 +85,7 @@ if (!isset($do_traceroute)) {
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<div class="content-box">
|
||||
|
||||
|
||||
@ -63,7 +63,7 @@ include("head.inc"); ?>
|
||||
<div class="row">
|
||||
<section class="col-xs-12">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<?php if ($message) { ?>
|
||||
<br />
|
||||
|
||||
@ -163,7 +163,7 @@ $main_buttons = array(
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($savemsg) print_info_box($savemsg); ?>
|
||||
<?php if (isset($savemsg)) print_info_box($savemsg); ?>
|
||||
<?php if (is_subsystem_dirty('aliases')): ?><p>
|
||||
<?php print_info_box_np(gettext("The alias list has been changed.") . "<br />" . gettext("You must apply the changes in order for them to take effect."));?>
|
||||
<?php endif; ?>
|
||||
|
||||
@ -607,7 +607,7 @@ EOD;
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
<div id="inputerrors"></div>
|
||||
|
||||
|
||||
|
||||
@ -157,7 +157,7 @@ include("head.inc");
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
<div id="inputerrors"></div>
|
||||
|
||||
|
||||
|
||||
@ -188,7 +188,7 @@ $main_buttons = array(
|
||||
<div class="row">
|
||||
|
||||
|
||||
<?php if ($savemsg) print_info_box($savemsg); ?>
|
||||
<?php if (isset($savemsg)) print_info_box($savemsg); ?>
|
||||
<?php if (is_subsystem_dirty('natconf')): ?>
|
||||
<?php print_info_box_np(gettext("The NAT configuration has been changed") . ".<br />" . gettext("You must apply the changes in order for them to take effect."));?><br />
|
||||
<?php endif; ?>
|
||||
|
||||
@ -148,7 +148,7 @@ $main_buttons = array(
|
||||
<div class="row">
|
||||
|
||||
<?php
|
||||
if ($savemsg)
|
||||
if (isset($savemsg))
|
||||
print_info_box($savemsg);
|
||||
if (is_subsystem_dirty('natconf'))
|
||||
print_info_box_np(gettext("The NAT configuration has been changed.") .
|
||||
|
||||
@ -282,7 +282,7 @@ include("head.inc");
|
||||
<div class="row">
|
||||
|
||||
<?php
|
||||
if ($input_errors)
|
||||
if (isset($input_errors))
|
||||
print_input_errors($input_errors);
|
||||
?>
|
||||
|
||||
|
||||
@ -447,7 +447,7 @@ include("head.inc");
|
||||
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -79,7 +79,7 @@ $main_buttons = array(
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($savemsg) print_info_box($savemsg); ?>
|
||||
<?php if (isset($savemsg)) print_info_box($savemsg); ?>
|
||||
<?php if (is_subsystem_dirty('natconf')): ?>
|
||||
<?php print_info_box_np(gettext("The NAT configuration has been changed") . ".<br />" . gettext("You must apply the changes in order for them to take effect."));?><br />
|
||||
<?php endif; ?>
|
||||
|
||||
@ -145,7 +145,7 @@ include("head.inc");
|
||||
<div class="container-fluid">
|
||||
|
||||
<div class="row">
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -209,7 +209,7 @@ include("head.inc");
|
||||
<div class="row">
|
||||
|
||||
<?php
|
||||
if ($savemsg)
|
||||
if (isset($savemsg))
|
||||
print_info_box($savemsg);
|
||||
if (is_subsystem_dirty('natconf'))
|
||||
print_info_box_np(gettext("The NAT configuration has been changed.")."<br />".gettext("You must apply the changes in order for them to take effect."));
|
||||
|
||||
@ -432,7 +432,7 @@ function poolopts_change() {
|
||||
<div class="container-fluid">
|
||||
|
||||
<div class="row">
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -348,7 +348,7 @@ include("head.inc");
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($savemsg) print_info_box($savemsg); ?>
|
||||
<?php if (isset($savemsg)) print_info_box($savemsg); ?>
|
||||
<?php if (is_subsystem_dirty('filter')): ?><p>
|
||||
<?php
|
||||
if($_REQUEST['undodrag']) {
|
||||
|
||||
@ -726,7 +726,7 @@ include("head.inc");
|
||||
<div class="container-fluid">
|
||||
|
||||
<div class="row">
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -85,7 +85,7 @@ $main_buttons = array(
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($savemsg) print_info_box($savemsg); ?>
|
||||
<?php if (isset($savemsg)) print_info_box($savemsg); ?>
|
||||
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
@ -764,7 +764,7 @@ EOD;
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
<div id="inputerrors"></div>
|
||||
|
||||
|
||||
|
||||
@ -190,10 +190,10 @@ $main_buttons = array(
|
||||
<div class="row">
|
||||
|
||||
<?php
|
||||
if ($input_errors)
|
||||
if (isset($input_errors))
|
||||
print_input_errors($input_errors);
|
||||
else
|
||||
if ($savemsg)
|
||||
if (isset($savemsg))
|
||||
print_info_box($savemsg);
|
||||
else
|
||||
if (is_subsystem_dirty('vip'))
|
||||
|
||||
@ -323,7 +323,7 @@ function typesel_change() {
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
<div id="inputerrors"></div>
|
||||
|
||||
|
||||
|
||||
@ -1561,11 +1561,11 @@ $types6 = array("none" => gettext("None"), "staticv6" => gettext("Static IPv6"),
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
<?php if (is_subsystem_dirty('interfaces')): ?><p>
|
||||
<?php print_info_box_np(sprintf(gettext("The %s configuration has been changed."),$wancfg['descr'])."<p>".gettext("You must apply the changes in order for them to take effect.")."</p><p>".gettext("Don't forget to adjust the DHCP Server range if needed after applying."));?><br />
|
||||
<?php endif; ?>
|
||||
<?php if ($savemsg) print_info_box($savemsg); ?>
|
||||
<?php if (isset($savemsg)) print_info_box($savemsg); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -444,7 +444,7 @@ if(file_exists("/var/run/interface_mismatch_reboot_needed"))
|
||||
} elseif($savemsg)
|
||||
print_info_box($savemsg);
|
||||
|
||||
if ($input_errors)
|
||||
if (isset($input_errors))
|
||||
print_input_errors($input_errors);
|
||||
?>
|
||||
|
||||
|
||||
@ -93,7 +93,7 @@ $main_buttons = array(
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -261,7 +261,7 @@ function show_source_port_range() {
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
<div id="inputerrors"></div>
|
||||
|
||||
|
||||
|
||||
@ -81,7 +81,7 @@ $main_buttons = array(
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -134,7 +134,7 @@ include("head.inc");
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
<div id="inputerrors"></div>
|
||||
|
||||
|
||||
|
||||
@ -82,7 +82,7 @@ $main_buttons = array(
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -130,7 +130,7 @@ include("head.inc");
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
<div id="inputerrors"></div>
|
||||
|
||||
|
||||
|
||||
@ -233,7 +233,7 @@ function removeRow(el) {
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
<div id="inputerrors"></div>
|
||||
|
||||
|
||||
|
||||
@ -87,7 +87,7 @@ $main_buttons = array(
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -135,7 +135,7 @@ include("head.inc");
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
<div id="inputerrors"></div>
|
||||
|
||||
|
||||
|
||||
@ -83,7 +83,7 @@ $main_buttons = array(
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -400,7 +400,7 @@ $types = array("select" => gettext("Select"), "ppp" => "PPP", "pppoe" => "PPPoE"
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
<div id="inputerrors"></div>
|
||||
|
||||
|
||||
|
||||
@ -91,7 +91,7 @@ $main_buttons = array(
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -277,7 +277,7 @@ function removeRow(el) {
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
<div id="inputerrors"></div>
|
||||
|
||||
|
||||
|
||||
@ -91,7 +91,7 @@ $main_buttons = array(
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -153,7 +153,7 @@ include("head.inc");
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
<div id="inputerrors"></div>
|
||||
|
||||
|
||||
|
||||
@ -81,7 +81,7 @@ $main_buttons = array(
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -147,7 +147,7 @@ include("head.inc");
|
||||
<section class="page-content-main">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
<div id="inputerrors"></div>
|
||||
<section class="col-xs-12">
|
||||
<div class="content-box">
|
||||
|
||||
@ -90,8 +90,8 @@ $main_buttons = array(
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if ($savemsg) print_info_box($savemsg); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($savemsg)) print_info_box($savemsg); ?>
|
||||
<?php if (is_subsystem_dirty('loadbalancer')): ?><br/>
|
||||
<?php print_info_box_np(gettext("The load balancer configuration has been changed") . ".<br />" . gettext("You must apply the changes in order for them to take effect."));?><br />
|
||||
<?php endif; ?>
|
||||
|
||||
@ -220,7 +220,7 @@ $types = array("icmp" => gettext("ICMP"), "tcp" => gettext("TCP"), "http" => get
|
||||
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -100,8 +100,8 @@ $main_buttons = array(
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if ($savemsg) print_info_box($savemsg); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($savemsg)) print_info_box($savemsg); ?>
|
||||
|
||||
<?php if (is_subsystem_dirty('loadbalancer')): ?><br/>
|
||||
<?php print_info_box_np(sprintf(gettext("The load balancer configuration has been changed%sYou must apply the changes in order for them to take effect."), "<br />"));?><br />
|
||||
|
||||
@ -184,7 +184,7 @@ include("head.inc");
|
||||
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -104,8 +104,8 @@ include("head.inc");
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if ($savemsg) print_info_box($savemsg); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($savemsg)) print_info_box($savemsg); ?>
|
||||
<?php if (is_subsystem_dirty('loadbalancer')): ?><p>
|
||||
<?php print_info_box_np(gettext("The load balancer configuration has been changed.<br />You must apply the changes in order for them to take effect."));?><br />
|
||||
<?php endif; ?>
|
||||
|
||||
@ -395,7 +395,7 @@ jQuery(document).ready(function() {
|
||||
<div class="container-fluid">
|
||||
|
||||
<div class="row">
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -99,8 +99,8 @@ include("head.inc");
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if ($savemsg) print_info_box($savemsg); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($savemsg)) print_info_box($savemsg); ?>
|
||||
<?php if (is_subsystem_dirty('loadbalancer')): ?><p>
|
||||
<?php print_info_box_np(gettext("The load balancer configuration has been changed") . ".<br />" . gettext("You must apply the changes in order for them to take effect."));?><br />
|
||||
<?php endif; ?>
|
||||
|
||||
@ -179,7 +179,7 @@ jQuery(document).ready(function(){
|
||||
<div class="container-fluid">
|
||||
|
||||
<div class="row">
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -95,8 +95,8 @@ include("head.inc");
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if ($savemsg) print_info_box($savemsg); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($savemsg)) print_info_box($savemsg); ?>
|
||||
<?php if (is_subsystem_dirty('loadbalancer')): ?><br/>
|
||||
<?php print_info_box_np(gettext("The load balancer configuration has been changed") . ".<br />" . gettext("You must apply the changes in order for them to take effect."));?><br />
|
||||
<?php endif; ?>
|
||||
|
||||
@ -100,8 +100,8 @@ $main_buttons = array(
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if ($savemsg) print_info_box($savemsg); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($savemsg)) print_info_box($savemsg); ?>
|
||||
<?php if (is_subsystem_dirty('loadbalancer')): ?><br/>
|
||||
<?php print_info_box_np(gettext("The virtual server configuration has been changed") . ".<br />" . gettext("You must apply the changes in order for them to take effect."));?><br />
|
||||
<?php endif; ?>
|
||||
|
||||
@ -150,7 +150,7 @@ include("head.inc");
|
||||
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -479,8 +479,8 @@ function enable_change(enable_change) {
|
||||
<div class="row">
|
||||
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if ($savemsg) print_info_box($savemsg); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($savemsg)) print_info_box($savemsg); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -142,7 +142,7 @@ $main_buttons = array(
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) {
|
||||
<?php if (isset($input_errors)) {
|
||||
print_input_errors($input_errors);
|
||||
} ?>
|
||||
|
||||
|
||||
@ -78,7 +78,7 @@ $main_buttons = array(
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($savemsg) {
|
||||
<?php if (isset($savemsg)) {
|
||||
print_info_box($savemsg);
|
||||
} ?>
|
||||
|
||||
|
||||
@ -173,7 +173,7 @@ include("head.inc");
|
||||
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) {
|
||||
<?php if (isset($input_errors)) {
|
||||
print_input_errors($input_errors);
|
||||
} ?>
|
||||
|
||||
|
||||
@ -136,7 +136,7 @@ $main_buttons = array(
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($savemsg) {
|
||||
<?php if (isset($savemsg)) {
|
||||
print_info_box($savemsg);
|
||||
} ?>
|
||||
<?php if (is_subsystem_dirty('passthrumac')) :
|
||||
|
||||
@ -179,7 +179,7 @@ include("head.inc");
|
||||
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) {
|
||||
<?php if (isset($input_errors)) {
|
||||
print_input_errors($input_errors);
|
||||
} ?>
|
||||
|
||||
|
||||
@ -353,10 +353,10 @@ function enable_change(enable_change) {
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) {
|
||||
<?php if (isset($input_errors)) {
|
||||
print_input_errors($input_errors);
|
||||
} ?>
|
||||
<?php if ($savemsg) {
|
||||
<?php if (isset($savemsg)) {
|
||||
print_info_box($savemsg);
|
||||
} ?>
|
||||
|
||||
|
||||
@ -171,10 +171,10 @@ include("head.inc");
|
||||
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) {
|
||||
<?php if (isset($input_errors)) {
|
||||
print_input_errors($input_errors);
|
||||
} ?>
|
||||
<?php if ($savemsg) {
|
||||
<?php if (isset($savemsg)) {
|
||||
print_info_box($savemsg);
|
||||
} ?>
|
||||
|
||||
|
||||
@ -71,7 +71,7 @@ $main_buttons = array(
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($savemsg) {
|
||||
<?php if (isset($savemsg)) {
|
||||
print_info_box($savemsg);
|
||||
} ?>
|
||||
<?php if (is_subsystem_dirty('captiveportal')) :
|
||||
|
||||
@ -83,7 +83,7 @@ include("head.inc");
|
||||
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) {
|
||||
<?php if (isset($input_errors)) {
|
||||
print_input_errors($input_errors);
|
||||
} ?>
|
||||
|
||||
|
||||
@ -679,8 +679,8 @@ include("head.inc");
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if ($savemsg) print_info_box($savemsg); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($savemsg)) print_info_box($savemsg); ?>
|
||||
<?php if (is_subsystem_dirty('staticmaps')): ?><br/>
|
||||
<?php print_info_box_np(gettext("The static mapping configuration has been changed") . ".<br />" . gettext("You must apply the changes in order for them to take effect."));?><br />
|
||||
<?php endif; ?>
|
||||
|
||||
@ -345,7 +345,7 @@ include("head.inc");
|
||||
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
@ -119,8 +119,8 @@ function enable_change(enable_over) {
|
||||
|
||||
<div class="row">
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if ($savemsg) print_info_box($savemsg); ?>
|
||||
<?php if (isset($input_errors)) print_input_errors($input_errors); ?>
|
||||
<?php if (isset($savemsg)) print_info_box($savemsg); ?>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user