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,12 +1,7 @@
<?php
// Die Datei links.php
if (isset($_GET['section'])) {
$section = $_GET['section'];
}
else {
$section = "home";
}
$section = $_GET['section'] ?? "home";
echo "<ul>\n";
@@ -38,7 +33,7 @@
}
echo "level2\"><a href=\"index.php?section=putz\">Putz</a></li>\n";
// Element Dämmung
// Element D<EFBFBD>mmung
echo " <li class=\"";
if ($section == 'daemm') {
echo "aktiv";
@@ -66,7 +61,7 @@
}
echo "><a href=\"index.php?section=info\">Info &amp; Partner</a></li>\n";
// Element Sachverständigenwesen
// Element Sachverst<EFBFBD>ndigenwesen
echo " <li";
if ($section == 'sach') {
echo " class=\"aktiv\"";
@@ -95,7 +90,4 @@
echo "level2\"><a href=\"index.php?section=ausbau\">Ausbau</a></li>\n";
echo "</ul>\n"
?>
echo "</ul>\n";