'.USER_ERROR2.''; $_GET['id'] = $_POST['id']; unset($_POST); } mysql_connect($dbhost,$dbusername,$dbpassword); mysql_select_db($dbname); if (isset($_GET['delete']) && is_numeric($_GET['delete'])) { // DELETE $id = (int)$_GET['delete']; // Alle IPs löschen $query = "DELETE FROM $iptablename WHERE userid='$id'"; $res = mysql_query($query) or die(mysql_error()); // User löschen $query = "DELETE FROM $utablename WHERE id='$id' AND is_admin = 'false'"; } $fehler = false; if (isset($_POST['id']) && is_numeric($_POST['id'])) { // Update $fehler = true; if (!empty($username)) $fehler = false; if (!empty($pass1) && ($pass1 == $pass2)) $fehler = false; $id = $_POST['id']; if (!$fehler) { if (!empty($pass1)) $query = "UPDATE $utablename SET username='$username', userpass=md5('$pass1'),stylepath='$stylepath',ingame='$ingameusername',allytag='$allytag',email='$email',cansearch='$cansearch',caninsert='$caninsert',statusview='$statusview',probeview='$probeview',userman='$userman', allyhistory='$allyhistory', diplomatic='$diplomatic' WHERE id=$id"; else $query = "UPDATE $utablename SET username='$username',stylepath='$stylepath',ingame='$ingameusername',allytag='$allytag',email='$email',cansearch='$cansearch',caninsert='$caninsert',statusview='$statusview',probeview='$probeview',userman='$userman', allyhistory='$allyhistory', diplomatic='$diplomatic' WHERE id=$id"; } } elseif (isset($username)) { // Eintragen $fehler = true; if (!empty($username) && !empty($pass1) && ($pass1 == $pass2)) $fehler = false; if (!$fehler) { $query = "INSERT INTO $utablename (username,userpass,stylepath,ingame,allytag,email,links,cansearch,caninsert,statusview,probeview,userman,allyhistory,diplomatic,status) VALUES ('$username',md5('$pass1'),'$stylepath','$ingameusername','$allytag','$email','http://www.galaxytool.eu','$cansearch','$caninsert','$statusview','$probeview','$userman','$allyhistory','$diplomatic','active')"; } } if (isset($query) && !empty($query)) { $res = mysql_query($query); if (!$res) { echo "