fixes from test.php

This commit is contained in:
Bruno committed 2026-01-06 10:32:58 +01:00
1 parent 148ae40783
commit a0a60cdd79
3 files changed
+58 -24

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@
"editor.minimap.maxColumn": 100,
"editor.minimap.renderCharacters": true,
"editor.minimap.showSlider": "always",
"files.autoSave": "afterDelay",
"files.autoSave": "off",
"files.autoSaveDelay": 3000,
"window.title": "PUBLIC",
"workbench.editor.wrapTabs": true,
+1 -1
View File
@@ -181,4 +181,4 @@ class getSpecificData {
}
echo "</pre>";
}
}
}
+56 -22
View File
@@ -9,9 +9,32 @@ $data = new getSpecificData();
$clientIP = $data->getClientIP();
$whitelist = $data->getWhitelistedIPs();
ConsoleLog($whitelist);
if (in_array($clientIP, $whitelist)) {
//DatabaseInsert(
// "Berufsschulberichte",
// "Datum,
// FACH_S1, LEHRER_S1, RAUM_S1, INHALT_S1,
// FACH_S2, LEHRER_S2, RAUM_S2, INHALT_S2,
// FACH_S3, LEHRER_S3, RAUM_S3, INHALT_S3,
// FACH_S4, LEHRER_S4, RAUM_S4, INHALT_S4,
// FACH_S5, LEHRER_S5, RAUM_S5, INHALT_S5",
// FACH_S6, LEHRER_S6, RAUM_S6, INHALT_S6,
// FACH_S7, LEHRER_S7, RAUM_S7, INHALT_S7,
// FACH_S8, LEHRER_S8, RAUM_S8, INHALT_S8,
// "06.01.2026",
// "5", "1", "3", "Python Programmierung von Notenberechnung",
// "5", "1", "3", "Python Programmierung von Notenberechnung",
// "5", "1", "3", "Pyeudo Code",
// "2", "6", "4", "Motherboards",
// "2", "6", "4", "RAM",
// "", "", "", "",
// "", "", "", "",
// "", "", "", "",
//);
//ConsoleLog($whitelist);
//if (in_array($clientIP, $whitelist)) {
// DatabaseDelete(
// "Whitelisted",
// "id = ?",
@@ -35,15 +58,18 @@ if (in_array($clientIP, $whitelist)) {
// "Berufsschulzentrum"
// );
//$data = DatabaseShow(
// "Whitelisted",
// "id, `IP-ADDRESSE`, GRUND, STATUS, ORT"
// );
// echo '<pre>';
// echo '<h2>Get All Data</h2>';
// print_r($data->ShowAllData());
// echo '</pre>';
$data = DatabaseShow(
"Berufsschulberichte",
"DATUM"
);
echo '<pre>';
print_r($data);
echo '</pre>';
//echo '<pre>';
//echo '<h2>Get All Data</h2>';
//print_r($data->ShowAllData());
//echo '</pre>';
// DatabaseInsert(
// "Berufsschulberichte",
@@ -55,21 +81,29 @@ if (in_array($clientIP, $whitelist)) {
// "Netzwerksachen"
// );
$data = DatabaseShowWithFK(
$data = DatabaseShowWithFK(
"Berufsschulberichte",
$fkMap,
"DATUM, FACH_S1, LEHRER_S1, INHALT_S1, FACH_S2, LEHRER_S2, INHALT_S2",
"INHALT_S1 = ?",
"Netzwerksachen"
);
"DATUM,
FACH_S1, LEHRER_S1, INHALT_S1,
FACH_S2, LEHRER_S2, INHALT_S2,
FACH_S3, LEHRER_S3, INHALT_S3,
FACH_S4, LEHRER_S4, INHALT_S4,
FACH_S5, LEHRER_S5, INHALT_S5,
FACH_S6, LEHRER_S6, INHALT_S6,
FACH_S7, LEHRER_S7, INHALT_S7,
FACH_S8, LEHRER_S8, INHALT_S8",
"DATUM = ?",
"06.01.2026"
);
// $data = DatabaseShowWithFK(
// "Berufsschulberichte"
// );
//$data = DatabaseShowWithFK(
// "Berufsschulberichte"
//);
echo "<pre>";
print_r($data['rows']);
echo "</pre>";
} else {
header("Location: /controller/RoutesController.php?website=/static/access_denied.php");
}
//} else {
// header("Location: /controller/RoutesController.php?website=/static/access_denied.php");
//}