*/ require_once ("output.php"); /** Display in Text the datas provided */ class outputtxt extends output { /** Display in Text the datas provided @param mixed $data The data to be displayed */ public function out ($data) { @header("Cache-Control: no-store, no-cache, must-revalidate"); @header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); @header('Last-Modified: '.gmdate ('D, d M Y H:i:s').' GMT'); @header('Cache-Control: post-check=0, pre-check=0', false); @header('Pragma: no-cache'); @header ("Content-Type: text/plain"); if ($data === TRUE) echo "OK\n"; elseif ($data === FALSE) echo "FALSE\n"; elseif (is_string ($data)) echo "$data\n"; elseif (is_integer ($data)) echo "$data\n"; elseif (is_array ($data)) echo substr (print_r ($data, TRUE), 8, -3)."\n"; elseif ($data === NULL) echo "NULL\n"; else echo "TODO : ".gettype ($rc)." on ".__FILE__.":".__LINE__."\n"; } }