- Location:
- /trunk
- Files:
-
- 1 deleted
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
/trunk/admin/admin.php
r20 r30 71 71 72 72 foreach ($_GET as $sec_key => $secvalue) { 73 if (( eregi("<[^>]*script*\"?[^>]*>",$secvalue)) ||74 ( eregi("<[^>]*object*\"?[^>]*>", $secvalue)) ||75 ( eregi("<[^>]*iframe*\"?[^>]*>", $secvalue)) ||76 ( eregi("<[^>]*applet*\"?[^>]*>", $secvalue)) ||77 ( eregi("<[^>]*meta*\"?[^>]*>", $secvalue)) ||78 ( eregi("<[^>]*style*\"?[^>]*>", $secvalue)) ||79 ( eregi("<[^>]*form*\"?[^>]*>", $secvalue)) ||80 ( eregi("<[^>]*img*\"?[^>]*>", $secvalue)) ||81 ( eregi("<[^>]*onmouseover*\"?[^>]*>", $secvalue)) ||82 ( eregi("<[^>]*body*\"?[^>]*>", $secvalue)) ||83 ( eregi("\([^>]*\"?[^)]*\)", $secvalue)) ||84 ( eregi("\"", $secvalue)) ||85 ( eregi("inside_mod", $sec_key))) {73 if ((preg_match("/<[^>]*script*\"?[^>]*>/i",$secvalue)) || 74 (preg_match("/<[^>]*object*\"?[^>]*>/i", $secvalue)) || 75 (preg_match("/<[^>]*iframe*\"?[^>]*>/i", $secvalue)) || 76 (preg_match("/<[^>]*applet*\"?[^>]*>/i", $secvalue)) || 77 (preg_match("/<[^>]*meta*\"?[^>]*>/i", $secvalue)) || 78 (preg_match("/<[^>]*style*\"?[^>]*>/i", $secvalue)) || 79 (preg_match("/<[^>]*form*\"?[^>]*>/i", $secvalue)) || 80 (preg_match("/<[^>]*img*\"?[^>]*>/i", $secvalue)) || 81 (preg_match("/<[^>]*onmouseover*\"?[^>]*>/i", $secvalue)) || 82 (preg_match("/<[^>]*body*\"?[^>]*>/i", $secvalue)) || 83 (preg_match("/\([^>]*\"?[^)]*\)/", $secvalue)) || 84 (preg_match("/\"/", $secvalue)) || 85 (preg_match("/inside_mod/i", $sec_key))) { 86 86 die ("Operazione non consentita"); 87 87 } … … 89 89 90 90 foreach ($_POST as $secvalue) { 91 if (( eregi("<[^>]*onmouseover*\"?[^>]*>", $secvalue)) || (eregi("<[^>]script*\"?[^>]*>", $secvalue)) || (eregi("<[^>]*body*\"?[^>]*>", $secvalue)) || (eregi("<[^>]style*\"?[^>]*>", $secvalue))) {91 if ((preg_match("/<[^>]*onmouseover*\"?[^>]*>/i", $secvalue)) || (preg_match("/<[^>]script*\"?[^>]*>/i", $secvalue)) || (preg_match("/<[^>]*body*\"?[^>]*>/i", $secvalue)) || (preg_match("/<[^>]style*\"?[^>]*>/i", $secvalue))) { 92 92 die ('Operazione non consentita'); 93 93 } … … 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);126 mysql_query("SET NAMES 'utf8'", $dbi); 127 127 //---10/05/2009 gestione consultazione predefinita 128 128 $res_config = mysql_query("select * from ".$prefix."_config ",$dbi); … … 161 161 if (strlen($aid)>25 ) { die ("Nome utente troppo lungo: $aid"); } 162 162 if (!isset($param['id_ses']) or $param['id_ses'] != session_id()) logout(); 163 if ( ereg(" ", $aid)) { die ("Gli spazi non sono ammessi nel nome utente: $aid"); }163 if (strstr( $aid," ")) { die ("Gli spazi non sono ammessi nel nome utente: $aid"); } 164 164 if (isset($_SESSION['aid'])){ 165 165 logout();//se hai gia' una sessione aperta non puoi postare 'aid' -
/trunk/admin/footer.php
r20 r30 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
r20 r30 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
r20 r30 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
r20 r30 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
r20 r30 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
r20 r30 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/modules/Elezioni/language/lang-it.php
r20 r30 164 164 define("_TESTATA","Immagine per la testata"); 165 165 define("_BLOCCO","Visualizzare il blocco laterale?"); 166 define("_MULTICOMUNE", "Si gestiscono più comuni?");166 define("_MULTICOMUNE",htmlentities("Si gestiscono più comuni?")); 167 167 define("_PREFIX","Prefisso delle tabelle"); 168 168 define("_ADMINMAIL","mail dell'amministratore"); -
/trunk/admin/temi/facebook/menu.php
r20 r30 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
r20 r30 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/file.php
r20 r30 10 10 die("<center><img src=src=\"images/logo.gif\" target=\"Logo Avviso Errore\"><br><br><b>Ci sono dei problemi di connessione al DataBase $dbtype, chiediamo scusa per l'inconveniente.<br><br>Provate piu' tardi, Grazie.</b><br><font color=\"#ff0000\">". mysql_error()."</font></center>"); 11 11 } 12 mysql_ set_charset('utf8', $dbi);12 mysql_query("SET NAMES 'utf8'", $dbi); 13 13 if ($fase=='1'){ 14 14 $res = mysql_query("SELECT id_cons_gen,descrizione from ".$prefix."_ele_consultazione order by descrizione",$dbi); -
/trunk/client/modules.php
r20 r30 35 35 36 36 foreach ($_GET as $sec_key => $secvalue) { 37 if ((preg_match( '/<[^>]*script*\"?[^>]*>/i',$secvalue)) ||38 ( eregi("<[^>]*object*\"?[^>]*>", $secvalue)) ||39 ( eregi("<[^>]*iframe*\"?[^>]*>", $secvalue)) ||40 ( eregi("<[^>]*applet*\"?[^>]*>", $secvalue)) ||41 ( eregi("<[^>]*meta*\"?[^>]*>", $secvalue)) ||42 ( eregi("<[^>]*style*\"?[^>]*>", $secvalue)) ||43 ( eregi("<[^>]*form*\"?[^>]*>", $secvalue)) ||44 ( eregi("<[^>]*img*\"?[^>]*>", $secvalue)) ||45 ( eregi("<[^>]*onmouseover*\"?[^>]*>", $secvalue)) ||46 ( eregi("<[^>]*body*\"?[^>]*>", $secvalue)) ||47 ( eregi("\([^>]*\"?[^)]*\)", $secvalue)) ||48 ( eregi("\"", $secvalue)) ||49 ( eregi("inside_mod", $sec_key))) {37 if ((preg_match("/<[^>]*script*\"?[^>]*>/i",$secvalue)) || 38 (preg_match("/<[^>]*object*\"?[^>]*>/i", $secvalue)) || 39 (preg_match("/<[^>]*iframe*\"?[^>]*>/i", $secvalue)) || 40 (preg_match("/<[^>]*applet*\"?[^>]*>/i", $secvalue)) || 41 (preg_match("/<[^>]*meta*\"?[^>]*>/i", $secvalue)) || 42 (preg_match("/<[^>]*style*\"?[^>]*>/i", $secvalue)) || 43 (preg_match("/<[^>]*form*\"?[^>]*>/i", $secvalue)) || 44 (preg_match("/<[^>]*img*\"?[^>]*>/i", $secvalue)) || 45 (preg_match("/<[^>]*onmouseover*\"?[^>]*>/i", $secvalue)) || 46 (preg_match("/<[^>]*body*\"?[^>]*>/i", $secvalue)) || 47 (preg_match("/\([^>]*\"?[^)]*\)/", $secvalue)) || 48 (preg_match("/\"/", $secvalue)) || 49 (preg_match("/inside_mod/i", $sec_key))) { 50 50 die ("Operazione non consentita"); 51 51 } … … 53 53 54 54 foreach ($_POST as $secvalue) { 55 if (( eregi("<[^>]*onmouseover*\"?[^>]*>", $secvalue)) || (eregi("<[^>]script*\"?[^>]*>", $secvalue)) || (eregi("<[^>]*body*\"?[^>]*>", $secvalue)) || (eregi("<[^>]style*\"?[^>]*>", $secvalue))) {55 if ((preg_match("/<[^>]*onmouseover*\"?[^>]*>/i", $secvalue)) || (preg_match("/<[^>]script*\"?[^>]*>/i", $secvalue)) || (preg_match("/<[^>]*body*\"?[^>]*>/i", $secvalue)) || (preg_match("/<[^>]style*\"?[^>]*>/i", $secvalue))) { 56 56 die ($htmltags); 57 57 } … … 74 74 global $op,$name; 75 75 if(!isset($_GET['js'])){ 76 $querystring= @ eregi_replace($_SERVER['DOCUMENT_ROOT'],'http://'.$_SERVER['HTTP_HOST'].'/',$_SERVER['SCRIPT_FILENAME']);77 if ( eregi("modules.php",$_SERVER['SCRIPT_NAME'])) $pagina="name=$name"; // reindirizza78 if ( eregi("admin.php",$_SERVER['SCRIPT_NAME'])) $pagina="op=$op"; // reindirizza76 $querystring= @preg_replace('/'.$_SERVER['DOCUMENT_ROOT'].'/i','http://'.$_SERVER['HTTP_HOST'].'/',$_SERVER['SCRIPT_FILENAME']); 77 if (preg_match("/modules.php/i",$_SERVER['SCRIPT_NAME'])) $pagina="name=$name"; // reindirizza 78 if (preg_match("/admin.php/i",$_SERVER['SCRIPT_NAME'])) $pagina="op=$op"; // reindirizza 79 79 echo "<noscript><meta http-equiv=\"refresh\" content=\"0; url=".$querystring."?js=b&$pagina\"/></noscript>"; 80 80 } … … 104 104 die("<center><img src=src=\"images/logo.gif\" target=\"Logo Avviso Errore\"><br/><br/><b>Ci sono dei problemi di connessione al DataBase $dbtype, chiediamo scusa per l'inconveniente.<br/><br/>Provate piu' tardi, Grazie.</b><br/><font color=\"#ff0000\">". mysql_error()."</font></center>"); 105 105 } 106 mysql_ set_charset('utf8', $dbi);106 mysql_query("SET NAMES 'utf8'", $dbi); 107 107 108 108 # carica i parametri di default sulla tabella … … 210 210 $tema=$param['tema']; 211 211 $tema=htmlentities($tema); // evita xss 212 if( eregi("%", $tema)) $tema="default";// evita xss212 if(preg_match("/%/i", $tema)) $tema="default";// evita xss 213 213 $_SESSION['newtema']="$tema"; 214 214 } 215 216 if (eregi("%",$_SESSION['newtema'])) $_SESSION['newtema']="default"; // xss 217 if (isset($_SESSION['newtema'])) $tema=$_SESSION['newtema']; 218 215 if (isset($_SESSION['newtema'])) { 216 $tema=$_SESSION['newtema']; 217 if (preg_match("/%/i",$_SESSION['newtema'])) $_SESSION['newtema']="default"; // xss 218 } 219 219 $PHP_SELF=$_SERVER['PHP_SELF']; 220 220 $file=(isset($_GET['file'])) ? $_GET['file']:"index"; … … 223 223 $name=htmlentities($name); 224 224 $file=htmlentities($file); 225 $id_comune=intval($id_comune);225 #$id_comune=intval($id_comune); 226 226 227 227 $modpath = "modules/$name/$file.php"; -
/trunk/client/modules/Elezioni/funzioni.php
r20 r30 208 208 209 209 for ($i=0;$i<20;$i++) { 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);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 = preg_replace(" .*<description>","",$items[$i]);216 $descr = preg_replace(" </description>.*","",$descr );215 $descr = preg_replace("/.*<description>/","",$items[$i]); 216 $descr = preg_replace("/</description>.*/","",$descr ); 217 217 $descr = stripslashes($descr ); 218 218 -
/trunk/client/modules/Elezioni/grafici.php
r20 r30 67 67 // numero sezioni scrutinate 68 68 //if ($circo)$circos="and id_circ='$id_circ'"; 69 if (!isset($data1)) $data1=''; 70 if (!isset($ora_ril)) $ora_ril=''; 69 71 $res1 = mysql_query("SELECT count(data) FROM ".$prefix."_ele_voti_parziale as t3 left join ".$prefix."_ele_sezioni as t1 on t3.id_sez=t1.id_sez left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t1.id_cons='$id_cons' and data='$data1' and orario='$ora_ril' $circos group by t3.id_gruppo", $dbi); 70 72 # mysql_query("select * from ".$prefix."_ele_voti_parziale where id_cons='$id_cons' $circos group by id_sez ",$dbi); … … 217 219 */ 218 220 $res = mysql_query("select t1.* from ".$prefix."_ele_voti_".$tab." as t1 left join ".$prefix."_ele_$tab as t2 on t1.id_gruppo=t2.id_gruppo where t1.id_cons='$id_cons' $circos group by t1.id_sez ",$dbi); 219 $numero=mysql_num_rows($res); 221 if($res) 222 $numero=mysql_num_rows($res); 223 else 224 $numero=0; 220 225 $res = mysql_query("select t1.* from ".$prefix."_ele_sezioni as t1 left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t1.id_cons='$id_cons' $circos",$dbi); 221 226 $sezioni=mysql_num_rows($res); … … 442 447 //$descrizione=taglio(4,$descrizione); 443 448 444 $gruppo[$i]= utf8_encode(substr($descrizione,0,21));445 $gruppos[$e]= utf8_encode(substr($descrizione,0,21)); //flash449 $gruppo[$i]=(substr($descrizione,0,21)); 450 $gruppos[$e]=(substr($descrizione,0,21)); //flash 446 451 447 452 -
/trunk/client/modules/Elezioni/grafici/affluenze_graf.php
r20 r30 10 10 include ("jpgraph.php"); 11 11 include ("jpgraph_pie.php"); 12 if(file_exists(TTF_DIR)) 13 define("CURFONT1",FF_DV_SANSSERIF); 14 else 15 define ("CURFONT1",FF_FONT1); 16 12 17 13 18 $e=$_GET['e'];$f=$_GET['f'];$e1=$_GET['e1'];$f1=$_GET['f1']; … … 22 27 23 28 $graph->title->Set($titolo); 24 $graph->title->SetFont( FF_FONT1,FS_BOLD);29 $graph->title->SetFont(CURFONT1,FS_BOLD); 25 30 $graph ->legend->Pos( 0.02,0.85,"left" ,"center"); 26 31 $graph->SetBackgroundImage("../images/logo.jpg",BGIMG_COPY); -
/trunk/client/modules/Elezioni/grafici/barre.php
r20 r30 9 9 include ("jpgraph.php"); 10 10 include ("jpgraph_bar.php"); 11 11 if(file_exists(TTF_DIR)) 12 define("CURFONT1",FF_DV_SANSSERIF); 13 else 14 define ("CURFONT1",FF_FONT1); 12 15 13 16 $dati1=$_GET['dati1'];$dati2=$_GET['dati2'];$i=$_GET['i'];$l=$_GET['l'];$w=$_GET['w']; … … 46 49 // Setup title 47 50 $graph->title->Set("$titolo"); 48 $graph->title->SetFont( FF_FONT1,FS_BOLD,10);51 $graph->title->SetFont(CURFONT1,FS_BOLD,10); 49 52 $graph->subtitle->Set("$descr"); 50 53 51 54 // Setup X-axis 52 55 $graph->xaxis->SetTickLabels($datax); 53 $graph->xaxis->SetFont( FF_FONT1,FS_BOLD,8);56 $graph->xaxis->SetFont(CURFONT1,FS_BOLD,8); 54 57 $graph->xaxis->SetColor("black","darkred"); 55 58 // Some extra margin looks nicer … … 88 91 //$graph->yaxis->title->Align('center'); 89 92 90 $graph->yaxis->title->SetFont( FF_FONT1,FS_BOLD,12);93 $graph->yaxis->title->SetFont(CURFONT1,FS_BOLD,12); 91 94 $graph->yaxis->title->SetAngle(0); 92 95 93 96 94 97 95 $graph->yaxis->SetFont( FF_FONT2,FS_NORMAL);98 $graph->yaxis->SetFont(CURFONT1,FS_NORMAL); #era FF_FONT2 96 99 // If you want the labels at an angle other than 0 or 90 97 100 // you need to use TTF fonts … … 123 126 // We want to display the value of each bar at the top 124 127 $bplot->value->Show(); 125 $bplot->value->SetFont( FF_FONT1,FS_BOLD,12);128 $bplot->value->SetFont(CURFONT1,FS_BOLD,12); 126 129 $bplot->value->SetAlign('left','center'); 127 130 $bplot->value->SetColor("black","darkred"); 128 $bplot->value->SetFormat( '%.2f perc');131 $bplot->value->SetFormat("%.2f %"); 129 132 130 133 // Add the bar to the graph -
/trunk/client/modules/Elezioni/grafici/jpg-config.inc.php
r20 r30 31 31 // MBTTF_DIR /usr/share/fonts/ja/TrueType/ 32 32 // 33 define("TTF_DIR","/usr/share/fonts/truetype/ttf-dejavu/"); 33 34 // WINDOWS: 34 35 // CACHE_DIR $SERVER_TEMP/jpgraph_cache/ -
/trunk/client/modules/Elezioni/gruppo.php
r20 r30 365 365 366 366 # nome della lista 367 if (!isset($list2)) $list2=''; 367 368 if (strstr( $op,'candidato')) { 368 369 $res_lis2 = mysql_query("SELECT num_lista, descrizione from ".$prefix."_ele_lista where id_lista=$id_lista",$dbi); … … 426 427 $pos[$z]=$res[0]; 427 428 } 429 if (!isset($pos)) $pos[0]=0; 428 430 $minpos=min($pos); 429 431 $maxpos=max($pos); -
/trunk/client/modules/Elezioni/language/lang-en.php
r20 r30 153 153 define("_LISTE","Lists"); 154 154 define("_TEST","If you wont to test Eleonline start inserting username \"suser\" and password \"test\""); 155 define("_GESTIONE","managing vote counting and publishing results");155 #define("_GESTIONE","managing vote counting and publishing results"); 156 156 define("_TUTTESEDI","All electoral centers"); 157 157 define("_ATT_VOTI","Warning! ballots"); … … 265 265 define("_SEZNOS","Sections to be counted"); 266 266 define("_SEZSCR","Counted Sections"); 267 define("_LISTA","List");267 #define("_LISTA","List"); 268 268 define("_PREFLISTA","Ballots to the list"); 269 269 define("_CANDIDATO","Candidate"); … … 402 402 define("_EDIFICIO","Building"); 403 403 define("_MAPPA","Map"); 404 define("_LINK","Link");404 #define("_LINK","Link"); 405 405 define("_NUMERITEL","Telephon"); 406 406 define("_DESCRAPP","Deep Description"); … … 410 410 define("_ADMIN","A<br/>D<br/>M<br/>I<br/>N<br/>I<br/>S<br/>T<br/>R<br/>A<br/>T<br/>O<br/>R"); 411 411 define("_OPER","O<br/>P<br/>E<br/>R<br/>A<br/>T<br/>O<br/>R"); 412 define("_SCELTA_CONS","Choose an Election");412 #define("_SCELTA_CONS","Choose an Election"); 413 413 define("_GESRIS","managing elections"); 414 414 define("_INVIOSEGN","To contact us for signallings, demands or suggestions"); -
/trunk/client/modules/Elezioni/language/lang-it.php
r20 r30 199 199 define("_SCELTA_LISTE","ASSEGNA LE LISTE AI RAGGRUPPAMENTI"); 200 200 define("_ALTRI","Altri sotto il 3%"); 201 define("_CNFR_CONS", "RAFFRONTO TRA CONSULTAZIONI<br/>si può impostare su liste singole o su raggruppamenti");201 define("_CNFR_CONS",htmlentities("RAFFRONTO TRA CONSULTAZIONI<br/>si può impostare su liste singole o su raggruppamenti")); 202 202 define("_SCELTA_CONS","<b>Scegli le consultazioni da mettere a confronto</b>"); 203 203 -
/trunk/client/modules/Elezioni/votanti.php
r20 r30 224 224 } 225 225 } 226 $righet=''; 226 227 if($num_scr){ 227 228 $righet = "<tr class=\"bggray\"> -
/trunk/client/temi/facebook/index.php
r20 r30 1 1 <?php 2 /************************************************************************/ 3 /* Eleonline - Raccolta e diffusione dei dati elettorali */ 4 /* by Luciano Apolito & Roberto Gigli */ 5 /* http://www.eleonline.it */ 6 /* info@eleonline.it luciano@aniene.net rgigli@libero.it */ 7 /************************************************************************/ 8 9 if (!defined('MODULE_FILE')) { 10 die ("You can't access this file directly..."); 11 } 12 2 13 # tema like-facebook 3 14 # for eleonline 4 15 include_once("modules/Elezioni/funzioni.php"); 5 16 ########## no blocco x grafici e risultati 17 if (!isset($param['op'])) $param['op']=''; 6 18 if($blocco!=1 || $param['op']=="graf_gruppo" || $param['op']=="gruppo_circo" || $param['op']=="gruppo_sezione" 7 19 || $param['op']=="lista_circo" || $param['op']=="lista_sezione" || $param['op']=="candidato_circo" || $param['op']=="candidato_sezione" -
/trunk/client/temi/facebook/menu.php
r20 r30 243 243 for ($i=0; $i < sizeof($menulist); $i++) { 244 244 if($menulist[$i]!="") { 245 $tl = preg_replace(" lang-","",$menulist[$i]);246 $tl = preg_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/inc/button.php
r20 r30 22 22 for ($i=0; $i < sizeof($menulist); $i++) { 23 23 if($menulist[$i]!="") { 24 $tl = preg_replace(" lang-","",$menulist[$i]);25 $tl = preg_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
r20 r30 31 31 for ($i=0; $i < sizeof($menulist); $i++) { 32 32 if($menulist[$i]!="") { 33 $tl = preg_replace(" lang-","",$menulist[$i]);34 $tl = preg_replace(" .php","",$tl);33 $tl = preg_replace("/lang-/","",$menulist[$i]); 34 $tl = preg_replace("/.php/","",$tl); 35 35 $altlang = ucfirst($tl); 36 36
Note:
See TracChangeset
for help on using the changeset viewer.