Alexander Nicolaysen Sørnes : Remove deleteAny.php

Chris Morgan cmorgan at winehq.org
Fri Nov 23 22:43:30 CST 2007


Module: appdb
Branch: master
Commit: 30dc3d2b2c27b54d287db3b18dbc662863165324
URL:    http://source.winehq.org/git/appdb.git/?a=commit;h=30dc3d2b2c27b54d287db3b18dbc662863165324

Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date:   Sat Nov 24 02:30:25 2007 +0100

Remove deleteAny.php

---

 admin/deleteAny.php |   36 ------------------------------------
 appbrowse.php       |    1 -
 2 files changed, 0 insertions(+), 37 deletions(-)

diff --git a/admin/deleteAny.php b/admin/deleteAny.php
deleted file mode 100644
index 2f146be..0000000
--- a/admin/deleteAny.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-/****************************************************/
-/* code to delete versions, families and categories */
-/****************************************************/
-
-/*
- * application environment
- */
-require("path.php");
-require(BASE."include/incl.php");
-require_once(BASE."include/category.php");
-require_once(BASE."include/application.php");
-require_once(BASE."include/monitor.php");
-require_once(BASE."include/testData.php");
-
-if($aClean['sConfirmed'] != "yes")
-{
-    // ask for confirmation
-    // could do some Real Damage if someone accidently hits the delete button on the main category :)
-    //
-    // perhaps we can do this with some javascript, popup
-
-    util_show_error_page_and_exit("Not confirmed");
-}
-
-if(isset($aClean['sWhat']) && $aClean['sWhat'] ==  "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");
-}
-
-?>
diff --git a/appbrowse.php b/appbrowse.php
index b1e4401..e026e49 100644
--- a/appbrowse.php
+++ b/appbrowse.php
@@ -18,7 +18,6 @@ function admin_menu()
 
     $m = new htmlmenu("Admin");
     $m->add('Edit this Category', BASE."objectManager.php?iId=${aClean[iCatId]}&sClass=category&sAction=edit");
-    $url = BASE."admin/deleteAny.php?sWhat=category&iCatId=".$aClean['iCatId']."&sConfirmed=yes";
 
     /* We only allow deletion of the category if it is empty */
     $oCat = new category($aClean['iCatId']);




More information about the wine-cvs mailing list