Changeset 23 for trunk/admin
- Timestamp:
- Mar 5, 2010, 1:53:30 PM (15 years ago)
- Location:
- trunk/admin
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/admin.php
r21 r23 124 124 $dbi=mysql_connect($dbhost, $dbuname, $dbpass) or die("Connessione non riuscita: " . mysql_error()); 125 125 mysql_select_db($dbname)or die("Connessione non riuscita:" . mysql_error()); 126 # mysql_set_charset('utf8', $dbi);127 126 mysql_query("SET NAMES 'utf8'", $dbi); 128 127 //---10/05/2009 gestione consultazione predefinita -
trunk/admin/footer.php
r2 r23 8 8 9 9 $PHP_SELF=$_SERVER['PHP_SELF']; 10 if ( eregi("footer.php",$PHP_SELF)) {10 if (preg_match("/footer.php/i",$PHP_SELF)) { 11 11 Header("Location: admin.php"); 12 12 die(); -
trunk/admin/inc/FCKeditor/editor/filemanager/browser/default/connectors/php/connector.php
r2 r23 53 53 $GLOBALS["UserFilesPath"] = $strBP ; 54 54 } 55 if ( ! ereg( '/$', $GLOBALS["UserFilesPath"] ) )55 if ( ! preg_match( '/\/$/', $GLOBALS["UserFilesPath"] ) ) 56 56 $GLOBALS["UserFilesPath"] .= '/' ; 57 57 … … 60 60 $GLOBALS["UserFilesDirectory"] = $Config['UserFilesAbsolutePath'] ; 61 61 62 if ( ! ereg( '/$', $GLOBALS["UserFilesDirectory"] ) )62 if ( ! preg_match( '/\/$/', $GLOBALS["UserFilesDirectory"] ) ) 63 63 $GLOBALS["UserFilesDirectory"] .= '/' ; 64 64 } … … 86 86 87 87 // Check the current folder syntax (must begin and start with a slash). 88 if ( ! ereg( '/$', $sCurrentFolder ) ) $sCurrentFolder .= '/' ;88 if ( ! preg_match( '/\/$/', $sCurrentFolder ) ) $sCurrentFolder .= '/' ; 89 89 if ( strpos( $sCurrentFolder, '/' ) !== 0 ) $sCurrentFolder = '/' . $sCurrentFolder ; 90 90 -
trunk/admin/index.php
r15 r23 10 10 $dbi=mysql_connect($dbhost, $dbuname, $dbpass) or die("Connessione non riuscita: " . mysql_error()); 11 11 mysql_select_db($dbname)or die("Connessione non riuscita:" . mysql_error()); 12 mysql_set_charset('utf8', $dbi);12 mysql_query("SET NAMES 'utf8'", $dbi); 13 13 //---10/05/2009 gestione consultazione predefinita 14 14 //if (!isset($_SESSION['id_comune'])){ -
trunk/admin/modules/Elezioni/controllo_votanti.php
r2 r23 130 130 } 131 131 // $ar['riga2'][$data1.$ora1]="<hr>"; 132 if (intval( ereg("[1-9]",$tot[$data1.$ora1]))>0) {132 if (intval(preg_match("/[1-9]/",$tot[$data1.$ora1]))>0) { 133 133 for ($i=1;$i<=$num_sez;$i++) 134 134 { -
trunk/admin/modules/Elezioni/ele_come.php
r2 r23 138 138 139 139 $temp=$title.$preamble.$content; 140 if ( eregi("script",$temp)) die("La parola script e' proibita, devi toglierla dal testo.");140 if (preg_match("/script/i",$temp)) die("La parola script e' proibita, devi toglierla dal testo."); 141 141 $result = mysql_query("update ".$prefix.$tab." set title='$title', preamble='$preamble', content='$content' WHERE mid='$mid' AND id_cons='$id_cons'", $dbi); 142 142 Header("Location: admin.php?op=$op&vai=come&id_cons_gen=$id_cons_gen"); -
trunk/admin/modules/Elezioni/ele_voti.php
r2 r23 1112 1112 1113 1113 1114 if (! ereg("rec",$op)) {1114 if (!preg_match("/rec/",$op)) { 1115 1115 ele(); //menu 1116 1116 numeri_sezione(); -
trunk/admin/temi/facebook/menu.php
r2 r23 227 227 for ($i=0; $i < sizeof($menulist); $i++) { 228 228 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); 231 231 $altlang = ucfirst($tl); 232 232 -
trunk/admin/temi/facebook/tema.php
r2 r23 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 ";
Note:
See TracChangeset
for help on using the changeset viewer.