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;
}
}
public function getaccess($section){
if($_SESSION['userlogged20'] == "true"){
return true;
}else{
return false;
}
}