- // in case of ajax call non-ajax page reload is forced.
- // the alternative is to differ browser support from
- // call to remote printing by some attribute of print links,
- // but in this case we should check related printer target
- // for any link on the page, even if never used.
-
- // display in popup window ...
-// $Ajax->popup($_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING']);
- // ... or fire browser download popup
- // $Ajax->redirect($_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING']);
-// strip document root from file path
- $fname = substr(realpath($fname), strlen($_SERVER['DOCUMENT_ROOT']));
- if (substr($fname,0,1) != '/') $fname = '/'.$fname;