Changeset 257 for trunk/admin/admin.php
- Timestamp:
- Feb 9, 2019, 8:45:24 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/admin.php
r255 r257 269 269 270 270 $aid=$_SESSION['aid']; 271 #$dbi=$_SESSION['dbi'];272 271 $prefix=$_SESSION['prefix']; 273 272 $pwd=$_SESSION['pwd']; … … 276 275 277 276 $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); 281 281 282 282 $adminsuper=$row[0];
Note:
See TracChangeset
for help on using the changeset viewer.