Changeset 17 for trunk/client/modules/Elezioni/funzioni.php
- Timestamp:
- Feb 20, 2010, 4:54:34 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/funzioni.php
r2 r17 208 208 209 209 for ($i=0;$i<20;$i++) { 210 $link = ereg_replace(".*<link>","",$items[$i]);211 $link = ereg_replace("</link>.*","",$link);212 $title2 = ereg_replace(".*<title>","",$items[$i]);213 $title2 = ereg_replace("</title>.*","",$title2);210 $link = preg_replace(".*<link>","",$items[$i]); 211 $link = preg_replace("</link>.*","",$link); 212 $title2 = preg_replace(".*<title>","",$items[$i]); 213 $title2 = preg_replace("</title>.*","",$title2); 214 214 $title2 = stripslashes($title2); 215 $descr = ereg_replace(".*<description>","",$items[$i]);216 $descr = ereg_replace("</description>.*","",$descr );215 $descr = preg_replace(".*<description>","",$items[$i]); 216 $descr = preg_replace("</description>.*","",$descr ); 217 217 $descr = stripslashes($descr ); 218 218 … … 367 367 $bl=opendir('modules/Elezioni/blocchi'); 368 368 while ($file = readdir($bl)) { 369 if (!is_dir("modules/Elezioni/blocchi/$file") and (! ereg("^\.",$file)) and !stristr($file,"off_")) {369 if (!is_dir("modules/Elezioni/blocchi/$file") and (!preg_match('/^\./',$file)) and !stristr($file,"off_")) { 370 370 array_push($list, $file); 371 371 } … … 376 376 sort($list); 377 377 for ($item_num=0; $item_num < count($list); $item_num++) { 378 $tmp= eregi_replace("^[0-9][0-9]_","",$list[$item_num]);378 $tmp=preg_replace('/^[0-9][0-9]_/i',"",$list[$item_num]); 379 379 $title=str_replace("_"," ",str_replace(".php","",$tmp)); 380 380 // backward theme compatibility
Note:
See TracChangeset
for help on using the changeset viewer.