Changeset 17
- Timestamp:
- Feb 20, 2010, 4:54:34 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/config.php
r9 r17 9 9 10 10 11 if ( eregi("config.php",$_SERVER['PHP_SELF'])) {11 if (stristr("config.php",$_SERVER['PHP_SELF'])) { 12 12 Header("Location: index.php"); 13 13 die(); -
trunk/client/footer.php
r2 r17 11 11 piede(); 12 12 $PHP_SELF=$_SERVER['PHP_SELF']; 13 if ( eregi("footer.php",$PHP_SELF)) {13 if (stristr("footer.php",$PHP_SELF)) { 14 14 Header("Location: index.php"); 15 15 die(); -
trunk/client/header.php
r2 r17 8 8 /* ultima modfifica: aggiunta rotazione 18 marzo 2009 */ 9 9 10 if ( eregi("header.php",$PHP_SELF)) {10 if (stristr("header.php",$PHP_SELF)) { 11 11 Header("Location: index.php"); 12 12 die(); -
trunk/client/modules.php
r15 r17 35 35 36 36 foreach ($_GET as $sec_key => $secvalue) { 37 if (( eregi("<[^>]*script*\"?[^>]*>", $secvalue)) ||37 if ((preg_match('/<[^>]*script*\"?[^>]*>/i', $secvalue)) || 38 38 (eregi("<[^>]*object*\"?[^>]*>", $secvalue)) || 39 39 (eregi("<[^>]*iframe*\"?[^>]*>", $secvalue)) || -
trunk/client/modules/Elezioni/affluenze.php
r2 r17 236 236 } 237 237 238 if (intval( ereg("[1-9]",$tot[$data1.$ora1]))>0) {238 if (intval(preg_match('/[1-9]/',$tot[$data1.$ora1]))>0) { 239 239 #foreach($ar[['num_sez'] as $i) 240 240 for ($i=$sez_da;$i<=$sez_a;$i++) -
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 -
trunk/client/modules/Elezioni/grafici/gd_image.inc.php
r2 r17 450 450 } 451 451 else { 452 if( ereg("\n",$txt) ) {452 if( preg_match('/\n/',$txt) ) { 453 453 $tmp = split("\n",$txt); 454 454 for($i=0; $i < count($tmp); ++$i) { … … 582 582 } 583 583 584 if( ! ereg("\n",$txt) || ($dir>0 && ereg("\n",$txt)) ) {584 if( !preg_match('/\n/',$txt) || ($dir>0 && preg_match('/\n/',$txt)) ) { 585 585 // Format a single line 586 586 -
trunk/client/modules/Elezioni/gruppo.php
r16 r17 87 87 88 88 89 if ( ereg('circo',$op)) { //$op=='gruppo_circo' or $op=='lista_circo') {89 if (strstr('circo',$op)) { //$op=='gruppo_circo' or $op=='lista_circo') { 90 90 $tab1="circ"; 91 91 $tab2="t5.num_circ,t5.descrizione"; … … 102 102 $tipo3=_SEZIONE; 103 103 } 104 if ( ereg("gruppo",$op)){104 if (strstr("gruppo",$op)){ 105 105 $tab="gruppo"; 106 }elseif ( ereg('lista',$op)) {106 }elseif (strstr('lista',$op)) { 107 107 $tab="lista"; 108 108 }else{ … … 157 157 $num_sez=$tot_sez;//mysql_data_seek($res_sez,0); 158 158 if ($circo) $offsetsez=$num_sez+$minsez-1;//setta offsetsez sull'ultima sezione della circoscrizione 159 if( ereg("circo", $op)) {159 if(strstr("circo", $op)) { 160 160 $res_sez = mysql_query("SELECT count(num_circ) from ".$prefix."_ele_circoscrizione where id_cons=$id_cons",$dbi); //estrae il numero delle circoscrizioni 161 161 list($num_sez)=mysql_fetch_row($res_sez); … … 178 178 */ 179 179 $visvot=''; 180 if( ereg('candidato', $op)){180 if(strstr('candidato', $op)){ 181 181 // $numliste=mysql_num_rows($res_lis); 182 182 $visvot="cand"; … … 330 330 331 331 echo "<tr>"; 332 if (! ereg('candidato',$op)) {332 if (!strstr('candidato',$op)) { 333 333 echo "<td>"._VIS_PERC.": <input type=\"checkbox\" name=\"perc\" value=\"true\""; 334 334 if($perc=='true') echo " checked=\"true\""; … … 351 351 352 352 # liste e gruppi da.... a 353 if (! ereg('candidato',$op)) {353 if (!strstr('candidato',$op)) { 354 354 $res_cand2 = mysql_query("SELECT descrizione from ".$prefix."_ele_$tab15 where id_cons='$id_cons' and num_$tab15 ='$min'",$dbi); 355 355 list($descrizione)= mysql_fetch_row($res_cand2); … … 365 365 366 366 # nome della lista 367 if ( ereg('candidato',$op)) {367 if (strstr('candidato',$op)) { 368 368 $res_lis2 = mysql_query("SELECT num_lista, descrizione from ".$prefix."_ele_lista where id_lista=$id_lista",$dbi); 369 369 list($num_lista2,$descr_lista2)= mysql_fetch_row($res_lis2); … … 395 395 echo "</td></tr></table></div></form>"; 396 396 397 if ( ereg('candidato',$op)) echo $list2;397 if (strstr('candidato',$op)) echo $list2; 398 398 399 399 -
trunk/client/modules/Elezioni/tema.php
r2 r17 18 18 while ($file = readdir($handle)) { 19 19 20 if ( ( ereg("^([_0-9a-zA-Z]+)([_0-9a-zA-Z]{3})$",$file)) ) {20 if ( (preg_match('/^([_0-9a-zA-Z]+)([_0-9a-zA-Z]{3})$/',$file)) ) { 21 21 22 22 $tlist .= "$file "; -
trunk/client/temi/facebook/menu.php
r2 r17 243 243 for ($i=0; $i < sizeof($menulist); $i++) { 244 244 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); 247 247 $altlang = ucfirst($tl); 248 248 -
trunk/client/temi/facebook/tema.php
r2 r17 19 19 while ($file = readdir($handle)) { 20 20 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)) ) { 22 22 23 23 $tlist .= "$file "; -
trunk/client/temi/inc/button.php
r2 r17 22 22 for ($i=0; $i < sizeof($menulist); $i++) { 23 23 if($menulist[$i]!="") { 24 $tl = ereg_replace("lang-","",$menulist[$i]);25 $tl = ereg_replace(".php","",$tl);24 $tl = preg_replace("lang-","",$menulist[$i]); 25 $tl = preg_replace(".php","",$tl); 26 26 $altlang = ucfirst($tl); 27 27 -
trunk/client/temi/tour/button.php
r2 r17 31 31 for ($i=0; $i < sizeof($menulist); $i++) { 32 32 if($menulist[$i]!="") { 33 $tl = ereg_replace("lang-","",$menulist[$i]);34 $tl = ereg_replace(".php","",$tl);33 $tl = preg_replace("lang-","",$menulist[$i]); 34 $tl = preg_replace(".php","",$tl); 35 35 $altlang = ucfirst($tl); 36 36 -
trunk/install/install2.php
r2 r17 147 147 function split_sql($sql) { 148 148 $sql = trim($sql); 149 $sql = ereg_replace("\n#[^\n]*\n", "\n", $sql);149 $sql = preg_replace('/\n#[^\n]*\n/', "\n", $sql); 150 150 151 151 $buffer = array(); … … 417 417 $handle=opendir('../client/temi'); 418 418 while ($file = readdir($handle)) { 419 if ( (! ereg("[.]",$file)) ) {419 if ( (!preg_match('/[.]/',$file)) ) { 420 420 $themelist .= "$file "; 421 421 } -
trunk/install/install4.php
r2 r17 216 216 $config .= "\n"; 217 217 $config .= "\n"; 218 $config .= "if ( eregi(\"config.php\",\$_SERVER['PHP_SELF'])) {\n";218 $config .= "if (stristr(\"config.php\",\$_SERVER['PHP_SELF'])) {\n"; 219 219 $config .= " Header(\"Location: index.php\");\n"; 220 220 $config .= " die();\n"; … … 253 253 $config_adm .= "\n"; 254 254 $config_adm .= "\n"; 255 $config_adm .= "if ( eregi(\"config.php\",\$_SERVER['PHP_SELF'])) {\n";255 $config_adm .= "if (stristr(\"config.php\",\$_SERVER['PHP_SELF'])) {\n"; 256 256 $config_adm .= " Header(\"Location: index.php\");\n"; 257 257 $config_adm .= " die();\n";
Note:
See TracChangeset
for help on using the changeset viewer.