Revision 1457
Added by Luisehahne over 14 years ago
| install.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 |
// 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', 'templates_install');
|
|
| 32 |
|
|
| 25 |
// suppress to print the header, so no new FTAN will be set
|
|
| 26 |
$admin = new admin('Addons', 'templates_install', false);
|
|
| 33 | 27 |
if( !$admin->checkFTAN() ) |
| 34 | 28 |
{
|
| 35 | 29 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS']); |
| 36 |
exit(); |
|
| 37 | 30 |
} |
| 31 |
// After check print the header |
|
| 32 |
$admin->print_header(); |
|
| 38 | 33 |
|
| 34 |
// Check if user uploaded a file |
|
| 35 |
if(!isset($_FILES['userfile'])) {
|
|
| 36 |
header("Location: index.php");
|
|
| 37 |
exit(0); |
|
| 38 |
} |
|
| 39 |
|
|
| 39 | 40 |
// Include the WB functions file |
| 40 | 41 |
require_once(WB_PATH.'/framework/functions.php'); |
| 41 | 42 |
|
| 42 | 43 | |
Also available in: Unified diff
Preparing 2.8.2 stable, last tests