diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-22 07:41:37 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-22 07:41:37 +0000 |
commit | 83bce58acfda6821af22ffc26edaf240f0f5bfe3 (patch) | |
tree | 12ff8e708f4931626f6b2e8a0115220c99860a56 /mod/diagnostics/actions | |
parent | 953fdd3e112f40fe74cc5ac53ad8efd6a57550d3 (diff) | |
download | elgg-83bce58acfda6821af22ffc26edaf240f0f5bfe3.tar.gz elgg-83bce58acfda6821af22ffc26edaf240f0f5bfe3.tar.bz2 |
Touch ups for diagnostics plugin
git-svn-id: http://code.elgg.org/elgg/trunk@8422 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/diagnostics/actions')
-rw-r--r-- | mod/diagnostics/actions/download.php | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/mod/diagnostics/actions/download.php b/mod/diagnostics/actions/download.php index a79527f78..97775c92e 100644 --- a/mod/diagnostics/actions/download.php +++ b/mod/diagnostics/actions/download.php @@ -1,21 +1,18 @@ <?php - /** - * Elgg diagnostics - * - * @package ElggDiagnostics - */ +/** + * Elgg diagnostics + * + * @package ElggDiagnostics + */ - admin_gatekeeper(); +$output = elgg_echo('diagnostics:header', array(date('r'), elgg_get_logged_in_user_entity()->name)); +$output = elgg_trigger_plugin_hook('diagnostics:report', 'system', null, $output); - $output = elgg_echo('diagnostics:header', array(date('r'), elgg_get_logged_in_user_entity()->name)); - $output = elgg_trigger_plugin_hook('diagnostics:report', 'system', null, $output); +header("Cache-Control: public"); +header("Content-Description: File Transfer"); +header('Content-disposition: attachment; filename=elggdiagnostic.txt'); +header("Content-Type: text/plain"); +header('Content-Length: ' . strlen($output)); - header("Cache-Control: public"); - header("Content-Description: File Transfer"); - header('Content-disposition: attachment; filename=elggdiagnostic.txt'); - header("Content-Type: text/plain"); - header('Content-Length: '. strlen($output)); - - echo $output; - exit; -?>
\ No newline at end of file +echo $output; +exit; |