summaryrefslogtreecommitdiff
path: root/www-ssl/admin/debug.php
diff options
context:
space:
mode:
Diffstat (limited to 'www-ssl/admin/debug.php')
-rw-r--r--www-ssl/admin/debug.php37
1 files changed, 13 insertions, 24 deletions
diff --git a/www-ssl/admin/debug.php b/www-ssl/admin/debug.php
index b2c6357f..ec1b2c9f 100644
--- a/www-ssl/admin/debug.php
+++ b/www-ssl/admin/debug.php
@@ -1,9 +1,10 @@
<?php
+require_once ('../bootstrap.php');
$title = "Debug-Liste";
$header = "Datenbank-Auszug";
-include ("../../../camp2011/includes/header.php");
-include ("../../../camp2011/includes/funktion_db_list.php");
+include ("includes/header.php");
+include ("includes/funktion_db_list.php");
echo "<h1>Web Counter</h1>";
funktion_db_list("Counter");
@@ -31,39 +32,27 @@ echo "Deaktiviert";
*/
echo "<hr>\n";
-funktion_db_element_list_2row( "Tshirt-Size aller engel",
- "SELECT `Size`, COUNT(`Size`) FROM `User` GROUP BY `Size`");
+funktion_db_element_list_2row("Tshirt-Size aller engel", "SELECT `Size`, COUNT(`Size`) FROM `User` GROUP BY `Size`");
echo "<br />\n";
-funktion_db_element_list_2row( "Tshirt ausgegeben",
- "SELECT `Size`, COUNT(`Size`) FROM `User` WHERE `Tshirt`='1' GROUP BY `Size`");
+funktion_db_element_list_2row("Tshirt ausgegeben", "SELECT `Size`, COUNT(`Size`) FROM `User` WHERE `Tshirt`='1' GROUP BY `Size`");
echo "<br />\n";
-funktion_db_element_list_2row( "Tshirt nicht ausgegeben (Gekommen=1)",
- "SELECT COUNT(`Size`), `Size` FROM `User` WHERE `Gekommen`='1' and `Tshirt`='0' GROUP BY `Size`");
+funktion_db_element_list_2row("Tshirt nicht ausgegeben (Gekommen=1)", "SELECT COUNT(`Size`), `Size` FROM `User` WHERE `Gekommen`='1' and `Tshirt`='0' GROUP BY `Size`");
echo "<hr>\n";
-funktion_db_element_list_2row( "Hometown",
- "SELECT COUNT(`Hometown`), `Hometown` FROM `User` GROUP BY `Hometown`");
+funktion_db_element_list_2row("Hometown", "SELECT COUNT(`Hometown`), `Hometown` FROM `User` GROUP BY `Hometown`");
echo "<br />\n";
-funktion_db_element_list_2row( "Engeltypen",
- "SELECT COUNT(`Art`), `Art` FROM `User` GROUP BY `Art`");
+funktion_db_element_list_2row("Engeltypen", "SELECT COUNT(`Art`), `Art` FROM `User` GROUP BY `Art`");
echo "<hr>\n";
-funktion_db_element_list_2row( "Gesamte Arbeit",
- "SELECT COUNT(*) AS `Count [x]`, SUM(Shifts.Len) as `Sum [h]` from Shifts LEFT JOIN ShiftEntry USING(SID)");
+funktion_db_element_list_2row("Gesamte Arbeit", "SELECT COUNT(*) AS `Count [x]`, SUM(Shifts.Len) as `Sum [h]` from Shifts LEFT JOIN ShiftEntry USING(SID)");
echo "<br />\n";
-funktion_db_element_list_2row( "Geleisteter Arbeit",
- "SELECT COUNT(*) AS `Count [x]`, SUM(Shifts.Len) as `Sum [h]` from Shifts LEFT JOIN ShiftEntry USING(SID) WHERE (ShiftEntry.UID!=0)");
+funktion_db_element_list_2row("Geleisteter Arbeit", "SELECT COUNT(*) AS `Count [x]`, SUM(Shifts.Len) as `Sum [h]` from Shifts LEFT JOIN ShiftEntry USING(SID) WHERE (ShiftEntry.UID!=0)");
echo "<hr>\n";
-funktion_db_element_list_2row( "Gesamte Arbeit (Ohne Raum aufabau (RID=7)",
- "SELECT COUNT(*) AS `Count [x]`, SUM(Shifts.Len) as `Sum [h]` from Shifts LEFT JOIN ShiftEntry USING(SID) WHERE (Shifts.RID!=7)");
+funktion_db_element_list_2row("Gesamte Arbeit (Ohne Raum aufabau (RID=7)", "SELECT COUNT(*) AS `Count [x]`, SUM(Shifts.Len) as `Sum [h]` from Shifts LEFT JOIN ShiftEntry USING(SID) WHERE (Shifts.RID!=7)");
echo "<br />\n";
-funktion_db_element_list_2row( "Geleisteter Arbeit (Ohne Raum aufabau (RID=7)",
- "SELECT COUNT(*) AS `Count [x]`, SUM(Shifts.Len) as `Sum [h]` from Shifts LEFT JOIN ShiftEntry USING(SID) WHERE (ShiftEntry.UID!=0) AND (Shifts.RID!=7)");
+funktion_db_element_list_2row("Geleisteter Arbeit (Ohne Raum aufabau (RID=7)", "SELECT COUNT(*) AS `Count [x]`, SUM(Shifts.Len) as `Sum [h]` from Shifts LEFT JOIN ShiftEntry USING(SID) WHERE (ShiftEntry.UID!=0) AND (Shifts.RID!=7)");
-
-
-
-include ("../../../camp2011/includes/footer.php");
+include ("includes/footer.php");
?>