Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.0.9.0
- * @ Author : DeZender
- * @ Release on : 08.08.2019
- * @ Official site : http://DeZender.Net
- *
- */
- define('INSTALLATION_PAGE', true);
- require_once '../load.php';
- if (defined('SYSTEM_INSTALLED') && (SYSTEM_INSTALLED !== false)) {
- do_deny_access();
- }
- if (empty($DATA) || !is_array($DATA)) {
- $DATA = [];
- }
- if (empty($NOTICES) || !is_array($NOTICES)) {
- $NOTICES = [];
- }
- $DATA['install'] = [];
- $DATA['install']['input'] = [];
- $_TEMPLATE = [];
- $DATA['install']['site_url'] = rtrim(explode('/install', $_OPTIONS['inline']['request_url'])[0], '/');
- $DATA['install']['url'] = $DATA['install']['site_url'] . '/install/index.php';
- $_TEMPLATE['template_url'] = $DATA['install']['site_url'] . '/install/template';
- $_TEMPLATE['template_path'] = dirname(__FILE__) . '/template';
- $_TEMPLATE['file'] = 'home.html';
- $go = 'home';
- if (session_status() == PHP_SESSION_NONE) {
- session_start();
- }
- if (empty($_SESSION[SESSION_PREFIX . '_post_token'])) {
- $_SESSION[SESSION_PREFIX . '_post_token'] = md5(time() . rand(100, 1000));
- $DATA['install']['post_token'] = $_SESSION[SESSION_PREFIX . '_post_token'];
- }
- else {
- $DATA['install']['post_token'] = $_SESSION[SESSION_PREFIX . '_post_token'];
- }
- if (!empty($_REQUEST['post_token']) && ($_REQUEST['post_token'] == $DATA['install']['post_token'])) {
- $_SESSION[SESSION_PREFIX . '_post_token'] = md5(time() . rand(100, 1000));
- $DATA['install']['post_token'] = $_SESSION[SESSION_PREFIX . '_post_token'];
- $go = 'process';
- }
- $inputData = $_REQUEST;
- switch ($go) {
- case 'home':
- break;
- case 'process':
- $installationValid = false;
- if (is_file(dirname(__FILE__) . '/tables.php') && is_file(dirname(__FILE__) . '/mails.php')) {
- $installationValid = true;
- require_once dirname(__FILE__) . '/tables.php';
- include dirname(__FILE__) . '/mails.php';
- foreach (['installation_check_sql_connection', 'installation_create_sql_tables', 'installation_drop_sql_tables'] as $key) {
- if (!function_exists($key)) {
- $installationValid = false;
- }
- }
- if ($installationValid && (empty($installMailTemplates) || !is_array($installMailTemplates) || empty($installMailPartials) || !is_array($installMailPartials))) {
- $installationValid = false;
- }
- }
- if (!$installationValid) {
- do_add_notice('Corrupted installation source', 'danger');
- break;
- }
- if (!installation_check_sql_connection()) {
- do_add_notice('Couldn\'t open mySQL Connection, please check config.php', 'danger');
- break;
- }
- $v = new validator($_POST);
- $v->rule('required', ['site_info', 'admin']);
- $v->rule('array', ['site_info', 'admin']);
- $v->rule('in', 'license_method', ['key', 'file']);
- if (!empty($_REQUEST['license_method']) && ($_REQUEST['license_method'] == 'key')) {
- $v->rule('required', 'license_key');
- $v->rule('regex', 'license_key', '/^[0-9A-Za-z]{1,20}$/');
- ..................................................................................
- .................................................
- ...................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement