PluginProbe
LWS Tools / trunk
LWS Tools vtrunk
trunk 1.0 1.0.1 2.0 2.1 2.1.5 2.2 2.2.1 2.3 2.3.1 2.4 2.4.1 2.4.2 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.5 2.6 2.6.1 2.6.1.5 2.6.2 2.6.3 2.6.4
lws-tools / view / server.php

server.php in LWS Tools trunk, at view/server.php

49 lines 3.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 $server_info = array(
3 __("Environment", "lws-tools") => array(__('Server informations', 'lws-tools'), $_SERVER['SERVER_SOFTWARE'], 'serveur.svg'),
4 __("Your IP", "lws-tools") => array(__('Your peripheral\'s IP Address', 'lws-tools'), $_SERVER['HTTP_X_REAL_IP'], 'ip.svg'),
5 __("Server Web Port", "lws-tools") => array(__('', 'lws-tools'), $_SERVER['SERVER_PORT'], 'port.svg'),
6 __("SSL Certificate (HTTPS)", "lws-tools") => array(__('A SSL Certificate is installed and encode the exchanged data', 'lws-tools'), $is_https, 'ssl.svg'),
7 __("Server Name", "lws-tools") => array(__('', 'lws-tools'), $_SERVER['SERVER_NAME'], 'serveur.svg'),
8 __("Server IP Address", "lws-tools") => array(__('', 'lws-tools'), $_SERVER['SERVER_ADDR'], 'ip.svg'),
9 __("Server Protocol", "lws-tools") => array(__('HTTP Protocol version', 'lws-tools'), $_SERVER['SERVER_PROTOCOL'], 'code.svg'),
10 __("PHP", "lws-tools") => array(__('PHP Version installed on your hosting server', 'lws-tools'), phpversion(), 'php.svg'),
11 __("WP Debug Mode", "lws-tools") => array(__('WordPress debugging mode activation status', 'lws-tools'), $is_debug, 'code.svg'),
12 __("allow_url_fopen", "lws-tools") => array(__('File access functions activation status', 'lws-tools'), $fopen, 'code.svg'),
13 __("Server Timezone", "lws-tools") => array(__('', 'lws-tools'), $timezone, 'temps.svg'),
14 __("Default Encoding", "lws-tools") => array(__('', 'lws-tools'), $charset, 'code.svg'),
15 __("Can upload files", "lws-tools") => array(__('', 'lws-tools'), $can_file_upload, 'upload.svg'),
16 __("Max PHP execution time", "lws-tools") => array(__('', 'lws-tools'), $max_exec_time . 's', 'temps.svg"'),
17 __("Max files per upload", "lws-tools") => array(__('', 'lws-tools'), $max_file_upload, 'upload.svg'),
18 __("Max characters per entry", "lws-tools") => array(__('Maximum amount of characters per post on the website', 'lws-tools'), $max_input_vars, 'code.svg'),
19 __("Memory Limit", "lws-tools") => array(__('Max amount of usable RAM on your website', 'lws-tools'), $memory_limit, 'ram.svg'),
20 __("Max post size", "lws-tools") => array(__('', 'lws-tools'), $post_max_size, 'poids.svg'),
21 __("Max uploaded file size", "lws-tools") => array(__('', 'lws-tools'), $upload_max_filesize, 'poids.svg'),
22 __("PHP Memory Usage", "lws-tools") => array(__('Amount of memory used by PHP', 'lws-tools'), $php_memory_usage, 'ram.svg'),
23 );
24 ?>
25 <h2 class="lws_tk_title_server"><?php esc_html_e('Server informations', 'lws-tools');?>
26 </h2>
27
28 <div>
29 <?php foreach($server_info as $name => $content) : ?>
30 <div class="lws_tk_line_server">
31 <div class="lws_tk_line_server_left">
32 <img src="<?php echo esc_url(plugins_url('images/' . $content[2], __DIR__))?>"
33 class="lws_tk_line_server_left_image" width="30px" height="30px">
34 <div class="lws_tk_line_server_left_text">
35 <p class="lws_tk_line_left_text"><?php echo esc_html($name); ?>
36 </p>
37 <?php if (!empty($content[0])) : ?>
38 <p class="lws_tk_line_left_text_small"><?php echo esc_html($content[0]); ?>
39 </p>
40 <?php endif ?>
41 </div>
42 </div>
43 <div class="lws_tk_line_server_right">
44 <div class="lws_tk_line_left_text_right"><?php echo esc_html($content[1]); ?>
45 </div>
46 </div>
47 </div>
48 <?php endforeach ?>
49 </div>