Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
function user_remove($uid){ $row = @db_fetch_object(db_query("SELECT recht,avatar FROM xic_user WHERE id = ".$uid)); if ( $uid <> 1 AND ($_SESSION['authid'] == $uid OR $_SESSION['authid'] == 1 OR (is_coadmin() AND $_SESSION['authright'] < $row->recht))) { db_query("DELETE FROM xic_user WHERE id = ".$uid); db_query("DELETE FROM xic_userfields WHERE uid = ".$uid); db_query("DELETE FROM xic_groupusers WHERE uid = ".$uid); db_query("DELETE FROM xic_modulerights WHERE uid = ".$uid); db_query("DELETE FROM xic_pm WHERE eid = ".$uid); db_query("DELETE FROM xic_online WHERE uid = ".$uid); //Usergallery entfernen $sql = db_query("SELECT id,endung FROM xic_usergallery WHERE uid = ".$uid); while( $r = db_fetch_object($sql) ){ @unlink("include/images/usergallery/img_$r->id.$r->endung"); @unlink("include/images/usergallery/img_thumb_$r->id.$r->endung"); } db_query("DELETE FROM xic_usergallery WHERE uid = ".$uid); //Avatar @unlink($row->avatar); } }