Project

General

Profile

« Previous | Next » 

Revision 1457

Added by Dietmar almost 13 years ago

Preparing 2.8.2 stable, last tests

View differences:

uninstall.php
23 23

  
24 24
*/
25 25

  
26
// Setup admin object
27
require('../../config.php');
28
require_once(WB_PATH.'/framework/class.admin.php');
29
$admin = new admin('Addons', 'languages_uninstall', false);
30
if( !$admin->checkFTAN() )
31
{
32
	$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS']);
33
}
34
// After check print the header
35
$admin->print_header();
36

  
26 37
// Check if user selected language
27 38
if(!isset($_POST['code']) OR $_POST['code'] == "") {
28 39
	header("Location: index.php");
......
35 46
	exit(0);
36 47
}
37 48

  
38
// Setup admin object
39
require('../../config.php');
40
require_once(WB_PATH.'/framework/class.admin.php');
41
$admin = new admin('Addons', 'languages_uninstall');
42

  
43 49
// Include the WB functions file
44 50
require_once(WB_PATH.'/framework/functions.php');
45 51

  
46 52

  

Also available in: Unified diff