Jump to content

Undidefined method! HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


Far Cry

Recommended Posts

Fatal error: Call to undefined method Session::ismod() in /home/a1535619/public_html/main.php on line 38

   ."[<a href=\"userinfo.php?user=$session->username\">My Account</a>]   "
       ."[<a href=\"useredit.php\">Edit Account</a>]   ";
   if($session->isAdmin()){
      echo "[<a href=\"admin.php\">Admin Center</a>]   ";
   }
if($session->ismod()){
      echo "[<a href=\"mod.php\">Mod Center</a>]   ";
   }
   echo "[<a href=\"process.php\">Logout</a>]";
}
else{
?>

I got the error after I inserted : f($session->ismod()){

      echo "[<a href=\"mod.php\">Mod Center</a>]  "; 

 

Can someone help

 

Link to comment
https://forums.phpfreaks.com/topic/203911-undidefined-method-help/
Share on other sites

class Session
{
   var $username;     //Username given on sign-up
   var $userid;       //Random value generated on current login
   var $userlevel;    //The level to which the user pertains
   var $time;         //Time user was last active (page loaded)
   var $logged_in;    //True if user is logged in, false otherwise
   var $userinfo = array();  //The array holding all user info
   var $url;          //The page url current being viewed
   var $referrer;     //Last recorded site page viewed

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.