Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2022
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. <?php
  2.  
  3. define('FCPATH', dirname(__FILE__) . DIRECTORY_SEPARATOR);
  4. define("ACCESS", true);
  5. require 'AREA16/system/class/helpers.php';
  6. require 'AREA16/system/class/license.php';
  7. $message = "";
  8. if (is_file(FCPATH . "AREA16/system/private/license.ini")) {
  9. @unlink("install.php");
  10. exit();
  11. }
  12. if (isset($_GET['action'])) {
  13. if (isset($_POST['key'])) {
  14. $option = array(
  15. 'key' => trim($_POST['key'])
  16. );
  17.  
  18. $license = new license($option);
  19. if ($license->validate()['status']) {
  20. $setting = json_encode($license->generate_setting());
  21. $setup = $license->setUp();
  22.  
  23. if ($setup['status']) {
  24. $ini_file = FCPATH . "AREA16/system/private/license.ini";
  25. $json_setting = FCPATH. "AREA16/system/private/setting.json";
  26.  
  27. $dataIni = array(
  28. 'key' => trim($_POST['key'])
  29. );
  30.  
  31. write_php_ini($dataIni, $ini_file);
  32. write($json_setting, 'a+', $setting);
  33.  
  34.  
  35. $message = $setup['message'];
  36. $_SESSION['instaled'] = true;
  37. ...................................................
  38. ..............................
  39. ..........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement