Module: nagvis
Branch: nagvis-1.4
Commit: 119a4a0f9ffb63788c1e90d3be52ac648aac5982
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=119a4a0f9ffb63788c1e90d3be52ac648aac5982

Author: LaMi <[email protected]>
Date:   Sun Mar  7 14:08:17 2010 +0100

php5.3-deprecated-ereg.dpatch by Hendrik Frenzel <[email protected]>;  changes 
deprecated ereg() to preg_match() for use with php >= 5.3

---

 nagvis/nagvis/includes/classes/GlobalMainCfg.php |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/nagvis/nagvis/includes/classes/GlobalMainCfg.php 
b/nagvis/nagvis/includes/classes/GlobalMainCfg.php
index f20b454..bbc0150 100644
--- a/nagvis/nagvis/includes/classes/GlobalMainCfg.php
+++ b/nagvis/nagvis/includes/classes/GlobalMainCfg.php
@@ -791,15 +791,15 @@ class GlobalMainCfg {
                                        
                                        // loop given elements for checking: => 
all given attributes valid
                                        foreach($vars AS $key => $val) {
-                                               if(!ereg('^comment_',$key)) {
-                                                       if(ereg('^backend_', 
$type)) {
+                                               
if(!preg_match('/^comment_/',$key)) {
+                                                       
if(preg_match('/^backend_/', $type)) {
                                                                
if(isset($this->validConfig['backend']['options'][$this->getValue($type,'backendtype')])
 
                                                                         && 
is_array($this->validConfig['backend']['options'][$this->getValue($type,'backendtype')]))
 {
                                                                        
$arrValidConfig = array_merge($this->validConfig['backend'], 
$this->validConfig['backend']['options'][$this->getValue($type,'backendtype')]);
                                                                } else {
                                                                        
$arrValidConfig = $this->validConfig['backend'];
                                                                }
-                                                       } 
elseif(ereg('^rotation_', $type)) {
+                                                       } 
elseif(preg_match('/^rotation_/', $type)) {
                                                                $arrValidConfig 
= $this->validConfig['rotation'];
                                                        } else {
                                                                $arrValidConfig 
= $this->validConfig[$type];
@@ -821,7 +821,7 @@ class GlobalMainCfg {
                                                                return FALSE;
                                                        } else {
                                                                // Workaround 
to get the configured string back
-                                                               
if(ereg('^rotation_', $type) && $key == 'maps') {
+                                                               
if(preg_match('/^rotation_/', $type) && $key == 'maps') {
                                                                        
foreach($val AS $intId => $arrStep) {
                                                                                
if(isset($arrStep['label']) && $arrStep['label'] != '') {
                                                                                
        $label = $arrStep['label'].':';


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to