diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-29 22:39:25 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-29 22:39:25 +0000 |
commit | dcba493d8defdeb9ab6f41bf07826474bc41e9a6 (patch) | |
tree | e25c5cf752750bd021cef50a9e0c48810c0d51a9 /mod/diagnostics/index.php | |
parent | 7355326146c6dd1f3e54f023510095c5fb0eb51c (diff) | |
download | elgg-dcba493d8defdeb9ab6f41bf07826474bc41e9a6.tar.gz elgg-dcba493d8defdeb9ab6f41bf07826474bc41e9a6.tar.bz2 |
updated the diagnostics plugin to use the new admin backend
git-svn-id: http://code.elgg.org/elgg/trunk@7762 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/diagnostics/index.php')
-rw-r--r-- | mod/diagnostics/index.php | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/mod/diagnostics/index.php b/mod/diagnostics/index.php deleted file mode 100644 index 1ef9e5344..000000000 --- a/mod/diagnostics/index.php +++ /dev/null @@ -1,37 +0,0 @@ -<?php -/** - * Elgg diagnostics - * - * @package ElggDiagnostics - */ - -require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php"); - -admin_gatekeeper(); -elgg_set_context('admin'); - -// system diagnostics -$content = elgg_view_title(elgg_echo('diagnostics')); -$content .= "<div class='admin_settings diagnostics'>"; -$content .= "<h3>".elgg_echo('diagnostics:report')."</h3>".elgg_echo('diagnostics:description') . elgg_view('diagnostics/forms/download'); - -// unit tests -$content .= "<h3>".elgg_echo('diagnostics:unittester')."</h3>"; -$test_body = "<p>" . elgg_echo('diagnostics:unittester:description') . "</p>"; -$test_body .= "<p>" . elgg_echo('diagnostics:unittester:warning') . "</p>"; - -if (isset($CONFIG->debug)) { - // create a button to run tests - $js = "onclick=\"window.location='".elgg_get_site_url()."engine/tests/suite.php'\""; - $params = array('value' => elgg_echo('diagnostics:test:executeall'), 'js' => $js); - $test_body .= elgg_view('input/button', $params); -} else { - // no tests when not in debug mode - $test_body .= elgg_echo('diagnostics:unittester:debug'); -} - -$content .= $test_body; -$content .= "</div>"; - -$body = elgg_view_layout("one_column_with_sidebar", array('content' => $content)); -echo elgg_view_page(elgg_echo('diagnostics'), $body); |