Changes in / [30:20]


Ignore:
Location:
/trunk
Files:
33 added
25 edited

Legend:

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

    r30 r20  
    7171
    7272foreach ($_GET as $sec_key => $secvalue) {
    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))) {
     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))) {
    8686        die ("Operazione non consentita");
    8787     }
     
    8989
    9090  foreach ($_POST as $secvalue) {
    91     if ((preg_match("/<[^>]*onmouseover*\"?[^>]*>/i", $secvalue)) || (preg_match("/<[^>]script*\"?[^>]*>/i", $secvalue)) || (preg_match("/<[^>]*body*\"?[^>]*>/i", $secvalue)) || (preg_match("/<[^>]style*\"?[^>]*>/i", $secvalue))) {
     91    if ((eregi("<[^>]*onmouseover*\"?[^>]*>", $secvalue)) || (eregi("<[^>]script*\"?[^>]*>", $secvalue)) || (eregi("<[^>]*body*\"?[^>]*>", $secvalue)) || (eregi("<[^>]style*\"?[^>]*>", $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_query("SET NAMES 'utf8'", $dbi);
     126                mysql_set_charset('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 (strstr( $aid," ")) { die ("Gli spazi non sono ammessi nel nome utente: $aid"); }
     163        if (ereg(" ", $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

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

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

    r30 r20  
    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_query("SET NAMES 'utf8'", $dbi);
     12                mysql_set_charset('utf8', $dbi);
    1313//---10/05/2009  gestione consultazione predefinita
    1414//if (!isset($_SESSION['id_comune'])){
  • /trunk/admin/modules/Elezioni/controllo_votanti.php

    r30 r20  
    130130                }
    131131//      $ar['riga2'][$data1.$ora1]="<hr>";
    132                 if (intval(preg_match("/[1-9]/",$tot[$data1.$ora1]))>0) {
     132                if (intval(ereg("[1-9]",$tot[$data1.$ora1]))>0) {
    133133                        for ($i=1;$i<=$num_sez;$i++)
    134134                        {
  • /trunk/admin/modules/Elezioni/ele_come.php

    r30 r20  
    138138
    139139$temp=$title.$preamble.$content;
    140         if (preg_match("/script/i",$temp)) die("La parola script e' proibita, devi toglierla dal testo.");
     140        if (eregi("script",$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

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

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

    r30 r20  
    227227        for ($i=0; $i < sizeof($menulist); $i++) {
    228228                if($menulist[$i]!="") {
    229                         $tl = preg_replace("/lang-/","",$menulist[$i]);
    230                         $tl = preg_replace("/.php/","",$tl);
     229                        $tl = ereg_replace("lang-","",$menulist[$i]);
     230                        $tl = ereg_replace(".php","",$tl);
    231231                        $altlang = ucfirst($tl);
    232232                       
  • /trunk/admin/temi/facebook/tema.php

    r30 r20  
    1919        while ($file = readdir($handle)) {
    2020
    21                         if ( (preg_match("/^([_0-9a-zA-Z]+)([_0-9a-zA-Z]{3})$/",$file)) ) {
     21                        if ( (ereg("^([_0-9a-zA-Z]+)([_0-9a-zA-Z]{3})$",$file)) ) {
    2222
    2323                   $tlist .= "$file ";
  • /trunk/client/file.php

    r30 r20  
    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_query("SET NAMES 'utf8'", $dbi);
     12mysql_set_charset('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

    r30 r20  
    3535
    3636foreach ($_GET as $sec_key => $secvalue) {
    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))) {
     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))) {
    5050        die ("Operazione non consentita");
    5151     }
     
    5353
    5454  foreach ($_POST as $secvalue) {
    55     if ((preg_match("/<[^>]*onmouseover*\"?[^>]*>/i", $secvalue)) || (preg_match("/<[^>]script*\"?[^>]*>/i", $secvalue)) || (preg_match("/<[^>]*body*\"?[^>]*>/i", $secvalue)) || (preg_match("/<[^>]style*\"?[^>]*>/i", $secvalue))) {
     55    if ((eregi("<[^>]*onmouseover*\"?[^>]*>", $secvalue)) || (eregi("<[^>]script*\"?[^>]*>", $secvalue)) || (eregi("<[^>]*body*\"?[^>]*>", $secvalue)) || (eregi("<[^>]style*\"?[^>]*>", $secvalue))) {
    5656      die ($htmltags);
    5757    }
     
    7474global $op,$name;
    7575if(!isset($_GET['js'])){
    76 $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
     76$querystring= @eregi_replace($_SERVER['DOCUMENT_ROOT'],'http://'.$_SERVER['HTTP_HOST'].'/',$_SERVER['SCRIPT_FILENAME']);
     77if (eregi("modules.php",$_SERVER['SCRIPT_NAME'])) $pagina="name=$name"; // reindirizza
     78if (eregi("admin.php",$_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_query("SET NAMES 'utf8'", $dbi);
     106mysql_set_charset('utf8', $dbi);
    107107
    108108# carica i parametri di default sulla tabella
     
    210210        $tema=$param['tema'];
    211211        $tema=htmlentities($tema); // evita xss
    212         if(preg_match("/%/i", $tema)) $tema="default";// evita xss
     212        if(eregi("%", $tema)) $tema="default";// evita xss
    213213        $_SESSION['newtema']="$tema";
    214214        }
    215 if (isset($_SESSION['newtema'])) {
    216         $tema=$_SESSION['newtema'];
    217         if (preg_match("/%/i",$_SESSION['newtema'])) $_SESSION['newtema']="default"; // xss
    218 }
     215
     216if (eregi("%",$_SESSION['newtema'])) $_SESSION['newtema']="default"; // xss
     217if (isset($_SESSION['newtema'])) $tema=$_SESSION['newtema'];
     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

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

    r30 r20  
    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='';
    7169                $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);
    7270# mysql_query("select *  from ".$prefix."_ele_voti_parziale where id_cons='$id_cons' $circos  group by id_sez ",$dbi);
     
    219217         */
    220218        $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);
    221         if($res)
    222                 $numero=mysql_num_rows($res);
    223         else
    224                 $numero=0;
     219        $numero=mysql_num_rows($res);
    225220        $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);
    226221        $sezioni=mysql_num_rows($res);
     
    447442                                //$descrizione=taglio(4,$descrizione);
    448443                               
    449                                 $gruppo[$i]=(substr($descrizione,0,21));
    450                                 $gruppos[$e]=(substr($descrizione,0,21)); //flash
     444                                $gruppo[$i]=utf8_encode(substr($descrizione,0,21));
     445                                $gruppos[$e]=utf8_encode(substr($descrizione,0,21)); //flash
    451446
    452447                               
  • /trunk/client/modules/Elezioni/grafici/affluenze_graf.php

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

    r30 r20  
    99include ("jpgraph.php");
    1010include ("jpgraph_bar.php");
    11 if(file_exists(TTF_DIR))
    12         define("CURFONT1",FF_DV_SANSSERIF);
    13 else
    14         define ("CURFONT1",FF_FONT1);
     11
    1512
    1613$dati1=$_GET['dati1'];$dati2=$_GET['dati2'];$i=$_GET['i'];$l=$_GET['l'];$w=$_GET['w'];
     
    4946// Setup title
    5047$graph->title->Set("$titolo");
    51 $graph->title->SetFont(CURFONT1,FS_BOLD,10);
     48$graph->title->SetFont(FF_FONT1,FS_BOLD,10);
    5249$graph->subtitle->Set("$descr");
    5350
    5451// Setup X-axis
    5552$graph->xaxis->SetTickLabels($datax);
    56 $graph->xaxis->SetFont(CURFONT1,FS_BOLD,8);
     53$graph->xaxis->SetFont(FF_FONT1,FS_BOLD,8);
    5754$graph->xaxis->SetColor("black","darkred");
    5855// Some extra margin looks nicer
     
    9188//$graph->yaxis->title->Align('center');
    9289
    93 $graph->yaxis->title->SetFont(CURFONT1,FS_BOLD,12);
     90$graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD,12);
    9491$graph->yaxis->title->SetAngle(0);
    9592
    9693
    9794
    98 $graph->yaxis->SetFont(CURFONT1,FS_NORMAL); #era FF_FONT2
     95$graph->yaxis->SetFont(FF_FONT2,FS_NORMAL);
    9996// If you want the labels at an angle other than 0 or 90
    10097// you need to use TTF fonts
     
    126123// We want to display the value of each bar at the top
    127124$bplot->value->Show();
    128 $bplot->value->SetFont(CURFONT1,FS_BOLD,12);
     125$bplot->value->SetFont(FF_FONT1,FS_BOLD,12);
    129126$bplot->value->SetAlign('left','center');
    130127$bplot->value->SetColor("black","darkred");
    131 $bplot->value->SetFormat("%.2f &#37;");
     128$bplot->value->SetFormat('%.2f perc');
    132129
    133130// Add the bar to the graph
  • /trunk/client/modules/Elezioni/grafici/jpg-config.inc.php

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

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

    r30 r20  
    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");
     155define("_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");
     267define("_LISTA","List");
    268268define("_PREFLISTA","Ballots to the list");
    269269define("_CANDIDATO","Candidate");
     
    402402define("_EDIFICIO","Building");
    403403define("_MAPPA","Map");
    404 #define("_LINK","Link");
     404define("_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");
     412define("_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

    r30 r20  
    199199define("_SCELTA_LISTE","ASSEGNA LE LISTE AI RAGGRUPPAMENTI");
    200200define("_ALTRI","Altri sotto il 3%");
    201 define("_CNFR_CONS",htmlentities("RAFFRONTO TRA CONSULTAZIONI<br/>si può impostare su liste singole o su raggruppamenti"));
     201define("_CNFR_CONS","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

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

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

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

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

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