aboutsummaryrefslogtreecommitdiff
path: root/views/default/admin/statistics/server/php.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-01-09 16:55:06 -0800
committerCash Costello <cash.costello@gmail.com>2012-01-09 16:55:06 -0800
commit266d5f923d34005356a80c8dc87eefd4ebe3a826 (patch)
tree32e7be15e0d77a4438528fa491e1330f7c97370b /views/default/admin/statistics/server/php.php
parent0980beffc887277c6856f53d96d6d7fa5f624154 (diff)
parenta5d89ccf653748c471a3c62c46a02db3be4e23dc (diff)
downloadelgg-266d5f923d34005356a80c8dc87eefd4ebe3a826.tar.gz
elgg-266d5f923d34005356a80c8dc87eefd4ebe3a826.tar.bz2
Merge pull request #132 from cash/server_info
Adds a server info page
Diffstat (limited to 'views/default/admin/statistics/server/php.php')
-rw-r--r--views/default/admin/statistics/server/php.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/views/default/admin/statistics/server/php.php b/views/default/admin/statistics/server/php.php
new file mode 100644
index 000000000..4a59b95fb
--- /dev/null
+++ b/views/default/admin/statistics/server/php.php
@@ -0,0 +1,33 @@
+<?php
+/**
+ * Server PHP info
+ */
+
+$php_log = ini_get('error_log');
+if (!$php_log) {
+ $php_log = elgg_echo('admin:server:error_log');
+}
+
+?>
+<table class="elgg-table-alt">
+ <tr class="odd">
+ <td><b><?php echo elgg_echo('admin:server:label:php_version'); ?> :</b></td>
+ <td><?php echo phpversion(); ?></td>
+ </tr>
+ <tr class="even">
+ <td><b><?php echo elgg_echo('admin:server:label:php_ini'); ?> :</b></td>
+ <td><?php echo php_ini_loaded_file(); ?></td>
+ </tr>
+ <tr class="odd">
+ <td><b><?php echo elgg_echo('admin:server:label:php_log'); ?> :</b></td>
+ <td><?php echo $php_log; ?></td>
+ </tr>
+ <tr class="even">
+ <td><b><?php echo elgg_echo('admin:server:label:mem_avail'); ?> :</b></td>
+ <td><?php echo number_format(elgg_get_ini_setting_in_bytes('memory_limit')); ?></td>
+ </tr>
+ <tr class="odd">
+ <td><b><?php echo elgg_echo('admin:server:label:mem_used'); ?> :</b></td>
+ <td><?php echo number_format(memory_get_peak_usage()); ?></td>
+ </tr>
+</table>