Skip to content
This repository was archived by the owner on May 20, 2026. It is now read-only.
This repository was archived by the owner on May 20, 2026. It is now read-only.

ereg deprecated in PHP 5.3 #1

Description

@scotto

Here's a patch:

--- mcp.dc_template_manager.php.orig 2010-04-25 17:54:05.000000000 -0400
+++ mcp.dc_template_manager.php 2011-10-05 12:12:23.327073941 -0400
@@ -705,7 +705,7 @@

        $basepath = $PREFS->ini('tmpl_file_basepath');
  •       if ( ! ereg("/$", $basepath)) $basepath .= '/';
    
  •       if ( ! preg_match("#/$#", $basepath)) $basepath .= '/';
    
        $basepath .= $query->row['group_name'].'/'.$query->row['template_name'].'.php';
    

@@ -736,7 +736,7 @@

    $basepath = $PREFS->ini('tmpl_file_basepath');
  •   if ( ! ereg("/$", $basepath)) $basepath .= '/';
    
  •   if ( ! preg_match("#/$#", $basepath)) $basepath .= '/';
    
    $basepath .= $group_name.'/'.$template_name.'.php';
    

@@ -891,7 +891,7 @@
$qs = ($PREFS->ini('force_query_string') == 'y') ? '' : '?';
$sitepath = $FNS->fetch_site_index(0, 0).$qs.'URL='.$FNS->fetch_site_index();

  •    if ( ! ereg("/$", $sitepath))
    
  •    if ( ! preg_match("#/$#", $sitepath))
        $sitepath .= '/';
    
    $viewurl = $sitepath;
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions