| 1 |
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?> |
| 2 |
|
| 3 |
<h3><?php esc_html_e( 'Server Information', 'wpcasa' ) ?></h3> |
| 4 |
|
| 5 |
<div class="wpsight-admin-ui-content"> |
| 6 |
<table class="wpsight-admin-ui-table"> |
| 7 |
|
| 8 |
<tbody> |
| 9 |
|
| 10 |
<tr> |
| 11 |
|
| 12 |
<td><?php echo esc_html__( 'PHP Version', 'wpcasa' ); ?>:</td> |
| 13 |
<td><?php echo esc_html( phpversion() ); ?></td> |
| 14 |
|
| 15 |
</tr> |
| 16 |
|
| 17 |
<tr> |
| 18 |
|
| 19 |
<td><?php echo esc_html__( 'Memory Limit', 'wpcasa' ); ?>:</td> |
| 20 |
<td><?php echo esc_html( ini_get( 'memory_limit' ) ); ?></td> |
| 21 |
|
| 22 |
</tr> |
| 23 |
|
| 24 |
<?php if( function_exists( 'memory_get_usage' ) ) { |
| 25 |
|
| 26 |
$usage = memory_get_usage( true ); |
| 27 |
$usageInMb = $usage/1024/1024; |
| 28 |
?> |
| 29 |
<tr> |
| 30 |
|
| 31 |
<td><?php echo esc_html__( 'Memory Usage', 'wpcasa' ); ?>:</td> |
| 32 |
<td><?php echo esc_html( $usageInMb ); ?>M</td> |
| 33 |
|
| 34 |
</tr> |
| 35 |
<?php |
| 36 |
} ?> |
| 37 |
|
| 38 |
</tbody> |
| 39 |
|
| 40 |
</table> |
| 41 |
</div> |
| 42 |
|
| 43 |
<!--<a href="#" target="_blank" class="button button-primary button-text-icon"><span class="dashicons dashicons-cloud"></span>--><?php //_e( 'Detailed Report', 'wpcasa' ) ?><!--</a>--> |
| 44 |
|