"; $content .= elgg_view('page/elements/content', array('body' => "

".elgg_echo('diagnostics:report')."

".elgg_echo('diagnostics:description') . elgg_view('diagnostics/forms/download')) ); // unit tests $content .= "

".elgg_echo('diagnostics:unittester')."

"; $test_body = "

" . elgg_echo('diagnostics:unittester:description') . "

"; $test_body .= "

" . elgg_echo('diagnostics:unittester:warning') . "

"; 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 .= elgg_view('page/elements/content', array( 'body' => $test_body) ); $content .= ""; $body = elgg_view_layout("one_column_with_sidebar", array('content' => $content)); echo elgg_view_page(elgg_echo('diagnostics'), $body);