Changeset 257 for trunk/admin/admin.php


Ignore:
Timestamp:
Feb 9, 2019, 8:45:24 PM (5 years ago)
Author:
roby
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/admin.php

    r255 r257  
    269269
    270270$aid=$_SESSION['aid'];
    271 #$dbi=$_SESSION['dbi'];
    272271$prefix=$_SESSION['prefix'];
    273272$pwd=$_SESSION['pwd'];
     
    276275
    277276$perms=0;
    278                         $sth = $dbi->prepare("select adminsuper, admincomune, adminop  from ".$prefix."_authors where aid='$aid' and pwd='$pwd' and (id_comune='$id_comune' or id_comune=0)");
    279                         $sth->execute();       
    280                         $row = $sth->fetch(PDO::FETCH_BOTH);   
     277$sql="select adminsuper, admincomune, adminop  from ".$prefix."_authors where aid='$aid' and pwd='$pwd' and (id_comune='$id_comune' or id_comune=0)";
     278$sth = $dbi->prepare("$sql");
     279$sth->execute();       
     280$row = $sth->fetch(PDO::FETCH_BOTH);   
    281281
    282282$adminsuper=$row[0];
Note: See TracChangeset for help on using the changeset viewer.