Changeset 23 for trunk/admin/temi


Ignore:
Timestamp:
Mar 5, 2010, 1:53:30 PM (15 years ago)
Author:
roby
Message:

Gestione charset con query mysql e sostituzione funzioni ereg

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

Legend:

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

    r2 r23  
    227227        for ($i=0; $i < sizeof($menulist); $i++) {
    228228                if($menulist[$i]!="") {
    229                         $tl = ereg_replace("lang-","",$menulist[$i]);
    230                         $tl = ereg_replace(".php","",$tl);
     229                        $tl = preg_replace("/lang-/","",$menulist[$i]);
     230                        $tl = preg_replace("/.php/","",$tl);
    231231                        $altlang = ucfirst($tl);
    232232                       
  • trunk/admin/temi/facebook/tema.php

    r2 r23  
    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.