Revision 1457
Added by Luisehahne over 14 years ago
| install.php | ||
|---|---|---|
| 23 | 23 |
|
| 24 | 24 |
*/ |
| 25 | 25 |
|
| 26 |
// Check if user uploaded a file |
|
| 27 |
if(!isset($_FILES['userfile'])) {
|
|
| 28 |
header("Location: index.php");
|
|
| 29 |
exit(0); |
|
| 30 |
} |
|
| 31 |
|
|
| 32 | 26 |
// do not display notices and warnings during installation |
| 33 | 27 |
error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING); |
| 34 | 28 |
|
| 35 | 29 |
// Setup admin object |
| 36 | 30 |
require('../../config.php');
|
| 37 | 31 |
require_once(WB_PATH.'/framework/class.admin.php'); |
| 38 |
$admin = new admin('Addons', 'languages_install');
|
|
| 32 |
$admin = new admin('Addons', 'languages_install', false);
|
|
| 33 |
if( !$admin->checkFTAN() ) |
|
| 34 |
{
|
|
| 35 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS']); |
|
| 36 |
} |
|
| 37 |
// After check print the header |
|
| 38 |
$admin->print_header(); |
|
| 39 | 39 |
|
| 40 |
// Check if user uploaded a file |
|
| 41 |
if(!isset($_FILES['userfile'])) {
|
|
| 42 |
header("Location: index.php");
|
|
| 43 |
exit(0); |
|
| 44 |
} |
|
| 45 |
|
|
| 40 | 46 |
// Include the WB functions file |
| 41 | 47 |
require_once(WB_PATH.'/framework/functions.php'); |
| 42 | 48 |
|
| 43 | 49 | |
Also available in: Unified diff
Preparing 2.8.2 stable, last tests