Login

Member stats
Location
ForumN-13 News • N-13 News 3.3

Post a reply!
< 1 2 3 4 5 6 7 8 9
Access: Member
Total posts: 6

Status: Offline
N-13 News 3.3 Quote 
i think i'll have to give that a go then, your script is by far the best one so far for what i need. previously i have tried phpns which works well, but doesn't let you sort the articles by date and the admin panel is overly complicated.

if i need to continue my search, is there a specific name or term for cms systems which are used by 'embedding' articles into existing pages by copying in php code?

thanks alot for your swift help! :)
09:13pm 30th Jan 2010 
Access: Admin
Total posts: 780

Status: Offline
N-13 News 3.3 Quote 
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 
< 1 2 3 4 5 6 7 8 9
Post a reply!