|
felgall,
Can you tell me if my translation of this is correct?
<?PHP
require_once("./include/membersite_config.php");
if(!$fgmembersite->CheckLogin())
{
$fgmembersite->RedirectToURL("login.php");
exit;
}
?>
Okay, so this requires the membersite_config.php file and if it cannot be found it crashes.
Then if it is found calls the CheckLogin method which is probably found in the required file.
If it is true it call the RedirectToURL method which then goes to the "login.php" page.
Is that correct?
If so does that mean the CheckLogin method has False alternative? For instance, let's say the CheckLogin method determines if a user is logged in. The RedirectToURL method is only called if they are NOT am I right?
Thanks a lot for the previous answer BTW.
|