First refactoring to PHP 8.1

This commit is contained in:
Christian Steinle
2022-09-13 07:59:50 +02:00
parent a3edc1f2c2
commit 666eafa30a
18 changed files with 174 additions and 187 deletions

View File

@@ -1,51 +1,47 @@
<?php
error_reporting(E_ALL);
include "inc/config.php"; // die Konfigurationsdateien lesen
if(isset($_GET['section']) AND isset($titel[$_GET['section']])) {
$temp_titel = $titel[$_GET['section']];
} else {
$temp_titel = "Das Unternehmen";
}
error_reporting(E_ALL);
include "inc/config.php";
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n";
echo " \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n";
echo "<html>\n";
echo " <head>\n";
echo " <title>".$temp_titel."</title>\n";
echo " <link rel=\"stylesheet\" type=\"text/css\" href=\"css/page.css\" />\n";
echo " <meta http-equiv=\"Content-Type\"
content=\"text/html; charset=ISO-8859-1\" />\n";
echo " </head>\n";
echo " <body align=\"center\">\n";
echo " <div id=\"root\">\n"; // ganz oberer Div-Holder
echo " <div id=\"header\">\n"; // Oben der Header
include "header.php";
echo " </div>\n";
echo " <div id=\"clear\">\n"; // Textfluss ändern
echo " </div>\n";
echo " <div id=\"cleaner\">\n"; // Textfluss ändern
echo " </div>\n";
echo " <div id=\"greybar\">\n"; // Der graue Balken
include "greybar.php";
echo " </div>\n";
echo " <div id=\"links\">\n"; // linkes Menu
include "links.php";
echo " </div>\n";
/* echo " <div id=\"greybar\">\n"; // Der graue Balken
include "greybar.php";
*/ echo " </div>\n";
echo " <div id=\"inhalt\">\n"; // In der Mitte der Inhalt
include "inhalt.php";
echo " </div>\n";
echo " <div id=\"footer\">\n"; // Unten der Footer
include "footer.php";
echo " </div>\n";
echo " <br style=\"clear:both;\" />\n"; // css-float beenden
echo " </div>\n";
echo " </body>\n";
echo "</html>\n";
?>
if (isset($_GET['section']) and isset($titel[$_GET['section']])) {
$temp_titel = $titel[$_GET['section']];
} else {
$temp_titel = "Das Unternehmen";
}
?>
<!DOCTYPE html>\n";
<html lang='de'>\n";
<head>\n";
<title><?php
echo $temp_titel; ?></title>
<link rel="stylesheet" type="text/css" href="css/page.css"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body align="center">
<div id="root">
<div id="header">
<?php
include "header.php"; ?>
</div>
<div id="clear"></div>
<div id="cleaner"></div>
<div id="greybar">
<?php
include "greybar.php"; ?>
</div>
<div id="links">
<?php
include "links.php"; ?>
</div>
<div id="inhalt">
<?php
include "inhalt.php"; ?>
</div>
<div id="footer">
<?php
include "footer.php"; ?>
</div>
<br style="clear:both;"/>
</div>
</body>
</html>