Remove unused code from deleteAny.php
This commit is contained in:
committed by
Chris Morgan
parent
e82dc74162
commit
1a91a5cdf2
@@ -23,36 +23,14 @@ if($aClean['sConfirmed'] != "yes")
|
||||
util_show_error_page_and_exit("Not confirmed");
|
||||
}
|
||||
|
||||
if($aClean['sWhat'])
|
||||
if(isset($aClean['sWhat']) && $aClean['sWhat'] == "category")
|
||||
{
|
||||
switch($aClean['sWhat'])
|
||||
{
|
||||
case "category":
|
||||
// delete category and the apps in it
|
||||
$oCategory = new Category($aClean['iCatId']);
|
||||
if(!$oCategory->delete())
|
||||
util_show_error_page_and_exit();
|
||||
else
|
||||
util_redirect_and_exit(BASE."appbrowse.php");
|
||||
break;
|
||||
case "appFamily":
|
||||
// delete app family & all its versions
|
||||
$oApp = new Application($aClean['iAppId']);
|
||||
if(!$oApp->delete())
|
||||
util_show_error_page_and_exit();
|
||||
else
|
||||
util_redirect_and_exit(BASE."appbrowse.php");
|
||||
break;
|
||||
case "appVersion":
|
||||
$oVersion = new Version($aClean['iVersionId']);
|
||||
if(!$oVersion->delete())
|
||||
util_show_error_page_and_exit();
|
||||
else
|
||||
{
|
||||
$oApp = new application($aClean['iAppId']);
|
||||
util_redirect_and_exit($oApp->objectMakeUrl());
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user