Changeset 369 for trunk/admin/admin.php
- Timestamp:
- May 23, 2022, 12:44:20 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/admin.php
r361 r369 279 279 else { 280 280 $oggi=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-3,date("Y"))); 281 $sql="select t1.id_cons_gen from ".$prefix."_ele_consultazione as t1, ".$prefix."_ele_cons_comune as t2 where t1.id_cons_gen=t2.id_cons_gen and t2.id_comune=$id_comune and t1.data_fine>'$oggi' and t2.id_cons in (select id_cons from ".$prefix."_ele_operatori where aid='$aid' and id_sez>0 and permessi>0) limit 0,1";281 $sql="select t1.id_cons_gen from ".$prefix."_ele_consultazione as t1, ".$prefix."_ele_cons_comune as t2 where t1.id_cons_gen=t2.id_cons_gen and t2.id_comune=$id_comune and t1.data_fine>'$oggi' and t2.id_cons in (select id_cons from ".$prefix."_ele_operatori where aid='$aid' and permessi>0) limit 0,1"; # TEST: and id_sez>0 282 282 $rese = $dbi->prepare("$sql"); 283 283 $rese->execute(); … … 455 455 #include("TEST tema: $tema--"); 456 456 #include("modules/Elezioni/language/lang-".$_SESSION['lang'].".php"); 457 457 458 if(isset($id_cons_gen) and isset($id_comune)){ 458 459 if(!isset($id_cons)){ … … 491 492 # 492 493 #die("TEST: qui $aid $id_cons $id_sez ".$_SESSION['aid']); 494 493 495 if (isset($_SESSION['aid']) AND $_SESSION['remote']==$_SERVER['REMOTE_ADDR']) { 494 496 if($tema=='Futura2' and $op!='logout')
Note:
See TracChangeset
for help on using the changeset viewer.