Ignore:
Timestamp:
Feb 20, 2010, 4:54:34 PM (14 years ago)
Author:
roby
Message:

Sostituite le funzioni del gruppo ereg perché divenute "deprecate" con il php 5.3

Location:
trunk/client/temi/facebook
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/temi/facebook/menu.php

    r2 r17  
    243243        for ($i=0; $i < sizeof($menulist); $i++) {
    244244                if($menulist[$i]!="") {
    245                         $tl = ereg_replace("lang-","",$menulist[$i]);
    246                         $tl = ereg_replace(".php","",$tl);
     245                        $tl = preg_replace("lang-","",$menulist[$i]);
     246                        $tl = preg_replace(".php","",$tl);
    247247                        $altlang = ucfirst($tl);
    248248                       
  • trunk/client/temi/facebook/tema.php

    r2 r17  
    1919        while ($file = readdir($handle)) {
    2020
    21                         if ( (ereg("^([_0-9a-zA-Z]+)([_0-9a-zA-Z]{3})$",$file)) ) {
     21                        if ( (preg_match('/^([_0-9a-zA-Z]+)([_0-9a-zA-Z]{3})$/',$file)) ) {
    2222
    2323                   $tlist .= "$file ";
Note: See TracChangeset for help on using the changeset viewer.