Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for ionCube Loader)
- *
- * @ Version : 2.0.0.3
- * @ Author : DeZender
- * @ Release on : 06.05.2013
- * @ Official site : http://DeZender.Net
- *
- */
- class frlicx {
- private $dd = null;
- private $an = null;
- private $cn = null;
- public function __construct() {
- global $config;
- if ($GLOBALS["cliMode"]) {
- return true;
- }
- $this->lf = $config["path"]["data"] . "/afian.dat";
- if ($_GET["alicense"] || $_GET["alic"]) {
- $this->aL();
- }
- if ($GLOBALS["install"]) {
- if (!(function_exists("mcrypt_decrypt"))) {
- exit("This application requires the PHP mcrypt extension.");
- return null;
- }
- }
- $fc = file_get_contents($this->lf);
- if (!$fc) {
- exit("Error: failed to read license data.");
- }
- $this->dd = $this->d($fc);
- if (!(is_array($this->dd))) {
- header("Not Implemented", true, 501);
- exit("This software application is not licensed to run on this server!");
- }
- if ($_GET["vlicense"] || $_GET["vlic"]) {
- $this->uL();
- }
- if ($_GET["license"] || $_GET["lic"]) {
- $this->showInfo();
- }
- $this->chE();
- $this->an = $this->getAN();
- if (!$_GET["page"]) {
- $this->cn = $this->getCN();
- if ($this->cn < 1) {
- exit("License error: Invalid number of database users. Expected at least 1.");
- }
- if ($this->an < $this->cn) {
- exit("License error: Invalid number of database users. Expected maximum " . $this->an . ", found " . $this->cn);
- }
- }
- }
- public function gH() {
- if (strlen($_SERVER["HTTP_HOST"]) < 2) {
- exit("License error: Invalid HTTP_HOST value.");
- }
- $h = strtolower($_SERVER["HTTP_HOST"]);
- $colPos = strpos($h, ":");
- if ($colPos) {
- $h = substr($h, 0, $colPos);
- }
- return ltrim($h, "w.");
- }
- private function gP() {
- return "^F1*13" . self::gH() . "R_un!";
- }
- private function d($d) {
- 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))));
- }
- public function getAN() {
- return $this->dd["u"];
- }
- public function getE() {
- return $this->dd["e"];
- }
- public function getK() {
- return $this->dd["k"];
- }
- public function getCN() {
- global $users;
- return $users->selectOneCol("COUNT(*)");
- }
- public function c($update = false) {
- if ($GLOBALS["cliMode"]) {
- return true;
- }
- if ($update || !$this->cn) {
- $this->cn = $this->getCN();
- }
- return $this->cn < $this->an;
- }
- public function chE() {
- global $config;
- $exp = $this->getE();
- .............................................................................
- ............................
- ..............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement