diff options
-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'; |