Jump to content
Bicrypto v3.7.0 + All Plugins ×

Recommended Posts

  • 2 weeks later...
18 hours ago, Rashed said:

@Gaeius Gutierrez Hi , can you please share with us . i need this . ?

Can you help me make the Flutter apps work?

Use this code  to null 5.5.5
 

<?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) {

}

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') {
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 = 1;
$addon->save();

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

Link to comment
Share on other sites

On 2/1/2022 at 2:32 PM, Gaeius Gutierrez said:

Can you help me make the Flutter apps work?

Use this code  to null 5.5.5
 

<?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) {

}

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') {
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 = 1;
$addon->save();

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

Where to place it for null?

Link to comment
Share on other sites

  • Mahmoud changed the title to Active eCommerce CMS v5.5.7 + All Addons

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...