Changeset 397 for trunk/admin
- Timestamp:
- Sep 29, 2023, 3:28:03 PM (14 months ago)
- Location:
- trunk/admin
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/admin.php
r381 r397 531 531 if(isset($id_cons)) { 532 532 $sql="SELECT id_sez FROM ".$prefix."_ele_operatori where id_sez>0 and aid='$aid' and id_comune=$id_comune"; 533 $resmod = $dbi->prepare("$sql"); 534 $resmod->execute(); 533 try { 534 $resmod = $dbi->prepare("$sql"); 535 $resmod->execute(); 536 }catch(PDOException $e) 537 { 538 # echo "Viene eseguito un aggiornamento forzato del db<br>"; 539 $_SESSION['forzadb']=1; 540 include("modules/Elezioni/aggiornamento.php"); 541 542 die(); 543 } 535 544 list($id_sez) = $resmod->fetch(PDO::FETCH_NUM); #die("qui:$id_sez:$sql"); 536 545 if($id_sez) { -
trunk/admin/modules/Elezioni/aggiornamento.php
r392 r397 19 19 $id_comune=$_SESSION['id_comune']; 20 20 $param=strtolower($_SERVER['REQUEST_METHOD']) == 'get' ? $_GET : $_POST; 21 $id_cons_gen=intval($param['id_cons_gen']); 21 if(isset($param['id_cons_gen'])) $id_cons_gen=intval($param['id_cons_gen']); else $id_cons_gen=0; 22 22 $perms=ChiSei(0); 23 23 include("modules/Elezioni/ele.php"); … … 52 52 #$newrev=$_SESSION['remoterev']; 53 53 $myrev=$_SESSION['localrev']; 54 if (isset($_SESSION['forzadb'])) $myrev=378; 54 55 if($newrev==$myrev) { 55 56 $errmex="Non sono disponibili nuovi aggiornamenti"; … … 112 113 if(!$procedi){ 113 114 ele(); 114 echo "<hr><br><h2 style=\"text-align:center;\">Revisione installata: $myrev<br>Revisione disponibile: $newrev</h2><br><hr>"; 115 if (isset($_SESSION['forzadb'])) 116 echo "<hr><br><h2 style=\"text-align:center;\">E' necessario riallineare il DB, confermare l'aggiornamento."; 117 else 118 echo "<hr><br><h2 style=\"text-align:center;\">Revisione installata: $myrev"; 119 echo "<br>Revisione disponibile: $newrev</h2><br><hr>"; 120 121 unset($_SESSION['forzadb']); 122 115 123 ##### 116 124 -
trunk/admin/modules/Elezioni/ele.php
r380 r397 67 67 68 68 global $espandi, $aid, $bgcolor1, $bgcolor2,$bgcolor5, $prefix, $dbi, $offset, $min,$descr_cons, $id_cons_gen,$tipo_cons,$genere,$op,$id_comune,$perms,$id_cons,$votog,$votol,$votoc,$votocirc,$tema,$fascia,$limite; 69 69 70 70 include ("header.php"); 71 71 # include("modules/Elezioni/testa.php"); … … 301 301 302 302 } 303 303 if(!isset($op)) $op=''; 304 304 switch ($op){ 305 305 case "ele": -
trunk/admin/modules/Elezioni/ele_colora_sez.php
r394 r397 20 20 $res->execute(); 21 21 }else{ #candidati 22 $sql="SELECT t1.num_cand FROM ".$prefix."_ele_voti_candidati as t1 left join ".$prefix."_ele_candidati as t2 on t1.id_cand=t2.id_cand where t1.id_cons='$id_cons' and t1.id_sez='$id_sez' group by t2.id_lista";22 $sql="SELECT t1.num_cand FROM ".$prefix."_ele_voti_candidati as t1 left join ".$prefix."_ele_candidati as t2 on t1.id_cand=t2.id_cand where t1.id_cons='$id_cons' and t1.id_sez='$id_sez'"; 23 23 $res = $dbi->prepare("$sql"); 24 24 $res->execute(); -
trunk/admin/versione.php
r396 r397 1 1 <?php 2 2 3 $versione = "3.0 rev 39 6";3 $versione = "3.0 rev 397"; 4 4 $version_number = $versione; 5 $datarel = " 10 giugno2023";5 $datarel = "29 settembre 2023"; 6 6 $version = "Eleonline $version_number (<i>Data Release: $datarel</i>)"; 7 7
Note:
See TracChangeset
for help on using the changeset viewer.