Seeing as I'm now using PHP4 (and it works, woohoo!), I've decided to try
and use it's session support. And, for a change it works. Down the bottom
of the page, I have:

 if($midgard->admin) {
    echo "<A HREF=\"/asgard/page/edit/$midgard->page\">Edit this page</A>";
 } else {
    $person = mgd_get_person( $user_id );
    echo "$person->firstname ($user_id) you are not recognised as an admin for this 
page";
 }

 But, when I'm logged in with the same username/password as I login to
asgard with it prints:

  John (2), you are not recognised as an admin for this page 

 So - how is that $midgard->admin bit set ?

Kate

-- 
 When I say 'free', I mean 'free': free from bond, of chain or command: 
to go where you will, even to Mordor, Saruman, if you desire. " 
    -- Gandalf, paraphrasing the choice between Free and Non-free software

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to