Blob Blame History Raw
--- share/pnp/include/function.inc.php.old	2009-08-27 23:40:59.000000000 +0200
+++ share/pnp/include/function.inc.php	2010-03-12 08:43:28.000000000 +0100
@@ -1029,7 +1029,7 @@
 		}
 	}
 
-	$pdf =& new PDF('P', 'mm', 'A4');
+	$pdf = new PDF('P', 'mm', 'A4');
 	$pdf->AliasNbPages();
         $pdf->SetAutoPageBreak('off');
 	$pdf->SetMargins(12.5,25,10);
@@ -1538,7 +1538,7 @@
                 $NAGIOS['RRD'][$tag][$dsl] = urldecode($value);
             }
 
-            if($level == 2 && $type == "complete" && eregi("^NAGIOS_",$tag)){
+            if($level == 2 && $type == "complete" && preg_match("/^NAGIOS_/i",$tag)){
                 if(isset($xml_elem['value'])){
                     $value = $xml_elem['value'];
                 }else{
@@ -1569,7 +1569,7 @@
 	$PAGE="";
 	$allowed_tags = array("page", "graph");
 	foreach($data as $line){
-		if(ereg('(^#|^;)',$line)) {
+		if(preg_match('/(^#|^;)/',$line)) {
 			continue;
 		}