@extends('admin.layouts.master') @section('title', __('server_information')) @section('content')
@if(request()->route()->getName() == 'server.info')

{{ __('server_information') }}

@elseif(request()->route()->getName() == 'extension.library')

{{ __('extension_library') }}

@elseif(request()->route()->getName() == 'file.system.permission')

{{ __('file_system_permission') }}

@else

{{ __('system_information') }}

@endif
@if(request()->route()->getName() == 'server.info')
# {{ __('config_name') }} {{ __('current') }} {{ __('recommended') }} {{ __('status') }}
01. {{__('file_uploads')}} {{ ini_get('file_uploads') == 1 ? 'On' : 'Off' }} On @if(ini_get('file_uploads') == 1) @else @endif
02. {{__('max_file_uploads')}} {{ ini_get('max_file_uploads') }} 20+ @if(ini_get('max_file_uploads') >= 20) @else @endif
03. {{ __('upload_max_file_size')}} {{ ini_get('upload_max_filesize')}} 128M+ @php $upload_max_filesize = ini_get('upload_max_filesize'); if (preg_match('/^(\d+)(.)$/', $upload_max_filesize, $matches)) { if ($matches[2] == 'G') { $upload_max_filesize = $matches[1] * 1024 * 1024 * 1024; // nnnM -> nnn GB } else if ($matches[2] == 'M') { $upload_max_filesize = $matches[1] * 1024 * 1024; // nnnM -> nnn MB } else if ($matches[2] == 'K') { $upload_max_filesize = $matches[1] * 1024; // nnnK -> nnn KB } } @endphp
@if($upload_max_filesize >= (128 * 1024 * 1024)) @else @endif
04. {{__('post_max_size')}} {{ ini_get('post_max_size')}} 128M+ @php $post_max_size = ini_get('post_max_size'); if (preg_match('/^(\d+)(.)$/', $post_max_size, $matches)) { if ($matches[2] == 'G') { $post_max_size = $matches[1] * 1024 * 1024 * 1024; // nnnM -> nnn GB } else if ($matches[2] == 'M') { $post_max_size = $matches[1] * 1024 * 1024; // nnnM -> nnn MB } else if ($matches[2] == 'K') { $post_max_size = $matches[1] * 1024; // nnnK -> nnn KB } } @endphp
@if($post_max_size >= (128 * 1024 * 1024)) @else @endif
05. {{__('allow_url_fopen')}} {{ ini_get('allow_url_fopen') == 1 ? 'On' : 'Off' }} On @if(ini_get('allow_url_fopen') == 1) @else @endif
06. {{__('max_execution_time')}} {{ ini_get('max_execution_time') == '-1' ? __('unlimited') : ini_get('max_execution_time') }} 600+ @if(ini_get('max_execution_time') == -1 || ini_get('max_execution_time') >= 600) @else @endif
07. {{__('max_input_time')}} {{ ini_get('max_input_time') == '-1' ? __('unlimited') : ini_get('max_input_time') }} 120+ @if(ini_get('max_input_time') == -1 || ini_get('max_input_time') >= 120) @else @endif
08. {{__('max_input_vars')}} {{ ini_get('max_input_vars') }} 1000+ @if(ini_get('max_input_vars') >= 1000) @else @endif
09. {{__('memory_limit')}} {{ ini_get('memory_limit') == '-1' ? __('unlimited') : ini_get('memory_limit') }} 256M+ @php $memory_limit = ini_get('memory_limit'); if (preg_match('/^(\d+)(.)$/', $memory_limit, $matches)) { if ($matches[2] == 'G') { $memory_limit = $matches[1] * 1024 * 1024 * 1024; // nnnM -> nnn GB } else if ($matches[2] == 'M') { $memory_limit = $matches[1] * 1024 * 1024; // nnnM -> nnn MB } else if ($matches[2] == 'K') { $memory_limit = $matches[1] * 1024; // nnnK -> nnn KB } } @endphp
@if(ini_get('memory_limit') == -1 || $memory_limit >= (256 * 1024 * 1024)) @else @endif
@endif @if(request()->route()->getName() == 'system.info')
# {{ __('name') }} {{ __('current_version') }} {{ __('required_version') }} {{ __('status') }}
01. PHP Version {{ phpversion() }} 8.0 or Later @if(floatval(phpversion()) >= 7.3 && floatval(phpversion()) < 9.0) @else @endif
02. MySQL @php $versionResult = DB::select("SELECT VERSION() AS version"); $mysql_version = $versionResult[0]->version; @endphp {{ $mysql_version }} 5.7+ @php // Extract just the numeric version part (e.g., "5.7.36") preg_match('/\d+\.\d+(\.\d+)?/', $mysql_version, $matches); $parsed_version = $matches[0] ?? '0.0'; @endphp @if(version_compare($parsed_version, '5.7', '>=')) @else @endif
@endif @if(request()->route()->getName() == 'extension.library') @php $curl_success = false; $gd_success = false; $allow_url_fopen_success = false; $timezone_success = true; if (function_exists("curl_version")): $curl_success = true; endif; //check gd if (extension_loaded('gd') && function_exists('gd_info')): $gd_success = true; endif; //check allow_url_fopen if (ini_get('allow_url_fopen')): $allow_url_fopen_success = true; endif; //check allow_url_fopen $timezone_settings = ini_get('date.timezone'); if ($timezone_settings): $timezone_success = true; endif; @endphp
# {{ __('extension_settings') }} {{ __('current_settings') }} {{ __('required_settings') }} {{ __('status') }}
01. GD {{ $gd_success ? 'On' : 'Off' }} On @if($gd_success) @else @endif
02. cURL {{ $curl_success ? 'On' : 'Off'}} On @if($curl_success) @else @endif
03. {{__('allow_url_fopen')}} {{ $allow_url_fopen_success ? 'on' : 'off' }} On @if($allow_url_fopen_success) @else @endif
04. zip {{ extension_loaded('zip') ? 'On' : 'Off' }} On @if(extension_loaded('zip')) @else @endif
05. zlib {{ extension_loaded('zlib') ? 'On' : 'Off' }} On @if(extension_loaded('zlib')) @else @endif
06. OpenSSL PHP Extension @php $all_requirement_success = true; @endphp @if(OPENSSL_VERSION_NUMBER < 0x009080bf) @php $all_requirement_success = false; @endphp Off @else On @endif On @if($all_requirement_success) @else @endif
07. PDO PHP Extension @php $all_requirement_success = true; @endphp @if(PDO::getAvailableDrivers()) On @else @php $all_requirement_success = false; @endphp Off @endif On @if($all_requirement_success) @else @endif
08. BCMath PHP Extension @php $all_requirement_success = true; @endphp @if(extension_loaded('bcmath')) On @else @php $all_requirement_success = false; @endphp Off @endif On @if($all_requirement_success) @else @endif
09. Ctype PHP Extension @php $all_requirement_success = true; @endphp @if(extension_loaded('ctype')) On @else @php $all_requirement_success = false; @endphp Off @endif On @if($all_requirement_success) @else @endif
10. Fileinfo PHP Extension @php $all_requirement_success = true; @endphp @if(extension_loaded('fileinfo')) On @else @php $all_requirement_success = false; @endphp Off @endif On @if($all_requirement_success) @else @endif
11. Mbstring PHP Extension @php $all_requirement_success = true; @endphp @if(extension_loaded('mbstring')) On @else @php $all_requirement_success = false; @endphp Off @endif On @if($all_requirement_success) @else @endif
12. Tokenizer PHP Extension @php $all_requirement_success = true; @endphp @if(extension_loaded('tokenizer')) On @else @php $all_requirement_success = false; @endphp Off @endif On @if($all_requirement_success) @else @endif
13. XML PHP Extension @php $all_requirement_success = true; @endphp @if(extension_loaded('xml')) On @else @php $all_requirement_success = false; @endphp Off @endif On @if($all_requirement_success) @else @endif
14. JSON PHP Extension @php $all_requirement_success = true; @endphp @if(extension_loaded('json')) On @else @php $all_requirement_success = false; @endphp Off @endif On @if($all_requirement_success) @else @endif
15. PHP ZipArchive Class @php $all_requirement_success = true; @endphp @if(class_exists('ZipArchive')) On @else @php $all_requirement_success = false; @endphp Off @endif On @if($all_requirement_success) @else @endif
@endif @if(request()->route()->getName() == 'file.system.permission') @php $required_paths = ['.env', 'app', 'bootstrap/cache', 'storage', 'resources', 'routes'] @endphp @foreach ($required_paths as $key => $path) @endforeach
# {{__('file_or_folder')}} {{__('status')}}
{{ ++$key }} {{ $path }} @if(is_writable(base_path($path))) @else @endif
@endif
@endsection