Changeset 5912 for trunk/listAdmin


Ignore:
Timestamp:
04/11/12 12:04:21 (12 years ago)
Author:
marcosw
Message:

Ticket #2398 - Compatibilizacao com PHP-5.3 em alguns módulos do expresso

Location:
trunk/listAdmin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/listAdmin/docs/manageheader.php

    r3514 r5912  
    3030         */ 
    3131        $realpath = realpath('..'); 
    32         if(!ereg('^' . $_SERVER['DOCUMENT_ROOT'],$realpath)) 
     32        if(!preg_match('/^/' . $_SERVER['DOCUMENT_ROOT'],$realpath)) 
    3333        { 
    3434                if(PHP_OS == 'Windows') 
  • trunk/listAdmin/inc/sieve-php.lib.php

    r3514 r5912  
    372372    //So, if we see IMLEMENTATION in the first line, then we are done. 
    373373 
    374     if(ereg("IMPLEMENTATION",$this->line)) 
     374    if(preg_match('/IMPLEMENTATION/',$this->line)) 
    375375    { 
    376376      //we're on the Cyrus V2 sieve server 
     
    767767    //So, if we see IMLEMENTATION in the first line, then we are done. 
    768768 
    769     if(ereg("IMPLEMENTATION",$this->line)) 
     769    if(preg_match('/IMPLEMENTATION/',$this->line)) 
    770770    { 
    771771      //we're on the Cyrus V2 sieve server 
Note: See TracChangeset for help on using the changeset viewer.