From 116ff3ae92e54c1de9b30344e0417fb87d08175d Mon Sep 17 00:00:00 2001 From: marcus Date: Tue, 12 Aug 2008 18:35:03 +0000 Subject: Closes #232: Produces a basic report plus checksums of all files in md5sum format. To add extra information to this report add a plugin hook listening to: 'diagnostics:report' And append to $returnvalue which is a simple text buffer. git-svn-id: https://code.elgg.org/elgg/trunk@1863 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/diagnostics/actions/download.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 mod/diagnostics/actions/download.php (limited to 'mod/diagnostics/actions') diff --git a/mod/diagnostics/actions/download.php b/mod/diagnostics/actions/download.php new file mode 100644 index 000000000..90266b793 --- /dev/null +++ b/mod/diagnostics/actions/download.php @@ -0,0 +1,24 @@ +name); + $output = trigger_plugin_hook('diagnostics:report', 'all', 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)); + + echo $output; +?> \ No newline at end of file -- cgit v1.2.3