Fix delete site
This commit is contained in:
parent
4ce405ca75
commit
30c04e6f73
@ -411,6 +411,9 @@ if (0 === $row_count): else: $page_count = (int)ceil($row_count / $StaticFunctio
|
||||
if (!empty($_POST['delsite'])) {
|
||||
if ($_SERVER['REQUEST_METHOD'] == 'DELETE' || ($_SERVER['REQUEST_METHOD'] == 'POST' && $_POST['_METHOD'] == 'DELETE')) {
|
||||
$deleteid = (int) $_POST['deleteid'];
|
||||
$SiteInfo->delSitePerms ('0');
|
||||
$SiteInfo->delSitePerms ('1');
|
||||
$SiteInfo->delSitePerms ('2');
|
||||
echo $SiteInfo->deleteSite($deleteid);
|
||||
echo "site deleted!";
|
||||
header('Location: ' . $_SERVER['PHP_SELF']);
|
||||
|
Loading…
Reference in New Issue
Block a user