Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP8 Decoder for ionCube Encoder)
- *
- * @ Version : 8.1.0.9
- * @ Author : DeZender
- * @ Release on : 27.10.2023
- * @ Official site : http://DeZender.Net
- *
- */
- namespace Backend;
- /**
- * Class ModulesController
- * @package Backend
- */
- class ModulesController extends BaseController
- {
- /**
- * @var ModuleRepository
- */
- protected $modulesRepository = null;
- /**
- * ModulesController constructor.
- */
- public function __construct()
- {
- parent::__construct();
- $this->modulesRepository = app('ModuleRepository');
- }
- /**
- * @return mixed|View
- */
- public function addons()
- {
- view_share(['headerCustomClass' => 'content-header-small']);
- $this->pageBreadcrumbs->add(trans('backend/global.my_modules'), 'backend/modules');
- cache_forget('backend.common.addons.bought');
- $availableAddons = cache_remember('backend.common.addons.bought', 1440, function() {
- $result = license_client()->addons->verifyAddon(['key' => str_replace('-', '', config('app.licensekey')), 'list-only' => 1]);
- if (array_get($result, 'data', [])) {
- return array_get($result, 'data', []);
- }
- return [];
- });
- $availableAddons = (is_array($availableAddons) ? $availableAddons : []);
- $this->modulesRepository->boughtList($availableAddons);
- .........................................................................................
- .....................................................
- ......................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement