Revision 1457
Added by Luisehahne over 14 years ago
| details.php | ||
|---|---|---|
| 26 | 26 |
// Include the config code |
| 27 | 27 |
require('../../config.php');
|
| 28 | 28 |
|
| 29 |
// Print admin header |
|
| 30 |
require_once(WB_PATH.'/framework/class.admin.php'); |
|
| 31 |
$admin = new admin('Addons', 'languages_view', false);
|
|
| 32 |
if( !$admin->checkFTAN() ) |
|
| 33 |
{
|
|
| 34 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS']); |
|
| 35 |
} |
|
| 36 |
// After check print the header |
|
| 37 |
$admin->print_header(); |
|
| 38 |
|
|
| 29 | 39 |
// Get language name |
| 30 | 40 |
if(!isset($_POST['code']) OR $_POST['code'] == "") {
|
| 31 | 41 |
$code = ''; |
| ... | ... | |
| 45 | 55 |
exit(0); |
| 46 | 56 |
} |
| 47 | 57 |
|
| 48 |
// Print admin header |
|
| 49 |
require_once(WB_PATH.'/framework/class.admin.php'); |
|
| 50 |
$admin = new admin('Addons', 'languages_view');
|
|
| 51 |
|
|
| 52 | 58 |
// Setup language object |
| 53 | 59 |
$template = new Template(THEME_PATH.'/templates'); |
| 54 | 60 |
$template->set_file('page', 'languages_details.htt');
|
| 55 | 61 | |
Also available in: Unified diff
Preparing 2.8.2 stable, last tests