diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-05-16 15:59:35 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-05-16 15:59:35 +0000 |
commit | dd3fcae605c590c76ebfc5584a9a5e33c7fe2a40 (patch) | |
tree | 2687277d3e6fe259a8e5a8be7c0cf3a83001610e | |
parent | b624f3bd6e4ddefa08ab9bd002d4504136fa8a4f (diff) | |
download | elgg-dd3fcae605c590c76ebfc5584a9a5e33c7fe2a40.tar.gz elgg-dd3fcae605c590c76ebfc5584a9a5e33c7fe2a40.tar.bz2 |
added screen for viewing server setup to advise on configuring server for better Tidypics performance
-rw-r--r-- | system.php | 42 | ||||
-rw-r--r-- | views/default/settings/tidypics/edit.php | 9 |
2 files changed, 51 insertions, 0 deletions
diff --git a/system.php b/system.php new file mode 100644 index 000000000..d9abcd2e5 --- /dev/null +++ b/system.php @@ -0,0 +1,42 @@ +<?php + +/******************************************************************** + * + * Tidypics System Analysis Script + * + * Helps admins configure their server + * + ********************************************************************/ + + require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php"); + + admin_gatekeeper(); + + set_context('admin'); + + $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'); +*/ + ob_start(); + + echo elgg_view_title($title); +?> +<div class="contentWrapper"> + +</div> +<?php + + $content = ob_get_clean(); + + $body = elgg_view_layout('two_column_left_sidebar', '', $content); + + echo page_draw($title, $body); +?>
\ No newline at end of file diff --git a/views/default/settings/tidypics/edit.php b/views/default/settings/tidypics/edit.php index dd2444ac3..ce06a2a35 100644 --- a/views/default/settings/tidypics/edit.php +++ b/views/default/settings/tidypics/edit.php @@ -1,3 +1,12 @@ +<? + global $CONFIG; + $system_url = $CONFIG->wwwroot . 'mod/tidypics/system.php'; +?> + +<p> +<a href="<?php echo $system_url; ?>">Run Server Analysis</a> +</p> + <?php $image_lib = $vars['entity']->image_lib; if (!$image_lib) $image_lib = 'GD'; |