$content['ERROR_MSG'] = GetAndReplaceLangStr($content['LN_GROUP_ERROR_IDNOTFOUND'], $content['USERID']); } else { // --- Ask for deletion first! if (!isset($_GET['verify']) || $_GET['verify'] != "yes") { // This will print an additional secure check which the user needs to confirm and exit the script execution. PrintSecureUserCheck(GetAndReplaceLangStr($content['LN_GROUP_WARNDELETEGROUP'], $myrow['groupname']), $content['LN_DELETEYES'], $content['LN_DELETENO']); } // --- // Delete User objects! PerformSQLDelete("DELETE FROM " . DB_SOURCES . " WHERE groupid = " . $content['GROUPID'], 'LN_SOURCES_ERROR_DELSOURCE', $content['GROUPID']); PerformSQLDelete("DELETE FROM " . DB_VIEWS . " WHERE groupid = " . $content['GROUPID'], 'LN_VIEWS_ERROR_DELSEARCH', $content['GROUPID']); PerformSQLDelete("DELETE FROM " . DB_SEARCHES . " WHERE groupid = " . $content['GROUPID'], 'LN_SEARCH_ERROR_DELSEARCH', $content['GROUPID']); PerformSQLDelete("DELETE FROM " . DB_CHARTS . " WHERE groupid = " . $content['GROUPID'], 'LN_CHARTS_ERROR_DELCHART', $content['GROUPID']); PerformSQLDelete("DELETE FROM " . DB_GROUPMEMBERS . " WHERE groupid = " . $content['GROUPID'], 'LN_GROUP_ERROR_REMUSERFROMGROUP', $content['GROUPID']); // Finally delete the Groupobject! PerformSQLDelete("DELETE FROM " . DB_GROUPS . " WHERE ID = " . $content['GROUPID'], 'LN_GROUP_ERROR_DELGROUP', $content['GROUPID']); // Do the final redirect RedirectResult(GetAndReplaceLangStr($content['LN_GROUP_ERROR_HASBEENDEL'], $myrow['groupname']), "groups.php"); } } else { $content['ISERROR'] = true; $content['ERROR_MSG'] = $content['LN_GROUP_ERROR_INVALIDGROUP']; } } } } } } } if (isset($_POST['op'])) { if (isset($_POST['id'])) {
$content['ISERROR'] = true; $content['ERROR_MSG'] = GetAndReplaceLangStr($content['LN_USER_ERROR_DONOTDELURSLF'], $content['USERID']); } else { // --- Ask for deletion first! if (!isset($_GET['verify']) || $_GET['verify'] != "yes") { // This will print an additional secure check which the user needs to confirm and exit the script execution. PrintSecureUserCheck(GetAndReplaceLangStr($content['LN_USER_WARNDELETEUSER'], $myrow['username']), $content['LN_DELETEYES'], $content['LN_DELETENO']); } // --- // Delete User objects! PerformSQLDelete("DELETE FROM " . DB_SOURCES . " WHERE userid = " . $content['USERID'], 'LN_SOURCES_ERROR_DELSOURCE', $content['USERID']); PerformSQLDelete("DELETE FROM " . DB_VIEWS . " WHERE userid = " . $content['USERID'], 'LN_VIEWS_ERROR_DELSEARCH', $content['USERID']); PerformSQLDelete("DELETE FROM " . DB_SEARCHES . " WHERE userid = " . $content['USERID'], 'LN_SEARCH_ERROR_DELSEARCH', $content['USERID']); PerformSQLDelete("DELETE FROM " . DB_CHARTS . " WHERE userid = " . $content['USERID'], 'LN_CHARTS_ERROR_DELCHART', $content['USERID']); // Finally delete the Userobject! PerformSQLDelete("DELETE FROM " . DB_USERS . " WHERE ID = " . $content['USERID'], 'LN_USER_ERROR_DELUSER', $content['USERID']); // Do the final redirect RedirectResult(GetAndReplaceLangStr($content['LN_USER_ERROR_HASBEENDEL'], $myrow['username']), "users.php"); } } } else { $content['ISERROR'] = true; $content['ERROR_MSG'] = $content['LN_USER_ERROR_INVALIDID']; } } } } } if (isset($_POST['op'])) { if (isset($_POST['id'])) { $content['USERID'] = DB_RemoveBadChars($_POST['id']);