header ("Pragma: hack");
header ("Cache-Control: public, must-revalidate");
- // outputs the whole file contents
- print (file_get_contents($filename));
-
+ // turn off output buffering
+ ob_end_flush();
+ // outputs the whole file contents without copying it to memory
+ readfile($filename);
+
// unlink the file
if (! unlink ($filename) ) {
// cannot unlink, but how can we notify this ?
$details->start();
if( ! $interface ) {
+ print ("<center>");
print (plc_warning("This node has no configured primary interface."));
+ print ("You can add one " . href(l_interface_add($node_id), "here "));
+ print ("</center>");
} else {
$details->tr(l_node_t($node_id,"Node details"),"center");
$details->th_td("node_id",$node_id);