Changeset 363 for trunk/admin/temi


Ignore:
Timestamp:
Mar 28, 2022, 2:54:19 PM (3 years ago)
Author:
roby
Message:

Rivista la funzione aggiornadb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/temi/Futura2/index.php

    r361 r363  
    1212$param=strtolower($_SERVER['REQUEST_METHOD']) == 'get' ? $_GET : $_POST;
    1313foreach($param as $key=>$val) {
    14         if($key=='ops') $ops=$val;
    15         if($key=='id_lista') $id_lista=$val;
     14        if($key=='ops') $ops=intval($val);
     15        if($key=='id_lista') $id_lista=intval($val);
    1616}
    1717
     
    1919
    2020include_once("header.php");
    21 $nometema=$tema;
     21#$nometema=$tema;
    2222#require_once("class/db/db.php"); //classe db
    2323global $tema,$id_comune,$descr_cons,$multicomune,$dbi,$prefix,$currentlang,$ops,$id_sez,$id_cons,$id_cons_gen;
     
    6666####################################
    6767
    68 global $op,$tema,$dbi,$nometema,$file,$bgcolor,$sitename,$prefix,$blocco,$lang,$siteistat,$id_cons_gen,$descr_cons,$minsez,$offsetsez,$multicomune,$id_comune,$multicomune,$rss,$colortheme,$descr_com;
     68global $op,$tema,$dbi,$file,$bgcolor,$sitename,$prefix,$blocco,$lang,$siteistat,$id_cons_gen,$descr_cons,$minsez,$offsetsez,$multicomune,$id_comune,$multicomune,$rss,$colortheme,$descr_com;
    6969global $id_cons,$do,$id_circ,$id_sede,$id_sez,$ops,$ov,$mv,$gv,$msv,$av,$votog,$genere,$aid,$bgcolor1,$language;
    7070
     
    152152if($genere==2 and $votog)
    153153        echo "<td bgcolor=\"$bgcolorg\" align=\"center\" $bordog onClick=\"vai_scelta('admin.php?id_comune=$id_comune&amp;id_cons_gen=$id_cons_gen&amp;ops=4');\"><p style=\"margin-left:10px;margin-right:10px;\"><b><font color=\"$tcolorg\">"._GRUPPO."</font></b></p></td>\n";
     154elseif($genere>=4 and !$votoc)
     155        echo "<td bgcolor=\"$bgcolorl\" align=\"center\"$bordol onClick=\"vai_scelta('admin.php?id_comune=$id_comune&amp;id_cons_gen=$id_cons_gen&amp;ops=3');\"><p style=\"margin-left:10px;margin-right:10px;\"><b><font color=\"$tcolorl\">"._LISTAPREF."</font></b></p></td>\n";
    154156elseif(($genere>2 or $votog)){ //if(($genere>2 or $tipo_cons==10 or $tipo_cons==11)){
    155157        echo "<td bgcolor=\"$bgcolorl\" align=\"center\"$bordol onClick=\"vai_scelta('admin.php?id_comune=$id_comune&amp;id_cons_gen=$id_cons_gen&amp;ops=3');\"><p style=\"margin-left:10px;margin-right:10px;\"><b><font color=\"$tcolorl\">"._LISTA."</font></b></p></td>\n";
Note: See TracChangeset for help on using the changeset viewer.