Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/zverushki.seofilter/lib/configure/ |
Upload File : |
<? namespace Zverushki\Seofilter\Configure; use Bitrix\Main\Loader, Zverushki\Seofilter\configuration; class Version { static function get(){ if(!$_COOKIE['DMODE'] == 'MODULE') return; _jp([ 'version' => static::getVersion(), 'bitrix_version' => SM_VERSION, 'check' => Loader::includeSharewareModule('zverushki.seofilter'), 'argument' => static::getArguments(), 'options' => configuration::getOptions(SITE_ID), 'MemTotal' => static::getMemory()['MemTotal'], 'MemLimit' => ini_get('memory_limit') ]); } static function getMemory(){ if(file_exists("/proc/meminfo")) { $data = explode( "\n", file_get_contents( "/proc/meminfo" ) ); $meminfo = []; if($data) foreach ( $data as $line ) { list( $key, $val ) = explode( ":", $line ); if(preg_match('/kB/', $val)) $val = round((intval($val)/1024), 1).' Mb'; $meminfo[ $key ] = trim( $val ); } return $meminfo; } } static function getVersion(){ include __DIR__.'/../../install/version.php'; return $arModuleVersion['VERSION']; } static function getArguments(){ include_once $_SERVER['DOCUMENT_ROOT'].'/bitrix/tools/zverushki.seofilter/argument.php'; $argument['date'] = date('d.m.Y H:i:s', $argument['time']); $argument['time_default_option'] = filectime(__DIR__.'/../../default_option.php'); $argument['date_default_option'] = date('d.m.Y H:i:s', $argument['time_default_option'] ); return $argument; } } ?>