|
Access: Admin
Total posts: 780
Status: Offline
| |
|
N-13 News 3.3
|
|
I was just thinking, a much easier way to always show the menu would be to edit the mysqliclass.php file and change this
Code:
public function getaccess($section){ if($_SESSION['userlogged20'] == "true"){ global $newsusers, $newsaccess; $allowed = self::fetch("SELECT $newsaccess.$section AS allowed FROM $newsaccess INNER JOIN $newsusers ON $newsaccess.uid = $newsusers.access WHERE $newsusers.user = ?", $_SESSION['name']); if($allowed['0']['allowed'] == "1"){ return true; }else{ return false; } }else{ return false; } }
to this
Code:
public function getaccess($section){ if($_SESSION['userlogged20'] == "true"){ return true; }else{ return false; } }
|
| 09:30pm 30th Jan 2010 | |