Advertisement
Guest User

Untitled

a guest
Jul 19th, 2015
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Loader)
  6. *
  7. * @ Version : 2.0.0.3
  8. * @ Author : DeZender
  9. * @ Release on : 06.05.2013
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. class frlicx {
  15.  
  16. private $dd = null;
  17.  
  18. private $an = null;
  19.  
  20. private $cn = null;
  21.  
  22.  
  23. public function __construct() {
  24. global $config;
  25. if ($GLOBALS["cliMode"]) {
  26. return true;
  27. }
  28. $this->lf = $config["path"]["data"] . "/afian.dat";
  29. if ($_GET["alicense"] || $_GET["alic"]) {
  30. $this->aL();
  31. }
  32. if ($GLOBALS["install"]) {
  33. if (!(function_exists("mcrypt_decrypt"))) {
  34. exit("This application requires the PHP mcrypt extension.");
  35. return null;
  36. }
  37. }
  38. $fc = file_get_contents($this->lf);
  39. if (!$fc) {
  40. exit("Error: failed to read license data.");
  41. }
  42. $this->dd = $this->d($fc);
  43. if (!(is_array($this->dd))) {
  44. header("Not Implemented", true, 501);
  45. exit("This software application is not licensed to run on this server!");
  46. }
  47. if ($_GET["vlicense"] || $_GET["vlic"]) {
  48. $this->uL();
  49. }
  50. if ($_GET["license"] || $_GET["lic"]) {
  51. $this->showInfo();
  52. }
  53. $this->chE();
  54. $this->an = $this->getAN();
  55. if (!$_GET["page"]) {
  56. $this->cn = $this->getCN();
  57. if ($this->cn < 1) {
  58. exit("License error: Invalid number of database users. Expected at least 1.");
  59. }
  60. if ($this->an < $this->cn) {
  61. exit("License error: Invalid number of database users. Expected maximum " . $this->an . ", found " . $this->cn);
  62. }
  63. }
  64. }
  65.  
  66.  
  67. public function gH() {
  68. if (strlen($_SERVER["HTTP_HOST"]) < 2) {
  69. exit("License error: Invalid HTTP_HOST value.");
  70. }
  71. $h = strtolower($_SERVER["HTTP_HOST"]);
  72. $colPos = strpos($h, ":");
  73. if ($colPos) {
  74. $h = substr($h, 0, $colPos);
  75. }
  76. return ltrim($h, "w.");
  77. }
  78.  
  79.  
  80. private function gP() {
  81. return "^F1*13" . self::gH() . "R_un!";
  82. }
  83.  
  84.  
  85. private function d($d) {
  86. return @unserialize(trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, hash("sha256", $this->gP(), true), base64_decode($d), MCRYPT_MODE_ECB, mcrypt_create_iv(32, MCRYPT_RAND))));
  87. }
  88.  
  89.  
  90. public function getAN() {
  91. return $this->dd["u"];
  92. }
  93.  
  94.  
  95. public function getE() {
  96. return $this->dd["e"];
  97. }
  98.  
  99.  
  100. public function getK() {
  101. return $this->dd["k"];
  102. }
  103.  
  104.  
  105. public function getCN() {
  106. global $users;
  107. return $users->selectOneCol("COUNT(*)");
  108. }
  109.  
  110.  
  111. public function c($update = false) {
  112. if ($GLOBALS["cliMode"]) {
  113. return true;
  114. }
  115. if ($update || !$this->cn) {
  116. $this->cn = $this->getCN();
  117. }
  118. return $this->cn < $this->an;
  119. }
  120.  
  121.  
  122. public function chE() {
  123. global $config;
  124. $exp = $this->getE();
  125. .............................................................................
  126. ............................
  127. ..............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement