芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/kwesioben.com/paymoney/app/helpers/modules.php
get('core'); }); } } if (!function_exists('getCustomModules')) { /** * get custom modules based on a condition. * * @return array */ function getCustomModules(): array { return array_filter(getAllModules(), function ($coreModule) { return !$coreModule->get('core'); }); } } if (!function_exists('getActiveModules')) { /** * get Active modules. * * @return array */ function getActiveModules(): array { return Module::getByStatus(1); } } if (!function_exists('getActiveCustomModules')) { /** * get active custom modules based on a condition. * * @return array */ function getActiveCustomModules(): array { return array_filter(getActiveModules(), function ($coreModule) { return !$coreModule->get('core'); }); } } function isActive(String $name = null) { /** * Checking if module active or not * * @param string $name * * @return bool */ if (is_null($name)) { return \Nwidart\Modules\Facades\Module::collections(); } return \Nwidart\Modules\Facades\Module::collections()->has($name); } if (!function_exists('getCustomAddons')) { /** * getCustomAddons * * @return void */ function getCustomAddonNames() { $activeAddons = \Modules\Addons\Entities\Addon::getByStatus(1); $customAddons = array_filter($activeAddons, function ($activeAddon) { return !$activeAddon->get('core'); }); return array_keys($customAddons); } } if (!function_exists('getAddons')) { /** * getAddons * * @return void */ function getAddons() { $allAddon = \Modules\Addons\Entities\Addon::getByStatus(1); return array_keys($allAddon); } } if (!function_exists('m_ins_ckr')) { /** * Module periodical checker */ function m_ins_ckr($mns) { Cache::put(base64_decode($mns), env(base64_decode($mns)), 2629746); return false; } }