Guest User

Untitled

a guest
Apr 21st, 2020
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.0.10.0
  8. * @ Author : DeZender
  9. * @ Release on : 09.04.2020
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function autoloader($className)
  15. {
  16. $classFile = realpath('.') . '/app/classes/class.' . strtolower($className) . '.php';
  17.  
  18. if (file_exists($classFile)) {
  19. require $classFile;
  20. }
  21. }
  22.  
  23. session_start();
  24. ob_start();
  25. require 'system/config.php';
  26.  
  27. if (base64_decode($config['licence']['key'], true)) {
  28. $licence = explode('::', base64_decode($config['licence']['key']), 2);
  29. if (isset($licence[0]) && isset($licence[1])) {
  30. $iv = $licence[1];
  31. $licence = $licence[0];
  32. $licence = json_decode(openssl_decrypt($licence, 'aes-256-cbc', md5('*-*mgLisansKontrolgm*-*'), 0, $iv), true);
  33. $_site_url = (substr($_SERVER['HTTP_HOST'], 0, 4) == 'www.' ? substr($_SERVER['HTTP_HOST'], 4) : $_SERVER['HTTP_HOST']);
  34. if (!isset($licence['site_url']) || ($licence['site_url'] != $_site_url)) {
  35. exit('Lisanssiz kullanim!');
  36. }
  37. }
  38. else {
  39. exit('Lisanssiz kullanim!');
  40. }
  41. }
  42. else {
  43. exit('Lisanssiz kullanim!');
  44. }
  45.  
  46. spl_autoload_register('autoloader');
  47. Helper::Load();
  48.  
  49. try {
  50. $db = new PDO('mysql:host=' . $config['db']['host'] . ';dbname=' . $config['db']['name'] . ';charset=utf8', '' . $config['db']['user'] . '', '' . $config['db']['pass'] . '');
  51. }
  52. catch (PDOException $e) {
  53. echo $e->getMessage();
  54. ..............................................................................
  55. ........................................................
  56. ..............................
Add Comment
Please, Sign In to add comment