From 9d730633ad1dd58f25bc6d5f9195097471693da1 Mon Sep 17 00:00:00 2001 From: eichehome Date: Sun, 5 Dec 2021 14:21:13 +0100 Subject: [PATCH] Kommentare --- .gitignore | 1 + assets/css/main.css | 1 + check.php | 4 ++-- class/Datenbank.php | 2 +- index.php | 6 +++--- wahl.php | 52 ++++++++++++++++++++++----------------------- 6 files changed, 34 insertions(+), 32 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0dad95d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +include/DBConnection.inc.php diff --git a/assets/css/main.css b/assets/css/main.css index 5bcabfc..46e364e 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -14,6 +14,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + @import url(normalize.css); .message { max-width: 30em; diff --git a/check.php b/check.php index 657d2b7..2db30a7 100644 --- a/check.php +++ b/check.php @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ - + error_reporting(E_ALL); //Debuging require_once 'include/DBConnection.inc.php'; function autoloader($classname) @@ -73,10 +73,10 @@ if (isset($_SESSION["login"]) && $session->get("login") == 1) { + diff --git a/class/Datenbank.php b/class/Datenbank.php index fb747fe..c1e4354 100644 --- a/class/Datenbank.php +++ b/class/Datenbank.php @@ -99,7 +99,7 @@ class Datenbank extends DBClass } /** - * Nichtmehr nötig + * Nicht mehr nötig * @param string $name * @return boolean */ diff --git a/index.php b/index.php index b24056c..14dac8c 100644 --- a/index.php +++ b/index.php @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ - + error_reporting(E_ALL); //Debuging require_once 'include/DBConnection.inc.php'; function autoloader($classname) @@ -81,18 +81,18 @@ if (isset($_SESSION["finished"]) && $session->get("finished")) { + + diff --git a/wahl.php b/wahl.php index be39ce4..8adfeaf 100644 --- a/wahl.php +++ b/wahl.php @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ - + error_reporting(E_ALL); //Debuging require_once 'include/DBConnection.inc.php'; function autoloader($classname) @@ -133,50 +133,50 @@ if ($check) { - + + + selectKurse(); -echo '
'; -?> + $kurse = $db->selectKurse(); + echo ''; + ?>

'; -for ($i = 0; $i < count($kurse); $i++) { - echo "" . convertUmlauteFrom($kurse[$i]["name"]) . ""; -} + echo ''; + for ($i = 0; $i < count($kurse); $i++) { + echo ""; + } -for ($j = 0; $j < 3; $j++) { - echo ""; - echo ""; - for ($k = 0; $k < count($kurse); $k++) { - echo ""; - } - echo ""; -} -echo '
" . convertUmlauteFrom($kurse[$i]["name"]) . "
Wahl " . ($j + 1) . ""; - echo ''; - echo ''; - echo "
'; -?> + for ($j = 0; $j < 3; $j++) { + echo ""; + echo "Wahl " . ($j + 1) . ""; + for ($k = 0; $k < count($kurse); $k++) { + echo ""; + echo ''; + echo ''; + echo ""; + } + echo ""; + } + echo ''; + ?> "; -?> + echo "
"; + ?>