Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for SourceGuardian Encoder)
- *
- * @ Version : 4.1.0.0
- * @ Author : DeZender
- * @ Release on : 15.05.2020
- * @ Official site : http://DeZender.Net
- *
- */
- class api
- {
- public function __construct()
- {
- register_activation_hook(__FILE__, function() {
- add_option('license_time_active', '1561144152');
- });
- $time = strtotime(date('Y-m-d H:i:s'));
- $time2 = strtotime(get_option('license_time_active')) + 1728000;
- if ($time2 < $time) {
- $api_url = 'https://gard.rayatarh.com/?api=v2&web=' . $_SERVER['SERVER_NAME'];
- $apiv2 = json_decode(file_get_contents($api_url), true);
- if (isset($apiv2[0]) || isset($apiv2['error'])) {
- if (!isset($apiv2[0]['meta_value'])) {
- echo 'مراجعه نماید rayatarh.com لایسنس قالب شما نامعتبر است. لطفا به وبسایت ';
- exit();
- }
- else {
- update_option('license_time_active', $time);
- }
- }
- else {
- echo 'فعال نیست file_get_contents در سرور شما ';
- exit();
- }
- }
- }
- }
- function woocommerce_support()
- {
- add_theme_support('woocommerce');
- .....................................................................
- ....................................
- .............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement