require_once "../ipbsdk_class.inc.php";
$SDK =& new IPBSDK();
global $SDK;
if ($SDK->is_loggedin()) {
// Get Info
$memberinfo = $SDK->get_advinfo();
// Alter Group Numbers To Which Groups You Want To Allow To See The Page
if ($SDK->is_ingroup(array("4" , "12" , "6")))
{
// Add PHP code To Display to Promoters
include ('mainindex.php');
}
else
{
// Show Not Allowed Page
include('denied.html'); }
}
?>
why if im logged in will the mainindex display but when im not a blank page appears when denied.html should be called in?
__________________
N00b Coder! One of those guys who collects bits of code and puts them together and carnt really code for himself
if ($SDK->is_loggedin()) {
// Get Info
$memberinfo = $SDK->get_advinfo();
// Alter Group Numbers To Which Groups You Want To Allow To See The Page
if ($SDK->is_ingroup(array("4" , "12" , "6")))
{
// Add PHP code To Display to Promoters
include ('mainindex.php');
}
}
else
{
// Show Not Allowed Page
include('denied.html'); }
}
denied.html was only included if you're logged in, and if you are in a specific usergroup.
can you just point out where i was going wrong please?
im finiding it hard to spot
also thank you very much it has worked the last } wasnt required.
thank you!
__________________
N00b Coder! One of those guys who collects bits of code and puts them together and carnt really code for himself