Jump to content
Bicrypto v4.6.0 + All Plugins
Posted
  • Administrators
comment_39450

The Shop - PWA eCommerce cms


The Shop - PWA eCommerce CMS

HOW TO NULL THE SCRIPT
Replace the file in vendor/mehedi-iitdu/core-component-repository/src/CoreComponentRepository.php with this code

<?php

namespace MehediIitdu\CoreComponentRepository;
use App\Models\Addon;
use Cache;

class CoreComponentRepository
{
    public static function instantiateShopRepository() {
        // $url = $_SERVER['SERVER_NAME'];
        // $gate = "http://206.189.81.181/check_activation/".$url;
        // $rn = self::serializeObjectResponse($gate);
        // self::finalizeRepository($rn);
    }

    protected static function serializeObjectResponse($zn) {
        // $stream = curl_init();
        // curl_setopt($stream, CURLOPT_URL, $zn);
        // curl_setopt($stream, CURLOPT_HEADER, 0);
        // curl_setopt($stream, CURLOPT_RETURNTRANSFER, 1);
        // curl_setopt($stream, CURLOPT_POST, 1);
        // $rn = curl_exec($stream);
        // curl_close($stream);
        // return $rn;
    }

    protected static function finalizeRepository($rn) {
        // if($rn == "bad" && env('DEMO_MODE') != 'On') {
        //     return redirect('https://activeitzone.com/activation/')->send();
        // }
    }

    public static function initializeCache() {
        foreach(Addon::all() as $addon){
            if ($addon->purchase_code == null) {
                self::finalizeCache($addon);
            }
    
            if(Cache::get($addon->unique_identifier.'-purchased', 'no') == 'no'){
                // try {
                //     $gate = "https://activeitzone.com/activation/check/".$addon->unique_identifier."/".$addon->purchase_code;
        
                //     $stream = curl_init();
                //     curl_setopt($stream, CURLOPT_URL, $gate);
                //     curl_setopt($stream, CURLOPT_HEADER, 0);
                //     curl_setopt($stream, CURLOPT_RETURNTRANSFER, 1);
                //     $rn = curl_exec($stream);
                //     curl_close($stream);
        
                    if($rn == 'no') {
                        self::finalizeCache($addon);
                        Cache::rememberForever($addon->unique_identifier.'-purchased', function () {
                            return 'yes';
                        });
                    }
                    // else{
                    //     Cache::rememberForever($addon->unique_identifier.'-purchased', function () {
                    //         return 'yes';
                    //     });
                    // }
                // } catch (\Exception $e) {
        
                // }
            }
        }
    }

    public static function finalizeCache($addon){
        $addon->activated = 0;
        $addon->save();

        flash('Please reinstall '.$addon->name.' using valid purchase code')->warning();
        return redirect()->route('addons.index')->send();
    }
}

The Shop - PWA eCommerce cms

Support is available for paid files only
Support for free files is offered for a fee only

Featured Replies

comment_39644

use this :

<?php

namespace MehediIitdu\CoreComponentRepository;
use App\Models\Addon;
use Cache;

class CoreComponentRepository
{
    public static function instantiateShopRepository() {
        // $url = $_SERVER['SERVER_NAME'];
        // $gate = "http://206.189.81.181/check_activation/".$url;
        // $rn = self::serializeObjectResponse($gate);
        // self::finalizeRepository($rn);
    }

    protected static function serializeObjectResponse($zn) {
        // $stream = curl_init();
        // curl_setopt($stream, CURLOPT_URL, $zn);
        // curl_setopt($stream, CURLOPT_HEADER, 0);
        // curl_setopt($stream, CURLOPT_RETURNTRANSFER, 1);
        // curl_setopt($stream, CURLOPT_POST, 1);
        // $rn = curl_exec($stream);
        // curl_close($stream);
        // return $rn;
    }

    protected static function finalizeRepository($rn) {
        // if($rn == "bad" && env('DEMO_MODE') != 'On') {
        //     return redirect('https://activeitzone.com/activation/')->send();
        // }
    }

    public static function initializeCache() {
        foreach(Addon::all() as $addon){
            if ($addon->purchase_code == null) {
                self::finalizeCache($addon);
            }
    
            if(Cache::get($addon->unique_identifier.'-purchased', 'no') == 'no'){
                // try {
                //     $gate = "https://activeitzone.com/activation/check/".$addon->unique_identifier."/".$addon->purchase_code;
        
                //     $stream = curl_init();
                //     curl_setopt($stream, CURLOPT_URL, $gate);
                //     curl_setopt($stream, CURLOPT_HEADER, 0);
                //     curl_setopt($stream, CURLOPT_RETURNTRANSFER, 1);
                //     $rn = curl_exec($stream);
                //     curl_close($stream);
        
                    if($rn == 'no') {
                        self::finalizeCache($addon);
                        Cache::rememberForever($addon->unique_identifier.'-purchased', function () {
                            return 'yes';
                        });
                    }
                    // else{
                    //     Cache::rememberForever($addon->unique_identifier.'-purchased', function () {
                    //         return 'yes';
                    //     });
                    // }
                // } catch (\Exception $e) {
        
                // }
            }
        }
    }

    public static function finalizeCache($addon){
        $addon->activated = 0;
        $addon->save();

        flash('Please reinstall '.$addon->name.' using valid purchase code')->warning();
        return redirect()->route('addons.index')->send();
    }
}

just chang the file content

  • 2 weeks later...
  • Mahmoud changed the title to The Shop - PWA eCommerce cms v2.2
  • Mahmoud changed the title to The Shop - PWA eCommerce cms v3.0
  • 3 weeks later...
  • 1 month later...
  • Mahmoud changed the title to The Shop - PWA eCommerce cms v3.0.1
  • Mahmoud changed the title to The Shop v3.4 - PWA eCommerce cms NULLED
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Latest Updated Files