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