Jump to content

[SOLVED] include


unidox

Recommended Posts

I have this include:

<? include("" . $site_url . "incs/files.inc.php?p=admin_users"); ?>

 

and this is admin_users:

case "admin_users":
if(($_SESSION['admin'] == 1) && ($_SESSION['level'] <= $level['users'])) {
?>
Admin Users.
<?
} else {
// Login Failed
echo "You dont have access";
}
break;

 

with the include, it doesnt read the session, and it says I dont have access, but if I go to the page like http://site.com/?p=admin_users it works fine. Whats wrong

Link to comment
https://forums.phpfreaks.com/topic/75142-solved-include/
Share on other sites

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.