Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- define('FCPATH', dirname(__FILE__) . DIRECTORY_SEPARATOR);
- define("ACCESS", true);
- require 'AREA16/system/class/helpers.php';
- require 'AREA16/system/class/license.php';
- $message = "";
- if (is_file(FCPATH . "AREA16/system/private/license.ini")) {
- @unlink("install.php");
- exit();
- }
- if (isset($_GET['action'])) {
- if (isset($_POST['key'])) {
- $option = array(
- 'key' => trim($_POST['key'])
- );
- $license = new license($option);
- if ($license->validate()['status']) {
- $setting = json_encode($license->generate_setting());
- $setup = $license->setUp();
- if ($setup['status']) {
- $ini_file = FCPATH . "AREA16/system/private/license.ini";
- $json_setting = FCPATH. "AREA16/system/private/setting.json";
- $dataIni = array(
- 'key' => trim($_POST['key'])
- );
- write_php_ini($dataIni, $ini_file);
- write($json_setting, 'a+', $setting);
- $message = $setup['message'];
- $_SESSION['instaled'] = true;
- ...................................................
- ..............................
- ..........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement