Advertisement
Guest User

Untitled

a guest
Jul 10th, 2016
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.96 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.4
  8. * @ Author : DeZender
  9. * @ Release on : 21.10.2015
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. $file = "license.txt";
  15. $lines = explode("\n", file_get_contents($file));
  16. $licensekey = $lines[0];
  17. $localkey = "9tjIxIzNwgDMwIjI6gjOztjIlRXYkt2Ylh2YioTO6M3OicmbpNnblNWasx1cyVmdyV2ccNXZsVHZv1GX\r
  18. zNWbodHXlNmc192czNWbodHXzN2bkRHacBFUNFEWcNHduVWb1N2bExFd0FWTcNnclNXVcpzQioDM4ozc\r
  19. 7ISey9GdjVmcpRGZpxWY2JiO0EjOztjIx4CMuAjL3ITMioTO6M3OiAXaklGbhZnI6cjOztjI0N3boxWY\r
  20. j9Gbuc3d3xCdz9GasF2YvxmI6MjM6M3Oi4Wah12bkRWasFmdioTMxozc7ISeshGdu9WTiozN6M3OiUGb\r
  21. jl3Yn5WasxWaiJiOyEjOztjI3ATL4ATL4ADMyIiOwEjOztjIlRXYkVWdkRHel5mI6ETM6M3OicDMtcDM\r
  22. tgDMwIjI6ATM6M3OiUGdhR2ZlJnI6cjOztjIlNXYlxEI5xGa052bNByUD1ESXJiO5EjOztjIl1WYuR3Y\r
  23. 1R2byBnI6ETM6M3OicjI6EjOztjIklGdjVHZvJHcioTO6M3Oi02bj5ycj1Ga3BEd0FWbioDNxozc7ICb\r
  24. pFWblJiO1ozc7IyUD1ESXBCd0FWTioDMxozc7ISZtFmbkVmclR3cpdWZyJiO0EjOztjIlZXa0NWQiojN\r
  25. 6M3OiMXd0FGdzJiO2ozc7pjMxoTY8baca0885830a33725148e94e693f3f073294c0558d38e31f844\r
  26. c5e399e3c16a";
  27. if (!file_exists("includes/initializeCPA.php"))
  28. {
  29. exit("validator is missing....");
  30. }
  31. require_once "includes/initializeCPA.php";
  32. if (!empty($acHash))
  33. {
  34. $toCheck = 1;
  35. if ($acHash == md5(date("Y-m-d", strtotime("now")) . "Active-Site-Validated-For-" . urlencode($_SERVER["HTTP_HOST"])))
  36. {
  37. $___HSC___scValid______ = "active";
  38. $toCheck = 0;
  39. }
  40. else
  41. {
  42. if ($acHash == md5(date("Y-m-d", strtotime("now")) . "-INVALID-For-" . urlencode($_SERVER["HTTP_HOST"])))
  43. {
  44. $___HSC___scValid______ = "invalid";
  45. }
  46. else
  47. {
  48. if ($acHash == md5(date("Y-m-d", strtotime("now")) . "-EXPIRED-For-" . urlencode($_SERVER["HTTP_HOST"])))
  49. {
  50. $___HSC___scValid______ = "expired";
  51. }
  52. else
  53. {
  54. if ($acHash == md5(date("Y-m-d", strtotime("now")) . "-SUSPENDED-For-" . urlencode($_SERVER["HTTP_HOST"])))
  55. {
  56. $___HSC___scValid______ = "suspended";
  57. }
  58. }
  59. }
  60. }
  61. }
  62. else
  63. {
  64. $toCheck = 1;
  65. }
  66. if ($toCheck == 1)
  67. {
  68. $results = check_license($licensekey, $localkey);
  69. $fp = fopen("includes/initializeCPA.php", "w");
  70. if (!$fp)
  71. {
  72. exit("validator missing.....");
  73. }
  74. if ($results["status"] == "Active")
  75. {
  76. $md5HASH = md5(date("Y-m-d", strtotime("now")) . "Active-Site-Validated-For-" . urlencode($_SERVER["HTTP_HOST"]));
  77. $phpWrite = "<? \$acHash = \"" . $md5HASH . "\"; ?>";
  78. fwrite($fp, $phpWrite);
  79. $___HSC___scValid______ = "active";
  80. }
  81. else
  82. {
  83. if ($results["status"] == "Invalid")
  84. {
  85. $md5HASH = md5(date("Y-m-d", strtotime("now")) . "-INVALID-For-" . urlencode($_SERVER["HTTP_HOST"]));
  86. $phpWrite = "<? \$acHash = \"" . $md5HASH . "\"; ?>";
  87. fwrite($fp, $phpWrite);
  88. $___HSC___scValid______ = "Your License is Invalid";
  89. }
  90. else
  91. {
  92. if ($results["status"] == "Expired")
  93. {
  94. $md5HASH = md5(date("Y-m-d", strtotime("now")) . "-EXPIRED-For-" . urlencode($_SERVER["HTTP_HOST"]));
  95. $phpWrite = "<? \$acHash = \"" . $md5HASH . "\"; ?>";
  96. fwrite($fp, $phpWrite);
  97. $___HSC___scValid______ = "Your License is Expired";
  98. }
  99. else
  100. {
  101. if ($results["status"] == "Suspended")
  102. {
  103. $md5HASH = md5(date("Y-m-d", strtotime("now")) . "-SUSPENDED-For-" . urlencode($_SERVER["HTTP_HOST"]));
  104. $phpWrite = "<? \$acHash = \"" . $md5HASH . "\"; ?>";
  105. fwrite($fp, $phpWrite);
  106. $___HSC___scValid______ = "Your License is Suspended";
  107. }
  108. }
  109. }
  110. }
  111. }
  112. if ($___HSC___scValid______ != "active")
  113. {
  114. echo $___HSC___scValid______;
  115. }
  116. if (!defined("DIR_SEP"))
  117. {
  118. define("DIR_SEP", DIRECTORY_SEPARATOR);
  119. }
  120. if (!defined("SMARTY_DIR"))
  121. {
  122. define("SMARTY_DIR", dirname(__FILE__) . DIRECTORY_SEPARATOR);
  123. }
  124. if (!defined("SMARTY_CORE_DIR"))
  125. {
  126. define("SMARTY_CORE_DIR", SMARTY_DIR . "internals" . DIRECTORY_SEPARATOR);
  127. }
  128. define("SMARTY_PHP_PASSTHRU", 0);
  129. define("SMARTY_PHP_QUOTE", 1);
  130. define("SMARTY_PHP_REMOVE", 2);
  131. define("SMARTY_PHP_ALLOW", 3);
  132.  
  133.  
  134. class Smarty {
  135.  
  136.  
  137. public $template_dir = "templates";
  138. public $compile_dir = "templates_c";
  139. public $config_dir = "configs";
  140. public $plugins_dir = array(0 => "plugins");
  141. public $debugging = false;
  142. public $error_reporting = null;
  143. public $debug_tpl = "";
  144. public $debugging_ctrl = "NONE";
  145. public $compile_check = true;
  146. public $force_compile = false;
  147. public $caching = 0;
  148. public $cache_dir = "cache";
  149. public $cache_lifetime = 3600;
  150. public $cache_modified_check = false;
  151. public $php_handling = SMARTY_PHP_PASSTHRU;
  152. public $security = false;
  153. public $secure_dir = array();
  154. public $security_settings = array("PHP_HANDLING" => false, "IF_FUNCS" => array(0 => "array", 1 => "list", 2 => "isset", 3 => "empty", 4 => "count", 5 => "sizeof", 6 => "in_array", 7 => "is_array", 8 => "true", 9 => "false", 10 => "null"), "INCLUDE_ANY" => false, "PHP_TAGS" => false, "MODIFIER_FUNCS" => array(0 => "count"), "ALLOW_CONSTANTS" => false, "ALLOW_SUPER_GLOBALS" => true);
  155. public $trusted_dir = array();
  156. public $left_delimiter = "{";
  157. public $right_delimiter = "}";
  158. public $request_vars_order = "EGPCS";
  159. public $request_use_auto_globals = true;
  160. public $compile_id = null;
  161. public $use_sub_dirs = false;
  162. public $default_modifiers = array();
  163. public $default_resource_type = "file";
  164. public $cache_handler_func = null;
  165. public $autoload_filters = array();
  166. public $config_overwrite = true;
  167. public $config_booleanize = true;
  168. public $config_read_hidden = false;
  169. public $config_fix_newlines = true;
  170. public $default_template_handler_func = "";
  171. public $compiler_file = "Smarty_Compiler.class.php";
  172. public $compiler_class = "Smarty_Compiler";
  173. public $config_class = "Config_File";
  174. public $_tpl_vars = array();
  175. public $_smarty_vars = null;
  176. public $_sections = array();
  177. public $_foreach = array();
  178. public $_tag_stack = array();
  179. public $_conf_obj = null;
  180. public $_config = array(0 => array("vars" => array(), "files" => array()));
  181. public $_smarty_md5 = "f8d698aea36fcbead2b9d5359ffca76f";
  182. public $_version = "2.6.26";
  183. public $_inclusion_depth = 0;
  184. public $_compile_id = null;
  185. public $_smarty_debug_id = "SMARTY_DEBUG";
  186. public $_smarty_debug_info = array();
  187. public $_cache_info = array();
  188. public $_file_perms = 420;
  189. public $_dir_perms = 505;
  190. public $_reg_objects = array();
  191. public $_plugins = array("modifier" => array(), "function" => array(), "block" => array(), "compiler" => array(), "prefilter" => array(), "postfilter" => array(), "outputfilter" => array(), "resource" => array(), "insert" => array());
  192. public $_cache_serials = array();
  193. public $_cache_include = null;
  194. public $_cache_including = false;
  195. public function Smarty() {
  196.  
  197. $this->assign("SCRIPT_NAME", isset($_SERVER["SCRIPT_NAME"]) ? ($_SERVER["SCRIPT_NAME"]) : ($GLOBALS["HTTP_SERVER_VARS"]["SCRIPT_NAME"]));
  198. return;
  199. }
  200.  
  201. public function assign($tpl_var, $value = null) {
  202.  
  203. if (is_array($tpl_var))
  204. {
  205. ............................................................................
  206. ..........................................
  207. ..............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement