elgg_echo('diagnostics:description') . elgg_view('diagnostics/forms/download'))
);
// unit tests
$body .= elgg_view_title(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='{$CONFIG->wwwroot}engine/tests/suite.php'\"";
$params = array('type' => 'button', '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');
}
$body .= elgg_view('page_elements/contentwrapper', array(
'body' => $test_body)
);
// create page
page_draw(elgg_echo('diagnostics'), elgg_view_layout("two_column_left_sidebar", '', $body));