Changeset 359 for trunk/admin/admin.php
- Timestamp:
- Feb 25, 2022, 9:32:36 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/admin.php
r358 r359 17 17 #$LIMITE=3; //fascia di separazione del maggioritario (15.000 abitanti) 18 18 # tempo di sessione: ini_set('session.gc_maxlifetime','3600'); 19 global $multicomune,$msglogout ;19 global $multicomune,$msglogout,$language; 20 20 21 21 // Adattamento variabili superglobal … … 307 307 $admincomune=$row[1]; 308 308 $adminop=$row[2]; 309 309 310 310 #if (($adminsuper==1 || $admincomune==1 || $adminop==1)) { 311 311 if ($adminsuper==1) 312 312 return 256; 313 elseif ($admincomune==1) {313 elseif ($admincomune==1) 314 314 return 64; 315 315 # $sth = $dbi->prepare("select permessi from ".$prefix."_ele_operatori where id_cons='0' and aid='$aid' and id_comune='$id_comune'"); 316 }else{ 317 318 319 320 321 322 }316 317 $sth = $dbi->prepare("select id_cons from ".$prefix."_ele_cons_comune where id_comune='$id_comune' and id_cons_gen='$id_cons_gen'"); 318 $sth->execute(); 319 $row = $sth->fetch(PDO::FETCH_BOTH); 320 $id_cons=$row[0]; 321 $sth = $dbi->prepare("select permessi from ".$prefix."_ele_operatori where id_cons='$id_cons' and aid='$aid' and id_comune='$id_comune'"); 322 323 323 $sth->execute(); 324 324 $row = $sth->fetch(PDO::FETCH_BOTH); … … 405 405 */ 406 406 global $siteistat,$perms,$msglogout; 407 407 $language=$_SESSION['lang']; 408 408 $ref="Location: admin.php?"; 409 409 #$ref="Location: https://www.eleonline.it/adminmob/admin.php?"; … … 415 415 416 416 if (isset($_SESSION['lang'])) 417 $ref=$ref."&language= ".$_SESSION['lang'];417 $ref=$ref."&language=$language"; 418 418 $ref.="&msglogout=$msglogout"; 419 419 $_SESSION=array(); … … 444 444 } 445 445 } 446 447 446 448 #echo "op:".$param['op']." -- aid:".$_SESSION['aid']."remote:".$_SESSION['remote']."REMOTE:".$_SERVER['REMOTE_ADDR']; 447 449 if (isset($param['op'])) $op=addslashes($param['op']); else $op='ele'; … … 451 453 if($tema=='Futura2' and $op!='logout') 452 454 { 453 include("temi/$tema/index.php"); 454 testata(); 455 include("temi/$tema/index.php"); 455 456 }else 456 457 switch($op) {
Note:
See TracChangeset
for help on using the changeset viewer.