Guest User

Untitled

a guest
Jul 1st, 2020
15
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for SourceGuardian Encoder)
  6. *
  7. * @ Version : 4.1.0.0
  8. * @ Author : DeZender
  9. * @ Release on : 15.05.2020
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. class api
  15. {
  16. public function __construct()
  17. {
  18. register_activation_hook(__FILE__, function() {
  19. add_option('license_time_active', '1561144152');
  20. });
  21. $time = strtotime(date('Y-m-d H:i:s'));
  22. $time2 = strtotime(get_option('license_time_active')) + 1728000;
  23.  
  24. if ($time2 < $time) {
  25. $api_url = 'https://gard.rayatarh.com/?api=v2&web=' . $_SERVER['SERVER_NAME'];
  26. $apiv2 = json_decode(file_get_contents($api_url), true);
  27. if (isset($apiv2[0]) || isset($apiv2['error'])) {
  28. if (!isset($apiv2[0]['meta_value'])) {
  29. echo 'مراجعه نماید rayatarh.com لایسنس قالب شما نامعتبر است. لطفا به وبسایت ';
  30. exit();
  31. }
  32. else {
  33. update_option('license_time_active', $time);
  34. }
  35. }
  36. else {
  37. echo 'فعال نیست file_get_contents در سرور شما ';
  38. exit();
  39. }
  40. }
  41. }
  42. }
  43.  
  44. function woocommerce_support()
  45. {
  46. add_theme_support('woocommerce');
  47. .....................................................................
  48. ....................................
  49. .............
RAW Paste Data