log der changes implementiert v 0.01
git-svn-id: svn://svn.cccv.de/engel-system@114 29ba0400-6e00-0410-a75a-ca02368028f8
This commit is contained in:
parent
091e82cce2
commit
95f565691e
|
@ -93,7 +93,7 @@ if (!IsSet($_GET["enterUID"]))
|
||||||
if( mysql_num_rows($Erg2)==0)
|
if( mysql_num_rows($Erg2)==0)
|
||||||
{
|
{
|
||||||
$SQL3 = "INSERT INTO `UserCVS` ( `UID`) VALUES ( '". mysql_result($Erg, $n, "UID"). "');";
|
$SQL3 = "INSERT INTO `UserCVS` ( `UID`) VALUES ( '". mysql_result($Erg, $n, "UID"). "');";
|
||||||
$Erg3 = mysql_query($SQL3, $con);
|
$Erg3 = db_query($SQL3, "admin/user.php auto CVS create");
|
||||||
if( $Erg3 )
|
if( $Erg3 )
|
||||||
echo "was create<br>\n";
|
echo "was create<br>\n";
|
||||||
else
|
else
|
||||||
|
|
|
@ -9,19 +9,6 @@ include ("./inc/crypt.php");
|
||||||
if (IsSet($_GET["action"]))
|
if (IsSet($_GET["action"]))
|
||||||
{
|
{
|
||||||
|
|
||||||
function SQLExec( $SQL )
|
|
||||||
{
|
|
||||||
global $con;
|
|
||||||
|
|
||||||
$Erg = mysql_query($SQL, $con);
|
|
||||||
if ($Erg == 1) {
|
|
||||||
echo "Änderung wurde gesichert...\n";
|
|
||||||
} else {
|
|
||||||
echo "Fehler beim speichern...\n(". mysql_error($con). ")";
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
SetHeaderGo2Back();
|
SetHeaderGo2Back();
|
||||||
echo "Gesendeter Befehl: ". $_GET["action"]. "<br>";
|
echo "Gesendeter Befehl: ". $_GET["action"]. "<br>";
|
||||||
|
|
||||||
|
@ -48,7 +35,12 @@ if (IsSet($_GET["action"]))
|
||||||
"WHERE `UID` = '". $_POST["enterUID"].
|
"WHERE `UID` = '". $_POST["enterUID"].
|
||||||
"' LIMIT 1;";
|
"' LIMIT 1;";
|
||||||
echo "User-";
|
echo "User-";
|
||||||
SQLExec( $SQL );
|
$Erg = db_query($SQL, "change user details");
|
||||||
|
if ($Erg == 1) {
|
||||||
|
echo "Änderung wurde gesichert...\n";
|
||||||
|
} else {
|
||||||
|
echo "Fehler beim speichern...\n(". mysql_error($con). ")";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if ($_POST["Type"] == "Secure")
|
if ($_POST["Type"] == "Secure")
|
||||||
{
|
{
|
||||||
|
@ -66,7 +58,12 @@ if (IsSet($_GET["action"]))
|
||||||
$SQL2 = substr( $SQL2, 0, strlen($SQL2)-2 );
|
$SQL2 = substr( $SQL2, 0, strlen($SQL2)-2 );
|
||||||
$SQL2.= " WHERE `UID` = '". $_POST["enterUID"]. "' LIMIT 1;";
|
$SQL2.= " WHERE `UID` = '". $_POST["enterUID"]. "' LIMIT 1;";
|
||||||
echo "<br>Secure-";
|
echo "<br>Secure-";
|
||||||
SQLExec( $SQL2 );
|
$Erg = db_query($SQL2, "change user CVS");
|
||||||
|
if ($Erg == 1) {
|
||||||
|
echo "Änderung wurde gesichert...\n";
|
||||||
|
} else {
|
||||||
|
echo "Fehler beim speichern...\n(". mysql_error($con). ")";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -75,15 +72,32 @@ if (IsSet($_GET["action"]))
|
||||||
if (IsSet($_POST["enterUID"]))
|
if (IsSet($_POST["enterUID"]))
|
||||||
{
|
{
|
||||||
echo "delate User...";
|
echo "delate User...";
|
||||||
$SQL="delete from `User` WHERE `UID` = '". $_POST["enterUID"]. "' LIMIT 1;";
|
$SQL="DELETE FROM `User` WHERE `UID` = '". $_POST["enterUID"]. "' LIMIT 1;";
|
||||||
SQLExec( $SQL );
|
$Erg = db_query($SQL, "User delete");
|
||||||
|
if ($Erg == 1) {
|
||||||
|
echo "Änderung wurde gesichert...\n";
|
||||||
|
} else {
|
||||||
|
echo "Fehler beim speichern...\n(". mysql_error($con). ")";
|
||||||
|
}
|
||||||
|
|
||||||
echo "<br>\ndelate UserCVS...";
|
echo "<br>\ndelate UserCVS...";
|
||||||
$SQL2="delete from `UserCVS` WHERE `UID` = '". $_POST["enterUID"]. "' LIMIT 1;";
|
$SQL2="DELETE FROM `UserCVS` WHERE `UID` = '". $_POST["enterUID"]. "' LIMIT 1;";
|
||||||
SQLExec( $SQL2 );
|
$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 "<br>\ndelate UserEntry...";
|
echo "<br>\ndelate UserEntry...";
|
||||||
$SQL3="UPDATE `ShiftEntry` SET `UID` = '0', `Comment` = NULL ".
|
$SQL3="UPDATE `ShiftEntry` SET `UID` = '0', `Comment` = NULL ".
|
||||||
"WHERE `UID` = '". $_POST["enterUID"]. "' LIMIT 1;";
|
"WHERE `UID` = '". $_POST["enterUID"]. "' LIMIT 1;";
|
||||||
SQLExec( $SQL3 );
|
$Erg = db_query($SQL3, "delate UserEntry");
|
||||||
|
if ($Erg == 1) {
|
||||||
|
echo "Änderung wurde gesichert...\n";
|
||||||
|
} else {
|
||||||
|
echo "Fehler beim speichern...\n(". mysql_error($con). ")";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -109,7 +123,12 @@ if (IsSet($_GET["action"]))
|
||||||
$_POST["ePasswort"] = PassCrypt($_POST["ePasswort"]);
|
$_POST["ePasswort"] = PassCrypt($_POST["ePasswort"]);
|
||||||
$SQL = "UPDATE `User` SET `Passwort`='". $_POST["ePasswort"]. "' ".
|
$SQL = "UPDATE `User` SET `Passwort`='". $_POST["ePasswort"]. "' ".
|
||||||
"where `UID` = '". $_POST["eUID"]. "'";
|
"where `UID` = '". $_POST["eUID"]. "'";
|
||||||
SQLExec( $SQL );
|
$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
|
else
|
||||||
echo "Das Passwort wurde nicht übereinstimmend eingegeben!";
|
echo "Das Passwort wurde nicht übereinstimmend eingegeben!";
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
include("./inc/funktion_db.php");
|
||||||
|
|
||||||
$con = mysql_connect("localhost", "engel", "engel") or die ("connection failed");
|
$con = mysql_connect("localhost", "engel", "engel") or die ("connection failed");
|
||||||
$sel = mysql_select_db("Himmel") or die (mysql_error());
|
$sel = mysql_select_db("Himmel") or die (mysql_error());
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue