'.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 "
".USER_ERROR.": ".mysql_error()."
"; $fehler = true; } } ?>
username; $userid = $line->id; $password = ""; $ingameusername = $line->ingame; $allytag = $line->allytag; $cansearch = $line->cansearch; $caninsert = $line->caninsert; $statusview = $line->statusview; $probeview = $line->probeview; $userman = $line->userman; $stylepath = $line->stylepath; $allyhistory = $line->allyhistory; $diplomatic = $line->diplomatic; $email = $line->email; } elseif (!isset($_POST['username']) || !$fehler) { // Neuer Benutzer $username = ""; $password = ""; $ingameusername = ""; $allytag = ""; $cansearch = "false"; $caninsert = "false"; $statusview = "false"; $probeview = "false"; $userman = "false"; $allyhistory = "false"; $diplomatic = "false"; $stylepath = "styles.css"; $email = ""; } if (!empty($username)) { echo "\n"; } else { echo "\n"; } ?>
: ".USER_NEWUSER."
"; $query = "SELECT id,username,is_admin FROM $utablename ORDER BY username"; $res = mysql_query($query) or die(mysql_error()); echo "\n"; while ($line = mysql_fetch_object($res)) { if ($line->is_admin == "true") echo "\n"; else echo "\n"; } echo "
id\">$line->username 
id\">$line->usernameid\" onclick=\"return confirm('".USER_DELETE_ENTRY." ".$line->username." ?')\" >(".USER_DELETE.")
\n"; ?>
".USER_OPTIONS." - $username
".USER_OPTIONS."
>: \n"; ?>
>:
>:
>:
>:
>:
>:
: /> />
: /> />
: /> />
: /> />
: /> />
: /> />
: /> />