diff --git a/DB/db_rewrite.sql b/DB/db_rewrite.sql
index 20a23f1e..18a75dee 100644
--- a/DB/db_rewrite.sql
+++ b/DB/db_rewrite.sql
@@ -3,7 +3,7 @@
-- http://www.phpmyadmin.net
--
-- Host: localhost
--- Erstellungszeit: 03. Juni 2011 um 04:47
+-- Erstellungszeit: 03. Juni 2011 um 05:44
-- Server Version: 5.1.44
-- PHP-Version: 5.3.1
@@ -80,15 +80,15 @@ INSERT INTO `Counter` (`URL`, `Anz`) VALUES
('register', 8),
('admin_rooms', 89),
('admin_angel_types', 71),
-('user_settings', 126),
+('user_settings', 131),
('user_messages', 113),
('admin_groups', 129),
('user_questions', 55),
-('admin_questions', 42),
+('admin_questions', 43),
('admin_faq', 55),
('admin_news', 33),
('news_comments', 151),
-('admin_user', 59),
+('admin_user', 157),
('user_meetings', 5);
-- --------------------------------------------------------
@@ -1083,8 +1083,7 @@ CREATE TABLE IF NOT EXISTS `User` (
--
INSERT INTO `User` (`UID`, `Nick`, `Name`, `Vorname`, `Alter`, `Telefon`, `DECT`, `Handy`, `email`, `ICQ`, `jabber`, `Size`, `Passwort`, `Gekommen`, `Aktiv`, `Tshirt`, `color`, `Sprache`, `Avatar`, `Menu`, `lastLogIn`, `CreateDate`, `Art`, `kommentar`, `Hometown`) VALUES
-(1, 'admin', '', '', 0, '', '', '', '', '', '', 'L', '21232f297a57a5a743894a0e4a801fc3', 0, 0, 0, 10, 'DE', 115, 'L', 1307076377, '0000-00-00 00:00:00', '', '', ''),
-(147, 'msquare', '', '', 23, '', '', '', 'msquare@notrademark.de', '', '', 'L', 'e10adc3949ba59abbe56e057f20f883e', 0, 0, 0, 6, 'EN', 0, 'L', 1307042703, '2011-06-02 00:55:09', '', '', '');
+(1, 'admin', 'Gates', 'Bill', 42, '', '', '', '', '', '', '', '4297f44b13955235245b2497399d7a93', 0, 0, 0, 10, 'DE', 115, 'L', 1307079838, '0000-00-00 00:00:00', '', '', '');
-- --------------------------------------------------------
@@ -1184,8 +1183,7 @@ INSERT INTO `UserGroups` (`id`, `uid`, `group_id`) VALUES
(1, 1, -2),
(2, 1, -3),
(3, 1, -5),
-(4, 1, -4),
-(5, 147, -2);
+(4, 1, -4);
-- --------------------------------------------------------
diff --git a/includes/pages/admin_user.php b/includes/pages/admin_user.php
index b64c9678..497f5fdb 100644
--- a/includes/pages/admin_user.php
+++ b/includes/pages/admin_user.php
@@ -1,111 +1,280 @@
Neuen Engel eintragen » \n";
+ if (isset ($_REQUEST['id']) && preg_match("/^[0-9]{1,}$/", $_REQUEST['id']) && sql_num_query("SELECT * FROM `User` WHERE `UID`=" . sql_escape($_REQUEST['id'])) > 0) {
+ $id = $_REQUEST['id'];
+ if (!isset ($_REQUEST['action'])) {
+ $html .= "Hallo, " .
+ "hier kannst du den Eintrag ändern. Unter dem Punkt 'Gekommen' " .
+ "wird der Engel als anwesend markiert, ein Ja bei Aktiv bedeutet, " .
+ "dass der Engel aktiv war und damit ein Anspruch auf ein T-Shirt hat. " .
+ "Wenn T-Shirt ein 'Ja' enthält, bedeutet dies, dass der Engel " .
+ "bereits sein T-Shirt erhalten hat. \n";
- if (!isset ($_GET["OrderBy"]))
- $_GET["OrderBy"] = "Nick";
- $SQL = "SELECT * FROM `User` ORDER BY `" . $_GET["OrderBy"] . "` ASC";
- $Erg = sql_query($SQL);
+ $html .= "
\n";
- echo "\n \n";
- echo " \n";
- echo " \n";
- echo " ";
-
- echo "\n";
- echo " \n";
- echo " \n";
- echo " ";
-
- echo " ";
- funktion_db_element_list_2row("Freeloader Shifts", "SELECT `Remove_Time`, `Length`, `Comment` FROM `ShiftFreeloader` WHERE UID=" . $_GET["enterUID"]);
-}
-
-include ("includes/footer.php");
-?>
-
-
diff --git a/www-ssl/admin/userDefaultSetting.php b/www-ssl/admin/userDefaultSetting.php
deleted file mode 100644
index e7a69925..00000000
--- a/www-ssl/admin/userDefaultSetting.php
+++ /dev/null
@@ -1,138 +0,0 @@
-\nhier hast du die Möglichkeit, die Defaulteinstellungen für neue User einzustellen: \n";
-
-echo "\n";
-echo "\t\n";
-echo "\t\tPage \n\t\tShow \n\t\t \n";
-echo "\t \n";
-
-if (isset ($_GET["Field"]) && isset ($_GET["Default"]) && isset ($_GET["Send"])) {
- switch ($_GET["Send"]) {
- case "New" :
- $SQL = "ALTER TABLE `UserCVS` ADD `" . $_GET["Field"] . "` " .
- "CHAR( 1 ) DEFAULT '" . $_GET["Default"] . "' NOT NULL";
- $Erg = db_query($SQL, "New user default setting");
- if ($Erg == 1)
- echo "Create " . $_GET["Field"] . " = " . $_GET["Default"] . " succesfull \n";
- else
- echo "Create " . $_GET["Field"] . " = " . $_GET["Default"] . " error... \n" .
- "[" . mysql_error() . "] ";
- break;
- case "Del" :
- echo "\t\n";
- echo "\t\t\n";
- echo "\t\t\t \n";
- echo "\t\t\t \n";
- echo "\t\t\t \n";
- echo "\t\t \n";
- echo "\t \n";
- break;
- case "Del sure" :
- $SQL = "ALTER TABLE `UserCVS` DROP `" . $_GET["Field"] . "` ";
- $Erg = db_query($SQL, "del user default setting");
- if ($Erg == 1)
- echo "Delete " . $_GET["Field"] . " succesfull \n";
- else
- echo "Delete " . $_GET["Field"] . " error... \n" .
- "[" . mysql_error() . "] ";
- break;
- case "SetForAllUser" :
- $SQL = "UPDATE `UserCVS` SET `" . $_GET["Field"] . "`='" . $_GET["Default"] . "' WHERE UID>0";
- $Erg = db_query($SQL, "Set new user default setting for all user");
- if ($Erg == 1)
- echo "UPDATE " . $_GET["Field"] . " = " . $_GET["Default"] . " for all Users succesfull \n";
- else
- echo "UPDATE " . $_GET["Field"] . " = " . $_GET["Default"] . " for all Users error... \n" .
- "[" . mysql_error() . "] ";
- case "Save" :
- $SQL = "ALTER TABLE `UserCVS` CHANGE `" . $_GET["Field"] . "` " .
- "`" . $_GET["Field"] . "` CHAR( 1 ) NOT NULL DEFAULT '" . $_GET["Default"] . "'";
- $Erg = db_query($SQL, "Save user default setting");
- if ($Erg == 1)
- echo "Write " . $_GET["Field"] . " = " . $_GET["Default"] . " succesfull \n";
- else
- echo "Write " . $_GET["Field"] . " = " . $_GET["Default"] . " error... \n" .
- "[" . mysql_error() . "] ";
- break;
- } //SWITCH
-} //IF(
-
-$erg = mysql_query("SHOW COLUMNS FROM `UserCVS`");
-echo mysql_error();
-echo "\t\n";
-echo "\t\t\n";
-echo "\t\t\t \n";
-echo "\t\t\tGroup \n";
-echo "\t\t\t";
-
-$SQL_Group = "SELECT * FROM `UserGroups`";
-$Erg_Group = mysql_query($SQL_Group, $con);
-for ($n = 0; $n < mysql_num_rows($Erg_Group); $n++) {
- $UID = mysql_result($Erg_Group, $n, "UID");
- echo "\t" . mysql_result($Erg_Group, $n, "Name") . " \n";
-}
-echo " \n";
-echo "\t\t\t \n";
-echo "\t\t\t \n";
-echo "\t\t \n";
-echo "\t \n";
-
-for ($i = 2; $i < mysql_num_rows($erg); $i++) {
- echo "\t\n";
- echo "\t\t\n";
- echo "\t\t\t \n";
- echo "\t\t\t" . mysql_result($erg, $i, "Field") . " \n";
- echo "\t\t\t\n";
-
- echo "\t\t\t\t allow\n";
-
- echo "\t\t\t\t denied\n";
-
- echo "\t\t\t\t group-setting\n";
-
- echo "\t\t\t \n";
- echo "\t\t\t \n";
- echo "\t\t\t \n";
- echo "\t\t\t \n";
- echo "\t\t \n";
- echo "\t \n";
-}
-
-echo "\t\n";
-echo "\t\t\n";
-echo "\t\t\t \n";
-echo "\t\t\t \n";
-echo "\t\t\t\n";
-echo "\t\t\t\t allow\n";
-echo "\t\t\t\t denied\n";
-echo "\t\t\t\t group-setting\n";
-echo "\t\t\t \n";
-echo "\t\t\t \n";
-echo "\t\t \n";
-echo "\t \n";
-
-echo "
\n";
-
-include ("includes/footer.php");
-?>
-
diff --git a/www-ssl/admin/userSaveNormal.php b/www-ssl/admin/userSaveNormal.php
deleted file mode 100644
index deaf96d9..00000000
--- a/www-ssl/admin/userSaveNormal.php
+++ /dev/null
@@ -1,119 +0,0 @@
-";
-
- switch ($_GET["action"]) {
- case "change" :
- if (IsSet ($_POST["enterUID"])) {
- if ($_POST["Type"] == "Normal") {
- $SQL = "UPDATE `User` SET ";
- $SQL .= " `Nick` = '" . $_POST["eNick"] . "', `Name` = '" . $_POST["eName"] . "', " .
- "`Vorname` = '" . $_POST["eVorname"] . "', " .
- "`Telefon` = '" . $_POST["eTelefon"] . "', " .
- "`Handy` = '" . $_POST["eHandy"] . "', " .
- "`DECT` = '" . $_POST["eDECT"] . "', " .
- "`email` = '" . $_POST["eemail"] . "', " .
- "`ICQ` = '" . $_POST["eICQ"] . "', " .
- "`jabber` = '" . $_POST["ejabber"] . "', " .
- "`Size` = '" . $_POST["eSize"] . "', " .
- "`Gekommen`= '" . $_POST["eGekommen"] . "', " .
- "`Aktiv`= '" . $_POST["eAktiv"] . "', " .
- "`Tshirt` = '" . $_POST["eTshirt"] . "', " .
- "`Hometown` = '" . $_POST["Hometown"] . "' " .
- "WHERE `UID` = '" . $_POST["enterUID"] .
- "' LIMIT 1;";
- echo "User-";
- $Erg = db_query($SQL, "change user details");
- if ($Erg == 1) {
- echo "Änderung wurde gesichert...\n";
- } else {
- echo "Fehler beim speichern...\n(" . mysql_error($con) . ")";
- }
- } else
- echo "Fehler: Unbekanter Type (" . $_POST["Type"] . ") �bergeben\n \n";
- } else
- echo "Fehler: UserID (enterUID) wurde nicht per POST �bergeben \n";
- break;
-
- case "delete" :
- if (IsSet ($_POST["enterUID"])) {
- echo "delate User...";
- $SQL = "DELETE FROM `User` WHERE `UID`='" . $_POST["enterUID"] . "' LIMIT 1;";
- $Erg = db_query($SQL, "User delete");
- if ($Erg == 1) {
- echo "Änderung wurde gesichert...\n";
- } else {
- echo "Fehler beim speichern...\n(" . mysql_error($con) . ")";
- }
-
- echo " \ndelate UserCVS...";
- $SQL2 = "DELETE FROM `UserCVS` WHERE `UID`='" . $_POST["enterUID"] . "' LIMIT 1;";
- $Erg = db_query($SQL2, "User CVS delete");
- if ($Erg == 1) {
- echo "Änderung wurde gesichert...\n";
- } else {
- echo "Fehler beim speichern...\n(" . mysql_error($con) . ")";
- }
-
- echo " \ndelate UserEntry...";
- $SQL3 = "UPDATE `ShiftEntry` SET `UID`='0', `Comment`=NULL " .
- "WHERE `UID`='" . $_POST["enterUID"] . "';";
- $Erg = db_query($SQL3, "delate UserEntry");
- if ($Erg == 1) {
- echo "Änderung wurde gesichert...\n";
- } else {
- echo "Fehler beim speichern...\n(" . mysql_error($con) . ")";
- }
- }
- break;
-
- case "newpw" :
- echo "Bitte neues Kennwort für ";
- // Get Nick
- $USQL = "SELECT * FROM `User` WHERE `UID`='" . $_GET["eUID"] . "'";
- $Erg = mysql_query($USQL, $con);
- echo mysql_result($Erg, 0, "Nick");
- echo " eingeben: ";
- echo "\n";
- echo " ";
- echo " ";
- echo " ";
- echo " \n";
- echo " ";
- break;
-
- case "newpwsave" :
- if ($_POST["ePasswort"] == $_POST["ePasswort2"]) { // beide Passwoerter passen...
- $_POST["ePasswort"] = PassCrypt($_POST["ePasswort"]);
- $SQL = "UPDATE `User` SET `Passwort`='" . $_POST["ePasswort"] . "' " .
- "WHERE `UID`='" . $_POST["eUID"] . "'";
- $Erg = db_query($SQL, "User new passwort");
- if ($Erg == 1) {
- echo "Änderung wurde gesichert...\n";
- } else {
- echo "Fehler beim speichern...\n(" . mysql_error($con) . ")";
- }
- } else
- echo "Das Passwort wurde nicht übereinstimmend eingegeben!";
- break;
- } // end switch
-
- // ende - Action ist gesetzt
-} else {
- // kein Action gesetzt -> abbruch
- echo "Unzulässiger Aufruf. Bitte neu editieren...";
-}
-
-include ("includes/footer.php");
-?>
-