Mod removed
The mod has been removed.
Remove mod
Are you sure to remove the “” mod?
prepare("DELETE FROM mods_pending WHERE slug = ?");
if (!$statement) {
$errorMessage = "An unexpected error occurred while removing the mod.";
} else {
$modSlug = $modDataToDiscard['slug'];
$statement->bind_param('s', $modSlug);
if (!$statement->execute()) {
$errorMessage = "An unexpected error occurred while removing the mod.";
} else {
$statement = $connection->prepare("UPDATE mods SET is_removed = 1 WHERE slug = ?");
if (!$statement) {
$errorMessage = "An unexpected error occurred while removing the mod.";
} else {
$modSlug = $modDataToRemove['slug'];
$statement->bind_param('s', $modSlug);
if (!$statement->execute()) {
$errorMessage = "An unexpected error occurred while removing the mod.";
} else {
$modRemoved = true;
}
$statement->close();
}
}
}
}
}
}
if (!$modRemoved) {
$pageTitle = "Remove mod";
$pageDescription = "Remove a pending SVR.JS mod in SVR.JS Mods directory.";
} else {
$pageTitle = "Mod removed";
$pageDescription = "The mod has been removed.";
}
include 'header.php';
?>
The mod has been removed. Are you sure to remove the “” mod?Mod removed
Remove mod