Changeset 371 for trunk/admin
- Timestamp:
- Sep 3, 2022, 10:40:36 AM (2 years ago)
- Location:
- trunk/admin
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/aggiornadb.php
r364 r371 102 102 if(controllo($prefix.'_authors','admincomune',++$num)) 103 103 { 104 $sql="update `".$prefix."_authors` set admincomune='1' where aid='admin'"; 105 $ret=aggiorna($sql,$dbi,'',$num); 106 $sql="update `".$prefix."_authors` set admincomune='0' where aid!='admin'"; 104 $sql="UPDATE `soraldo_authors` SET `adminop` = '1', `adminsuper` = '0',`admincomune` = '0' WHERE `soraldo_authors`.`aid` != 'admin' AND `soraldo_authors`.`aid` != 'suser'"; 105 $ret=aggiorna($sql,$dbi,'',$num); 106 $sql="UPDATE `soraldo_authors` SET `adminop` = '0', `adminsuper` = '1',`admincomune` = '0' WHERE `soraldo_authors`.`aid` = 'suser'"; 107 $ret=aggiorna($sql,$dbi,'',$num); 108 $sql="UPDATE `soraldo_authors` SET `adminop` = '0', `adminsuper` = '0',`admincomune` = '1' WHERE `soraldo_authors`.`aid` = 'admin'"; 107 109 $ret=aggiorna($sql,$dbi,'',$num); 108 110 echo "<br> La tabella dei permessi Ú stata aggiornata<br>"; … … 128 130 echo "<br>"; 129 131 } 132 ++$num; 133 $sql="ALTER TABLE `soraldo_ele_come` CHANGE `title` `title` VARCHAR(150) NOT NULL DEFAULT ' ', CHANGE `preamble` `preamble` TEXT NOT NULL DEFAULT ' ', CHANGE `content` `content` TEXT NOT NULL DEFAULT ' ', CHANGE `editimage` `editimage` VARCHAR(100) NOT NULL DEFAULT ' '"; 134 $ret=aggiorna($sql,$dbi,'',$num); 135 echo "<br>"; 136 ++$num; 137 $sql="ALTER TABLE `soraldo_ele_link` CHANGE `title` `title` VARCHAR(150) NOT NULL DEFAULT ' ', CHANGE `preamble` `preamble` TEXT NOT NULL DEFAULT ' ', CHANGE `content` `content` TEXT NOT NULL DEFAULT ' ', CHANGE `editimage` `editimage` VARCHAR(100) NOT NULL DEFAULT ' '"; 138 $ret=aggiorna($sql,$dbi,'',$num); 139 echo "<br>"; 140 ++$num; 141 $sql="ALTER TABLE `soraldo_ele_servizi` CHANGE `title` `title` VARCHAR(150) NOT NULL DEFAULT ' ', CHANGE `preamble` `preamble` TEXT NOT NULL DEFAULT ' ', CHANGE `content` `content` TEXT NOT NULL DEFAULT ' ', CHANGE `editimage` `editimage` VARCHAR(100) NOT NULL DEFAULT ' '"; 142 $ret=aggiorna($sql,$dbi,'',$num); 143 echo "<br>"; 130 144 131 145 if(controllo($prefix.'_ele_rilaff','data',++$num)) -
trunk/admin/modules/Elezioni/ele_controlli.php
r365 r371 383 383 $totsl+=$svl; 384 384 $tnl+=$nl; 385 if(($votig+$svl)<($votil+$svg+$nl) and $disg)385 if(($votig+$svl)<($votil+$svg+$nl) and ($solog or $disg)) 386 386 { $err=1; $tipo='lista'; break; } 387 387 } -
trunk/admin/modules/Elezioni/ele_sede.php
r344 r371 45 45 if (isset($param['filemappa'])) $filemappa=addslashes($param['filemappa']); else $filemappa=''; 46 46 if (isset($param['mappa'])) $mappa=addslashes($param['mappa']); else $mappa=''; 47 if (isset($param['delmap'])) $delmap=addslashes($param['delmap']); 47 48 48 49 … … 59 60 60 61 function all() { 61 global $bgcolor1, $bgcolor2, $prefix, $dbi, $offset, $min,$id_cons,$id_cons_gen,$do,$id_sede,$id_circ ;62 global $bgcolor1, $bgcolor2, $prefix, $dbi, $offset, $min,$id_cons,$id_cons_gen,$do,$id_sede,$id_circ,$delmap; 62 63 63 64 echo "<center><font class=\"title\"><br><b>"._SEDE."</b></font><br><br>"; … … 68 69 ."<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._CIRCO."</b></td>" 69 70 ."<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._INDIRIZZO."</b></td>" 70 ."<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._MAPPA."</b></td>" 71 ."<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._TEL."</b></td>" 71 ."<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._MAPPA."</b>"; 72 if ($do=='modify') 73 echo "<br><input type=\"checkbox\" name=\"delmap\" value=\"false\"> "._DELETE; 74 echo "</td>"; 75 echo "<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._TEL."</b></td>" 72 76 ."<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._FAX."</b></td>" 73 77 ."<td bgcolor=\"$bgcolor1\" align=\"center\"> <b>"._RESP."</b> </td>" … … 184 188 185 189 function sede($ok, $do,$id_circ, $id_sede,$indir, $tel1, $tel2, $fax, $resp, $mappa, $filemappa, $id_sede2) { 186 global $admin, $bgcolor1, $bgcolor2, $prefix, $dbi, $descr_cons, $id_cons,$id_cons_gen,$id_comune ;190 global $admin, $bgcolor1, $bgcolor2, $prefix, $dbi, $descr_cons, $id_cons,$id_cons_gen,$id_comune,$delmap; 187 191 $perms=ChiSei(0); 188 192 … … 253 257 $mappanome=addslashes($nomemappa); 254 258 $cond=", mappa='$mappablob', filemappa='$mappanome'"; 255 } else {$cond='';} 256 259 } else { 260 if ( $delmap=='false') {$cond=", mappa='', filemappa=''";} 261 else $cond=''; 262 } 257 263 $sql="update ".$prefix."_ele_sede set id_circ='$id_circ',indirizzo='$indir' , telefono1='$tel1', telefono2='$tel2',fax='$fax',responsabile='$resp' $cond where id_sede='$id_sede2' "; 258 264 $res = $dbi->prepare("$sql"); -
trunk/admin/modules/Elezioni/ele_spoglio.php
r369 r371 164 164 ."<input type=\"hidden\" name=\"id_gruppo\" value=\"$id_gruppo\"/>"; 165 165 $riga[$y].= "</span>"; 166 if (chisei($id_cons_gen)>=64 and ($y==$numril and $voti_t!='')) { $riga[$y].= "<span class=\"td\" style=\"text-align: right;\" rowspan=\"1\" colspan=\"6\">"._DELETE." <input type=\"checkbox\" name=\"delete\" value=\"true\"/></span>";}166 if (chisei($id_cons_gen)>=64 and $y==$numril) { $riga[$y].= "<span class=\"td\" style=\"text-align: right;\" rowspan=\"1\" colspan=\"6\">"._DELETE." <input type=\"checkbox\" name=\"delete\" value=\"true\"/></span>";} 167 167 else $riga[$y].= "<span class=\"td\" style=\"text-align: right;\" rowspan=\"1\" colspan=\"6\"><input type=\"hidden\" name=\"delete\" value=\"\"/></span>"; 168 168 $riga[$y].= "<span class=\"td\" style=\"text-align: right;\" rowspan=\"1\" colspan=\"6\"><input type=\"submit\" name=\"update\" value=\""._OK."\"/></span>"; -
trunk/admin/versione.php
r370 r371 1 1 <?php 2 2 3 $versione = "3.0 rev 37 0";3 $versione = "3.0 rev 371"; 4 4 $version_number = $versione; 5 $datarel = "0 1 giugno2022";5 $datarel = "03 settembre 2022"; 6 6 $version = "Eleonline $version_number (<i>Data Release: $datarel</i>)"; 7 7
Note:
See TracChangeset
for help on using the changeset viewer.