From a263f54550563810e38de2c56f69e86269db7c80 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 16 May 2009 17:05:30 +0000 Subject: added some basic server stats to help guide configuration --- system.php | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 64 insertions(+), 10 deletions(-) (limited to 'system.php') diff --git a/system.php b/system.php index d9abcd2e5..0e218d3f3 100644 --- a/system.php +++ b/system.php @@ -16,21 +16,75 @@ $title = 'TidyPics Server Analysis'; -/* -$php_ok = (function_exists('version_compare') && version_compare(phpversion(), '4.3.0', '>=')); -$xml_ok = extension_loaded('xml'); -$pcre_ok = extension_loaded('pcre'); -$curl_ok = function_exists('curl_exec'); -$zlib_ok = extension_loaded('zlib'); -$mbstring_ok = extension_loaded('mbstring'); -$iconv_ok = extension_loaded('iconv'); -*/ + + function tp_readable_size($bytes) + { + $size = $bytes / 1024; + if ($size < 1024) { + $size = number_format($size, 2); + $size .= ' KB'; + } else { + $size = $size / 1024; + if($size < 1024) { + $size = number_format($size, 2); + $size .= ' MB'; + } else { + $size = $size / 1024; + $size = number_format($size, 2); + $size .= ' GB'; + } + } + return $size; + } + + ob_start(); echo elgg_view_title($title); ?>
- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PHP version
GDElgg requires the GD extension to be loaded
Memory Available to PHPBChange memory_limit to increase
Memory Used to Load This PageThis is approximately the minimum per page
Max File Upload SizeMax size of the sum of images uploaded at once
Max Post SizeMax post size - should be larger than above
Max Input Time sTime script waits for upload to finish
Max Execution Time sMax time a script will run