Jump to content

undefined variable?


Liquid Fire

Recommended Posts

ok here is the code in question

$_SITE_CONFIG["admin_password"] = "v4ndr34d";

function CheckAdminStatus($status)
{
if($status == $_SITE_CONFIG["admin_password"])
{
return true;
}
else
{
return false;
}
}

I am getting error:

Notice: Undefined variable: _SITE_CONFIG in C:\WebRoot\root\includes\functions.php on line 13

Why would i get this when it is clearly define in the beginning of the code.
Link to comment
https://forums.phpfreaks.com/topic/26742-undefined-variable/
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.