summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelo Cuccato <cuccato@web.de>2010-01-19 23:52:47 +0100
committerAngelo Cuccato <cuccato@web.de>2010-01-19 23:52:47 +0100
commitec21c8ade176c706fd067f8835e7f4dc752ce6ba (patch)
tree7e9fcd976ba5f551b1facb48ebcec558d0d2ebb0
parent6cfc2d6da0213aca24b1c97647c7bd5009971d4d (diff)
remove unused functions
-rwxr-xr-xwww-ssl/admin/userSaveNormal.php30
-rwxr-xr-xwww-ssl/admin/userSaveSecure.php62
2 files changed, 1 insertions, 91 deletions
diff --git a/www-ssl/admin/userSaveNormal.php b/www-ssl/admin/userSaveNormal.php
index 229a4cdc..466c2e6e 100755
--- a/www-ssl/admin/userSaveNormal.php
+++ b/www-ssl/admin/userSaveNormal.php
@@ -45,36 +45,6 @@ if (IsSet($_GET["action"]))
echo "Fehler beim speichern...\n(". mysql_error($con). ")";
}
}
- elseif ($_POST["Type"] == "Secure")
- {
- $SQL2 = "UPDATE `UserCVS` SET ";
- $SQL_CVS = "SELECT * FROM `UserCVS` WHERE `UID`='". $_POST["enterUID"]. "'";
- $Erg_CVS = mysql_query($SQL_CVS, $con);
- $CVS_Data = mysql_fetch_array($Erg_CVS);
- $CVS_Data_i = 1;
- foreach ($CVS_Data as $CVS_Data_Name => $CVS_Data_Value)
- {
- if( ($CVS_Data_i+1)%2 && $CVS_Data_Name!="UID") {
- if( $CVS_Data_Name == "GroupID")
- {
- if( $_POST["enterUID"] > 0 )
- $SQL2.= "`$CVS_Data_Name` = ". $_POST["GroupID"].", ";
- } else {
- $SQL2.= "`$CVS_Data_Name` = '". $_POST[$CVS_Data_i]."', ";
- }
- }
- $CVS_Data_i++;
- }
- $SQL2 = substr( $SQL2, 0, strlen($SQL2)-2 );
- $SQL2.= " WHERE `UID`='". $_POST["enterUID"]. "' LIMIT 1;";
- echo "<br>Secure-";
- $Erg = db_query($SQL2, "change user CVS");
- if ($Erg == 1) {
- echo "&Auml;nderung wurde gesichert...\n";
- } else {
- echo "Fehler beim speichern...\n(". mysql_error($con). ")";
- }
- }
else
echo "<h1>Fehler: Unbekanter Type (". $_POST["Type"]. ") übergeben\n</h1>\n";
}
diff --git a/www-ssl/admin/userSaveSecure.php b/www-ssl/admin/userSaveSecure.php
index 229a4cdc..02da8d6d 100755
--- a/www-ssl/admin/userSaveSecure.php
+++ b/www-ssl/admin/userSaveSecure.php
@@ -18,34 +18,7 @@ if (IsSet($_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"]. "', ".
- "`Menu` = '". $_POST["eMenu"]. "' ".
- "WHERE `UID` = '". $_POST["enterUID"].
- "' LIMIT 1;";
- echo "User-";
- $Erg = db_query($SQL, "change user details");
- if ($Erg == 1) {
- echo "&Auml;nderung wurde gesichert...\n";
- } else {
- echo "Fehler beim speichern...\n(". mysql_error($con). ")";
- }
- }
- elseif ($_POST["Type"] == "Secure")
+ if ($_POST["Type"] == "Secure")
{
$SQL2 = "UPDATE `UserCVS` SET ";
$SQL_CVS = "SELECT * FROM `UserCVS` WHERE `UID`='". $_POST["enterUID"]. "'";
@@ -114,39 +87,6 @@ if (IsSet($_GET["action"]))
}
}
break;
-
-
- case "newpw":
- echo "Bitte neues Kennwort f&uuml;r <b>";
- // Get Nick
- $USQL = "SELECT * FROM `User` WHERE `UID`='". $_GET["eUID"]. "'";
- $Erg = mysql_query($USQL, $con);
- echo mysql_result($Erg, 0, "Nick");
- echo "</b> eingeben:<br>";
- echo "<form action=\"./user2.php?action=newpwsave\" method=\"POST\">\n";
- echo "<input type=\"Password\" name=\"ePasswort\">";
- echo "<input type=\"Password\" name=\"ePasswort2\">";
- echo "<input type=\"hidden\" name=\"eUID\" value=\"". $_GET["eUID"]. "\">";
- echo "<input type=\"submit\" value=\"sichern...\">\n";
- echo "</form>";
- 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 "&Auml;nderung wurde gesichert...\n";
- } else {
- echo "Fehler beim speichern...\n(". mysql_error($con). ")";
- }
- }
- else
- echo "Das Passwort wurde nicht &uuml;bereinstimmend eingegeben!";
- break;
} // end switch
// ende - Action ist gesetzt