Project

General

Profile

« Previous | Next » 

Revision 268

Added by ryan over 18 years ago

Added extra protection from deleting all addons if none selected

View differences:

trunk/wb/admin/templates/uninstall.php
30 30
	$file = $_POST['file'];
31 31
}
32 32

  
33
// Extra protection
34
if(trim($file) == '') {
35
	header("Location: index.php");
36
}
37

  
33 38
// Setup admin object
34 39
require('../../config.php');
35 40
require_once(WB_PATH.'/framework/class.admin.php');
trunk/wb/admin/languages/uninstall.php
28 28
	header("Location: index.php");
29 29
}
30 30

  
31
// Extra protection
32
if(trim($_POST['code']) == '') {
33
	header("Location: index.php");
34
}
35

  
31 36
// Setup admin object
32 37
require('../../config.php');
33 38
require_once(WB_PATH.'/framework/class.admin.php');
trunk/wb/admin/modules/uninstall.php
30 30
	$file = $_POST['file'];
31 31
}
32 32

  
33
// Extra protection
34
if(trim($file) == '') {
35
	header("Location: index.php");
36
}
37

  
33 38
// Setup admin object
34 39
require('../../config.php');
35 40
require_once(WB_PATH.'/framework/class.admin.php');

Also available in: Unified diff