Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- require_once('xivo.php');
- $bloc = isset($_QR['bloc']) === false ? '' : $_QR['bloc'];
- $type = isset($_QR['type']) === false ? '' : $_QR['type'];
- if(($result = dwho_report::get_bloc($type,$bloc)) === false)
- die;
- $title = str_replace(' ','_',html_entity_decode(base64_decode($bloc)));
- header('Pragma: no-cache');
- header('Cache-Control: private, must-revalidate');
- header('Last-Modified: '.date('D, d M Y H:i:s',mktime()).' '.dwho_i18n::strftime_l('%Z',null));
- header('Content-Disposition: attachment; filename=xivo_report_'.$type.'-'.$title.'.txt');
- header('Content-Type: text/plain; charset=UTF-8');
- ob_start();
- while($result)
- echo html_entity_decode(array_shift($result),ENT_QUOTES,'UTF-8'),"\n";
- header('Content-Length: '.ob_get_length());
- ob_end_flush();
- die();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement