📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-26 12:00:48
📂
/
/
home
/
pallabnv
/
public_html
/
wp-content__3bb9dea
/
themes
/
berich
/
inc
/
admin
/
views
✏️
Editing: admin-system-info.php
<?php function pxl_convert_to_byte ($size){ $label = substr( $size, -1 ); $num = substr( $size, 0, -1 ); switch ( strtoupper( $label ) ) { case 'P': $num *= 1024; case 'T': $num *= 1024; case 'G': $num *= 1024; case 'M': $num *= 1024; case 'K': $num *= 1024; } return $num; } function pxl_get_system_info() { $system_info = array(); //Upload max size $upload_max_size = ini_get('upload_max_filesize'); $upload_max_size_to_byte = pxl_convert_to_byte( $upload_max_size ); array_push( $system_info, [ 'title' => esc_attr__( 'Upload max file size (64MB)', 'berich' ), 'status' => $upload_max_size_to_byte > 67108864 ] ); //Limit memory $memory_limit = ini_get( 'memory_limit' ); $memory_limit_to_byte = pxl_convert_to_byte( $memory_limit ); array_push( $system_info, [ 'title' => esc_attr__( 'Memory limit (256MB)', 'berich' ), 'status' => $memory_limit_to_byte >= 268435456, ] ); //Post maxsize $post_maxsite = ini_get( 'post_max_size' ); $post_maxsite_to_byte = pxl_convert_to_byte( $post_maxsite ); array_push( $system_info, [ 'title' => esc_attr__( 'Post max size (64MB)', 'berich' ), 'status' => $post_maxsite_to_byte >= 67108864, ] ); //Max execution time array_push( $system_info, [ 'title' => esc_attr__( 'Max Execution Time (6s)', 'berich' ), 'status' => ini_get( 'max_execution_time' ) >= 360, ] ); //Max input vars array_push( $system_info, [ 'title' => esc_attr__( 'Max input vars (3000)', 'berich' ), 'status' => ini_get( 'max_input_vars' ) >= 3000, ] ); return $system_info; } $system_status = pxl_get_system_info(); foreach ( $system_status as $item) : ?> <div class="pxl-iconbox"> <div class="pxl-icon-container"> <?php if ( $item['status'] ) : ?> <img src="<?php echo get_template_directory_uri() . '/inc/admin/assets/img/check.png' ?>" alt="<?php esc_attr_e( 'Check', 'berich' ); ?>"> <?php else : ?> <img src="<?php echo get_template_directory_uri() . '/inc/admin/assets/img/crossed.png' ?>" alt="<?php esc_attr_e( 'Un Check', 'berich' ); ?>"> <?php endif; ?> </div> <div class="pxl-iconbox-contents"> <span class="status-item-title"> <?php echo esc_html( $item['title'] ); ?> </span> </div> </div> <?php endforeach; ?>
💾 Save Changes
❌ Cancel