Commit a7e4762b authored by Ad Schellevis's avatar Ad Schellevis

(legacy) fix html errors, remove $closehead

parent 96b0b961
...@@ -196,14 +196,12 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -196,14 +196,12 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
} }
legacy_html_escape_form_data($pconfig); legacy_html_escape_form_data($pconfig);
$closehead = false;
include("head.inc"); include("head.inc");
?> ?>
<body>
<script type="text/javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
function enable_change(enable_over) { function enable_change(enable_over) {
...@@ -315,8 +313,6 @@ $(document).ready(function() { ...@@ -315,8 +313,6 @@ $(document).ready(function() {
//]]> //]]>
</script> </script>
</head>
<body>
<?php include("fbegin.inc"); ?> <?php include("fbegin.inc"); ?>
<section class="page-content-main"> <section class="page-content-main">
<div class="container-fluid"> <div class="container-fluid">
......
...@@ -38,11 +38,9 @@ $valid_test_types = array("offline", "short", "long", "conveyance"); ...@@ -38,11 +38,9 @@ $valid_test_types = array("offline", "short", "long", "conveyance");
$valid_info_types = array("i", "H", "c", "A", "a"); $valid_info_types = array("i", "H", "c", "A", "a");
$valid_log_types = array("error", "selftest"); $valid_log_types = array("error", "selftest");
$closehead = false;
include("head.inc"); include("head.inc");
?> ?>
</head>
<body> <body>
<?php <?php
......
...@@ -145,8 +145,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { ...@@ -145,8 +145,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
} }
} }
$closehead = false;
include("head.inc"); include("head.inc");
legacy_html_escape_form_data($a_nat); legacy_html_escape_form_data($a_nat);
......
...@@ -398,12 +398,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -398,12 +398,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
legacy_html_escape_form_data($pconfig); legacy_html_escape_form_data($pconfig);
$closehead = false;
include("head.inc"); include("head.inc");
?> ?>
</head>
<body> <body>
<script type="text/javascript"> <script type="text/javascript">
......
...@@ -329,12 +329,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -329,12 +329,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
legacy_html_escape_form_data($pconfig); legacy_html_escape_form_data($pconfig);
$closehead = false;
include("head.inc"); include("head.inc");
?> ?>
</head>
<body> <body>
<script type="text/javascript"> <script type="text/javascript">
$( document ).ready(function() { $( document ).ready(function() {
......
...@@ -531,12 +531,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -531,12 +531,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
legacy_html_escape_form_data($pconfig); legacy_html_escape_form_data($pconfig);
$page_filename = "firewall_rules_edit.php"; $page_filename = "firewall_rules_edit.php";
$closehead = false;
include("head.inc"); include("head.inc");
?> ?>
</head>
<body> <body>
<script type="text/javascript"> <script type="text/javascript">
......
...@@ -137,7 +137,6 @@ $pagetitle .= sprintf(' | %s.%s', $config['system']['hostname'], $config['system ...@@ -137,7 +137,6 @@ $pagetitle .= sprintf(' | %s.%s', $config['system']['hostname'], $config['system
?> ?>
<?php if (basename($_SERVER["SCRIPT_FILENAME"] != "index.php")): ?>
<script type="text/javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
$( document ).ready(function() { $( document ).ready(function() {
...@@ -234,8 +233,4 @@ $pagetitle .= sprintf(' | %s.%s', $config['system']['hostname'], $config['system ...@@ -234,8 +233,4 @@ $pagetitle .= sprintf(' | %s.%s', $config['system']['hostname'], $config['system
}); });
//]]> //]]>
</script> </script>
</head>
<?php endif; ?>
<?php if (!isset($closehead) || !$closehead):?></head><?php endif;?>
...@@ -1335,7 +1335,6 @@ foreach ($mediaopts as $mediaopt){ ...@@ -1335,7 +1335,6 @@ foreach ($mediaopts as $mediaopt){
} }
} }
$closehead = false;
include("head.inc"); include("head.inc");
?> ?>
......
...@@ -292,7 +292,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -292,7 +292,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
} }
legacy_html_escape_form_data($pconfig); legacy_html_escape_form_data($pconfig);
$closehead = false;
include("head.inc"); include("head.inc");
?> ?>
......
...@@ -536,7 +536,6 @@ if ($act == "del") { ...@@ -536,7 +536,6 @@ if ($act == "del") {
} }
$service_hook = 'dhcpd'; $service_hook = 'dhcpd';
$closehead = false;
include("head.inc"); include("head.inc");
......
...@@ -307,12 +307,12 @@ if ($_POST) { ...@@ -307,12 +307,12 @@ if ($_POST) {
} }
$service_hook = 'dhcpd'; $service_hook = 'dhcpd';
$closehead = false;
include("head.inc"); include("head.inc");
?> ?>
<body>
<script type="text/javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
function show_ddns_config() { function show_ddns_config() {
...@@ -334,9 +334,7 @@ include("head.inc"); ...@@ -334,9 +334,7 @@ include("head.inc");
} }
//]]> //]]>
</script> </script>
</head>
<body>
<?php include("fbegin.inc"); ?> <?php include("fbegin.inc"); ?>
<section class="page-content-main"> <section class="page-content-main">
......
...@@ -96,10 +96,8 @@ if ($_POST) { ...@@ -96,10 +96,8 @@ if ($_POST) {
} }
$service_hook = 'dhcrelay'; $service_hook = 'dhcrelay';
$closehead = false;
include("head.inc"); include("head.inc");
?> ?>
<body> <body>
......
...@@ -346,7 +346,6 @@ if ($_GET['act'] == "del") { ...@@ -346,7 +346,6 @@ if ($_GET['act'] == "del") {
} }
$service_hook = 'dhcpd'; $service_hook = 'dhcpd';
$closehead = false;
include("head.inc"); include("head.inc");
......
...@@ -91,7 +91,6 @@ if ($_POST) { ...@@ -91,7 +91,6 @@ if ($_POST) {
} }
$service_hook = 'dhcrelay6'; $service_hook = 'dhcrelay6';
$closehead = false;
include("head.inc"); include("head.inc");
......
...@@ -140,7 +140,6 @@ if ($_GET['act'] == "del") { ...@@ -140,7 +140,6 @@ if ($_GET['act'] == "del") {
} }
$service_hook = 'dnsmasq'; $service_hook = 'dnsmasq';
$closehead = false;
include("head.inc"); include("head.inc");
......
...@@ -149,7 +149,7 @@ if ($_POST) { ...@@ -149,7 +149,7 @@ if ($_POST) {
$savemsg = get_std_save_message(); $savemsg = get_std_save_message();
} }
$closehead = false;
$pconfig = &$config['ntpd']; $pconfig = &$config['ntpd'];
if (empty($pconfig['interface'])) { if (empty($pconfig['interface'])) {
$pconfig['interface'] = array(); $pconfig['interface'] = array();
......
...@@ -131,7 +131,6 @@ if ($_POST) { ...@@ -131,7 +131,6 @@ if ($_POST) {
$pconfig = &$config['ntpd']['gps']; $pconfig = &$config['ntpd']['gps'];
$service_hook = 'ntpd'; $service_hook = 'ntpd';
$closehead = false;
include("head.inc"); include("head.inc");
......
...@@ -153,7 +153,6 @@ if ($_POST) { ...@@ -153,7 +153,6 @@ if ($_POST) {
} }
$service_hook = 'bsnmpd'; $service_hook = 'bsnmpd';
$closehead = false;
include("head.inc"); include("head.inc");
......
...@@ -134,7 +134,6 @@ if ($_POST) { ...@@ -134,7 +134,6 @@ if ($_POST) {
} }
$service_hook = 'unbound'; $service_hook = 'unbound';
$closehead = false;
include_once("head.inc"); include_once("head.inc");
......
...@@ -157,7 +157,6 @@ if ($_POST) { ...@@ -157,7 +157,6 @@ if ($_POST) {
} }
$service_hook = 'unbound'; $service_hook = 'unbound';
$closehead = false;
include("head.inc"); include("head.inc");
......
...@@ -114,15 +114,10 @@ if ($_POST) { ...@@ -114,15 +114,10 @@ if ($_POST) {
} }
$service_hook = 'unbound'; $service_hook = 'unbound';
$closehead = false;
include_once("head.inc"); include_once("head.inc");
?> ?>
</head>
<body> <body>
<?php include("fbegin.inc"); ?> <?php include("fbegin.inc"); ?>
......
...@@ -89,7 +89,6 @@ if ($_GET['act'] == "del") { ...@@ -89,7 +89,6 @@ if ($_GET['act'] == "del") {
} }
$service_hook = 'unbound'; $service_hook = 'unbound';
$closehead = false;
include_once("head.inc"); include_once("head.inc");
......
...@@ -381,8 +381,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -381,8 +381,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
legacy_html_escape_form_data($pconfig); legacy_html_escape_form_data($pconfig);
legacy_html_escape_form_data($a_user); legacy_html_escape_form_data($a_user);
$closehead = false;
include("head.inc"); include("head.inc");
?> ?>
......
...@@ -216,7 +216,6 @@ do { ...@@ -216,7 +216,6 @@ do {
eval($pkg['step'][$stepid]['stepbeforeformdisplay']); eval($pkg['step'][$stepid]['stepbeforeformdisplay']);
} while ($oldstepid != $stepid); } while ($oldstepid != $stepid);
$closehead = false;
include("head.inc"); include("head.inc");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment