Revision 1457
Added by Dietmar over 13 years ago
uninstall.php | ||
---|---|---|
11 | 11 |
* @platform WebsiteBaker 2.8.x |
12 | 12 |
* @requirements PHP 5.2.2 and higher |
13 | 13 |
* @version $Id$ |
14 |
* @filesource $HeadURL: http://svn.websitebaker2.org/branches/2.8.x/wb/admin/settings/save.php $
|
|
15 |
* @lastmodified $Date: 2011-01-10 13:21:47 +0100 (Mo, 10. Jan 2011) $
|
|
14 |
* @filesource $HeadURL$ |
|
15 |
* @lastmodified $Date$ |
|
16 | 16 |
* |
17 | 17 |
*/ |
18 | 18 |
|
19 |
// Setup admin object |
|
20 |
require('../../config.php'); |
|
21 |
require_once(WB_PATH.'/framework/class.admin.php'); |
|
22 |
// suppress to print the header, so no new FTAN will be set |
|
23 |
$admin = new admin('Addons', 'templates_uninstall', false); |
|
24 |
if( !$admin->checkFTAN() ) |
|
25 |
{ |
|
26 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS']); |
|
27 |
} |
|
28 |
// After check print the header |
|
29 |
$admin->print_header(); |
|
30 |
|
|
19 | 31 |
// Check if user selected template |
20 | 32 |
if(!isset($_POST['file']) OR $_POST['file'] == "") { |
21 | 33 |
header("Location: index.php"); |
... | ... | |
30 | 42 |
exit(0); |
31 | 43 |
} |
32 | 44 |
|
33 |
// Setup admin object |
|
34 |
require('../../config.php'); |
|
35 |
require_once(WB_PATH.'/framework/class.admin.php'); |
|
36 |
$admin = new admin('Addons', 'templates_uninstall'); |
|
37 |
|
|
38 |
if( !$admin->checkFTAN() ) |
|
39 |
{ |
|
40 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS']); |
|
41 |
exit(); |
|
42 |
} |
|
43 |
|
|
44 | 45 |
// Include the WB functions file |
45 | 46 |
require_once(WB_PATH.'/framework/functions.php'); |
46 | 47 |
|
47 | 48 |
Also available in: Unified diff
Preparing 2.8.2 stable, last tests