@php $accpt_update = true; $system_current_version = systemCurrentVersion(); $mysqlVersion = DB::select('select version() as version')[0]->version; $required_post_max_size = 200; $post_max_size = substr(ini_get('post_max_size'), 0, -1); if ($post_max_size < $required_post_max_size) { $accpt_update = false; } $required_upload_max_filesize = 200; $upload_max_filesize = substr(ini_get('upload_max_filesize'), 0, -1); if ($upload_max_filesize < $required_upload_max_filesize) { $accpt_update = false; } if (!is_writable(storage_path())) { $accpt_update = false; } @endphp @extends('core::base.layouts.master') @section('title') {{ translate('Update System') }} @endsection @section('custom_css') @endsection @section('main_content')

{{ translate('System & Server Information') }}

System Current Version {{ $system_current_version }}
PHP Version {{ phpversion() }}
MySQL {{ $mysqlVersion }}

php.ini {{ translate('Config') }}

{{ translate('Config Name') }} {{ translate('Current') }} {{ translate('Recommended') }} {{ translate('Status') }}
max_file_uploads {{ ini_get('max_file_uploads') }} 20 @if (ini_get('max_file_uploads') >= 20) @else @endif
upload_max_filesize {{ ini_get('upload_max_filesize') }} {{ $required_upload_max_filesize }}M @if ($upload_max_filesize >= $required_upload_max_filesize) @else @endif
post_max_size {{ ini_get('post_max_size') }} {{ $required_post_max_size }}M @if ($post_max_size >= $required_post_max_size) @else @endif

{{ translate('Filesystem Permissions') }}

{{ translate('File or Folder') }} {{ translate('Status') }}
storage @if (is_writable(storage_path())) @else @endif
themes @if (is_writable(base_path('themes'))) @else @endif
plugins @if (is_writable(base_path('plugins'))) @else @endif
Core @if (is_writable(base_path('Core'))) @else @endif

{{ translate('System Update') }}

{{ translate('Please backup your files and database before update.') }}

{{ translate('Do not reload or close tab while updating. It may takes some times') }}

@csrf
@if ($errors->has('update_file'))
{{ $errors->first('update_file') }}
@endif
@if ($upload_max_filesize < $required_upload_max_filesize)

1. Please make sure, your server php "upload_max_filesize" value is grater or equal to 200M. Current value is - {{ $upload_max_filesize }}M

@endif @if ($post_max_size < $required_post_max_size)

2. Please make sure, your server php "post_max_size" value is grater or equal to 250M. Current value is - {{ $post_max_size }}M

@endif @if ($accpt_update)
@endif
@endsection @section('custom_scripts') @endsection