Changes in / [20:30]


Ignore:
Location:
/trunk
Files:
1 deleted
25 edited

Legend:

Unmodified
Added
Removed
  • /trunk/admin/admin.php

    r20 r30  
    7171
    7272foreach ($_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))) {
    8686        die ("Operazione non consentita");
    8787     }
     
    8989
    9090  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))) {
    9292      die ('Operazione non consentita');
    9393    }
     
    124124                $dbi=mysql_connect($dbhost, $dbuname, $dbpass) or die("Connessione non riuscita: " . mysql_error());
    125125                mysql_select_db($dbname)or die("Connessione non riuscita:" . mysql_error());
    126                 mysql_set_charset('utf8', $dbi);
     126        mysql_query("SET NAMES 'utf8'", $dbi);
    127127//---10/05/2009  gestione consultazione predefinita
    128128                $res_config = mysql_query("select * from ".$prefix."_config ",$dbi);
     
    161161        if (strlen($aid)>25 ) { die ("Nome utente troppo lungo: $aid"); }       
    162162        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"); }
    164164        if (isset($_SESSION['aid'])){
    165165                logout();//se hai gia' una sessione aperta non puoi postare 'aid'
  • /trunk/admin/footer.php

    r20 r30  
    88
    99$PHP_SELF=$_SERVER['PHP_SELF'];
    10 if (eregi("footer.php",$PHP_SELF)) {
     10if (preg_match("/footer.php/i",$PHP_SELF)) {
    1111    Header("Location: admin.php");
    1212    die();
  • /trunk/admin/inc/FCKeditor/editor/filemanager/browser/default/connectors/php/connector.php

    r20 r30  
    5353        $GLOBALS["UserFilesPath"] = $strBP ;
    5454}
    55 if ( ! ereg( '/$', $GLOBALS["UserFilesPath"] ) )
     55if ( ! preg_match( '/\/$/', $GLOBALS["UserFilesPath"] ) )
    5656        $GLOBALS["UserFilesPath"] .= '/' ;
    5757
     
    6060        $GLOBALS["UserFilesDirectory"] = $Config['UserFilesAbsolutePath'] ;
    6161
    62         if ( ! ereg( '/$', $GLOBALS["UserFilesDirectory"] ) )
     62        if ( ! preg_match( '/\/$/', $GLOBALS["UserFilesDirectory"] ) )
    6363                $GLOBALS["UserFilesDirectory"] .= '/' ;
    6464}
     
    8686
    8787        // Check the current folder syntax (must begin and start with a slash).
    88         if ( ! ereg( '/$', $sCurrentFolder ) ) $sCurrentFolder .= '/' ;
     88        if ( ! preg_match( '/\/$/', $sCurrentFolder ) ) $sCurrentFolder .= '/' ;
    8989        if ( strpos( $sCurrentFolder, '/' ) !== 0 ) $sCurrentFolder = '/' . $sCurrentFolder ;
    9090       
  • /trunk/admin/index.php

    r20 r30  
    1010                $dbi=mysql_connect($dbhost, $dbuname, $dbpass) or die("Connessione non riuscita: " . mysql_error());
    1111                mysql_select_db($dbname)or die("Connessione non riuscita:" . mysql_error());
    12                 mysql_set_charset('utf8', $dbi);
     12        mysql_query("SET NAMES 'utf8'", $dbi);
    1313//---10/05/2009  gestione consultazione predefinita
    1414//if (!isset($_SESSION['id_comune'])){
  • /trunk/admin/modules/Elezioni/controllo_votanti.php

    r20 r30  
    130130                }
    131131//      $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) {
    133133                        for ($i=1;$i<=$num_sez;$i++)
    134134                        {
  • /trunk/admin/modules/Elezioni/ele_come.php

    r20 r30  
    138138
    139139$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.");
    141141    $result = mysql_query("update ".$prefix.$tab." set title='$title', preamble='$preamble', content='$content' WHERE mid='$mid' AND id_cons='$id_cons'", $dbi);
    142142    Header("Location: admin.php?op=$op&vai=come&id_cons_gen=$id_cons_gen");
  • /trunk/admin/modules/Elezioni/ele_voti.php

    r20 r30  
    11121112
    11131113
    1114         if (!ereg("rec",$op)) {
     1114        if (!preg_match("/rec/",$op)) {
    11151115                ele(); //menu
    11161116                numeri_sezione();
  • /trunk/admin/modules/Elezioni/language/lang-it.php

    r20 r30  
    164164define("_TESTATA","Immagine per la testata");
    165165define("_BLOCCO","Visualizzare il blocco laterale?");
    166 define("_MULTICOMUNE","Si gestiscono più comuni?");
     166define("_MULTICOMUNE",htmlentities("Si gestiscono più comuni?"));
    167167define("_PREFIX","Prefisso delle tabelle");
    168168define("_ADMINMAIL","mail dell'amministratore");
  • /trunk/admin/temi/facebook/menu.php

    r20 r30  
    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

    r20 r30  
    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 ";
  • /trunk/client/file.php

    r20 r30  
    1010die("<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>");
    1111}
    12 mysql_set_charset('utf8', $dbi);
     12mysql_query("SET NAMES 'utf8'", $dbi);
    1313if ($fase=='1'){
    1414        $res = mysql_query("SELECT id_cons_gen,descrizione from ".$prefix."_ele_consultazione order by descrizione",$dbi);
  • /trunk/client/modules.php

    r20 r30  
    3535
    3636foreach ($_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))) {
    5050        die ("Operazione non consentita");
    5151     }
     
    5353
    5454  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))) {
    5656      die ($htmltags);
    5757    }
     
    7474global $op,$name;
    7575if(!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"; // reindirizza
    78 if (eregi("admin.php",$_SERVER['SCRIPT_NAME'])) $pagina="op=$op"; // reindirizza
     76$querystring= @preg_replace('/'.$_SERVER['DOCUMENT_ROOT'].'/i','http://'.$_SERVER['HTTP_HOST'].'/',$_SERVER['SCRIPT_FILENAME']);
     77if (preg_match("/modules.php/i",$_SERVER['SCRIPT_NAME'])) $pagina="name=$name"; // reindirizza
     78if (preg_match("/admin.php/i",$_SERVER['SCRIPT_NAME'])) $pagina="op=$op"; // reindirizza
    7979 echo "<noscript><meta http-equiv=\"refresh\" content=\"0; url=".$querystring."?js=b&amp;$pagina\"/></noscript>";
    8080  }
     
    104104die("<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>");
    105105}
    106 mysql_set_charset('utf8', $dbi);
     106mysql_query("SET NAMES 'utf8'", $dbi);
    107107
    108108# carica i parametri di default sulla tabella
     
    210210        $tema=$param['tema'];
    211211        $tema=htmlentities($tema); // evita xss
    212         if(eregi("%", $tema)) $tema="default";// evita xss
     212        if(preg_match("/%/i", $tema)) $tema="default";// evita xss
    213213        $_SESSION['newtema']="$tema";
    214214        }
    215 
    216 if (eregi("%",$_SESSION['newtema'])) $_SESSION['newtema']="default"; // xss
    217 if (isset($_SESSION['newtema'])) $tema=$_SESSION['newtema'];
    218 
     215if (isset($_SESSION['newtema'])) {
     216        $tema=$_SESSION['newtema'];
     217        if (preg_match("/%/i",$_SESSION['newtema'])) $_SESSION['newtema']="default"; // xss
     218}
    219219$PHP_SELF=$_SERVER['PHP_SELF'];
    220220$file=(isset($_GET['file'])) ? $_GET['file']:"index";
     
    223223$name=htmlentities($name);
    224224$file=htmlentities($file);
    225 $id_comune=intval($id_comune);
     225#$id_comune=intval($id_comune);
    226226
    227227$modpath = "modules/$name/$file.php";
  • /trunk/client/modules/Elezioni/funzioni.php

    r20 r30  
    208208           
    209209            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);
    214214                $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 );
    217217                $descr  = stripslashes($descr );
    218218
  • /trunk/client/modules/Elezioni/grafici.php

    r20 r30  
    6767                // numero sezioni scrutinate
    6868                //if ($circo)$circos="and id_circ='$id_circ'";
     69        if (!isset($data1)) $data1='';
     70        if (!isset($ora_ril)) $ora_ril='';
    6971                $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);
    7072# mysql_query("select *  from ".$prefix."_ele_voti_parziale where id_cons='$id_cons' $circos  group by id_sez ",$dbi);
     
    217219         */
    218220        $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;
    220225        $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);
    221226        $sezioni=mysql_num_rows($res);
     
    442447                                //$descrizione=taglio(4,$descrizione);
    443448                               
    444                                 $gruppo[$i]=utf8_encode(substr($descrizione,0,21));
    445                                 $gruppos[$e]=utf8_encode(substr($descrizione,0,21)); //flash
     449                                $gruppo[$i]=(substr($descrizione,0,21));
     450                                $gruppos[$e]=(substr($descrizione,0,21)); //flash
    446451
    447452                               
  • /trunk/client/modules/Elezioni/grafici/affluenze_graf.php

    r20 r30  
    1010include ("jpgraph.php");
    1111include ("jpgraph_pie.php");
     12if(file_exists(TTF_DIR))
     13        define("CURFONT1",FF_DV_SANSSERIF);
     14else
     15        define ("CURFONT1",FF_FONT1);
     16
    1217
    1318$e=$_GET['e'];$f=$_GET['f'];$e1=$_GET['e1'];$f1=$_GET['f1'];
     
    2227
    2328$graph->title->Set($titolo);
    24 $graph->title->SetFont(FF_FONT1,FS_BOLD);
     29$graph->title->SetFont(CURFONT1,FS_BOLD);
    2530$graph ->legend->Pos( 0.02,0.85,"left" ,"center");
    2631$graph->SetBackgroundImage("../images/logo.jpg",BGIMG_COPY);
  • /trunk/client/modules/Elezioni/grafici/barre.php

    r20 r30  
    99include ("jpgraph.php");
    1010include ("jpgraph_bar.php");
    11 
     11if(file_exists(TTF_DIR))
     12        define("CURFONT1",FF_DV_SANSSERIF);
     13else
     14        define ("CURFONT1",FF_FONT1);
    1215
    1316$dati1=$_GET['dati1'];$dati2=$_GET['dati2'];$i=$_GET['i'];$l=$_GET['l'];$w=$_GET['w'];
     
    4649// Setup title
    4750$graph->title->Set("$titolo");
    48 $graph->title->SetFont(FF_FONT1,FS_BOLD,10);
     51$graph->title->SetFont(CURFONT1,FS_BOLD,10);
    4952$graph->subtitle->Set("$descr");
    5053
    5154// Setup X-axis
    5255$graph->xaxis->SetTickLabels($datax);
    53 $graph->xaxis->SetFont(FF_FONT1,FS_BOLD,8);
     56$graph->xaxis->SetFont(CURFONT1,FS_BOLD,8);
    5457$graph->xaxis->SetColor("black","darkred");
    5558// Some extra margin looks nicer
     
    8891//$graph->yaxis->title->Align('center');
    8992
    90 $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD,12);
     93$graph->yaxis->title->SetFont(CURFONT1,FS_BOLD,12);
    9194$graph->yaxis->title->SetAngle(0);
    9295
    9396
    9497
    95 $graph->yaxis->SetFont(FF_FONT2,FS_NORMAL);
     98$graph->yaxis->SetFont(CURFONT1,FS_NORMAL); #era FF_FONT2
    9699// If you want the labels at an angle other than 0 or 90
    97100// you need to use TTF fonts
     
    123126// We want to display the value of each bar at the top
    124127$bplot->value->Show();
    125 $bplot->value->SetFont(FF_FONT1,FS_BOLD,12);
     128$bplot->value->SetFont(CURFONT1,FS_BOLD,12);
    126129$bplot->value->SetAlign('left','center');
    127130$bplot->value->SetColor("black","darkred");
    128 $bplot->value->SetFormat('%.2f perc');
     131$bplot->value->SetFormat("%.2f &#37;");
    129132
    130133// Add the bar to the graph
  • /trunk/client/modules/Elezioni/grafici/jpg-config.inc.php

    r20 r30  
    3131//   MBTTF_DIR /usr/share/fonts/ja/TrueType/
    3232//
     33define("TTF_DIR","/usr/share/fonts/truetype/ttf-dejavu/");
    3334// WINDOWS:
    3435//   CACHE_DIR $SERVER_TEMP/jpgraph_cache/
  • /trunk/client/modules/Elezioni/gruppo.php

    r20 r30  
    365365
    366366                                # nome della lista
     367                                if (!isset($list2)) $list2='';
    367368                                if (strstr( $op,'candidato')) {
    368369                                        $res_lis2 = mysql_query("SELECT num_lista, descrizione from ".$prefix."_ele_lista where id_lista=$id_lista",$dbi);
     
    426427                                        $pos[$z]=$res[0];
    427428                                }
     429                        if (!isset($pos)) $pos[0]=0;
    428430                        $minpos=min($pos);
    429431                        $maxpos=max($pos);
  • /trunk/client/modules/Elezioni/language/lang-en.php

    r20 r30  
    153153define("_LISTE","Lists");
    154154define("_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");
    156156define("_TUTTESEDI","All electoral centers");
    157157define("_ATT_VOTI","Warning! ballots");
     
    265265define("_SEZNOS","Sections to be counted");
    266266define("_SEZSCR","Counted Sections");
    267 define("_LISTA","List");
     267#define("_LISTA","List");
    268268define("_PREFLISTA","Ballots to the list");
    269269define("_CANDIDATO","Candidate");
     
    402402define("_EDIFICIO","Building");
    403403define("_MAPPA","Map");
    404 define("_LINK","Link");
     404#define("_LINK","Link");
    405405define("_NUMERITEL","Telephon");
    406406define("_DESCRAPP","Deep Description");
     
    410410define("_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");
    411411define("_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");
    413413define("_GESRIS","managing elections");
    414414define("_INVIOSEGN","To contact us for signallings, demands or suggestions");
  • /trunk/client/modules/Elezioni/language/lang-it.php

    r20 r30  
    199199define("_SCELTA_LISTE","ASSEGNA LE LISTE AI RAGGRUPPAMENTI");
    200200define("_ALTRI","Altri sotto il 3%");
    201 define("_CNFR_CONS","RAFFRONTO TRA CONSULTAZIONI<br/>si può impostare su liste singole o su raggruppamenti");
     201define("_CNFR_CONS",htmlentities("RAFFRONTO TRA CONSULTAZIONI<br/>si può impostare su liste singole o su raggruppamenti"));
    202202define("_SCELTA_CONS","<b>Scegli le consultazioni da mettere a confronto</b>");
    203203
  • /trunk/client/modules/Elezioni/votanti.php

    r20 r30  
    224224                }
    225225        }
     226        $righet='';
    226227        if($num_scr){
    227228        $righet = "<tr class=\"bggray\">
  • /trunk/client/temi/facebook/index.php

    r20 r30  
    11<?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
     9if (!defined('MODULE_FILE')) {
     10    die ("You can't access this file directly...");
     11}
     12
    213# tema like-facebook
    314# for eleonline
    415include_once("modules/Elezioni/funzioni.php");
    516########## no blocco x grafici e risultati
     17if (!isset($param['op'])) $param['op']='';
    618if($blocco!=1 || $param['op']=="graf_gruppo" || $param['op']=="gruppo_circo" || $param['op']=="gruppo_sezione"
    719|| $param['op']=="lista_circo" || $param['op']=="lista_sezione"  || $param['op']=="candidato_circo" || $param['op']=="candidato_sezione"
  • /trunk/client/temi/facebook/menu.php

    r20 r30  
    243243        for ($i=0; $i < sizeof($menulist); $i++) {
    244244                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);
    247247                        $altlang = ucfirst($tl);
    248248                       
  • /trunk/client/temi/inc/button.php

    r20 r30  
    2222        for ($i=0; $i < sizeof($menulist); $i++) {
    2323                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);
    2626                        $altlang = ucfirst($tl);
    2727                       
  • /trunk/client/temi/tour/button.php

    r20 r30  
    3131        for ($i=0; $i < sizeof($menulist); $i++) {
    3232                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);
    3535                        $altlang = ucfirst($tl);
    3636                       
Note: See TracChangeset for help on using the changeset viewer.