download.php 505 B

12345678910111213141516171819
  1. <?php
  2. /**
  3. * Elgg diagnostics
  4. *
  5. * @package ElggDiagnostics
  6. */
  7. $output = elgg_echo('diagnostics:header', array(date('r'), elgg_get_logged_in_user_entity()->name));
  8. $output = elgg_trigger_plugin_hook('diagnostics:report', 'system', null, $output);
  9. header("Cache-Control: public");
  10. header("Content-Description: File Transfer");
  11. header('Content-disposition: attachment; filename=elggdiagnostic.txt');
  12. header("Content-Type: text/plain");
  13. header('Content-Length: ' . strlen($output));
  14. echo $output;
  15. exit;