1
bimmer528
User Page auth for custom page
  • 2006/2/9 3:34

  • bimmer528

  • Just popping in

  • Posts: 19

  • Since: 2002/9/19


Hey guys, Im aware I could make an easy module and set permission's to bypass my question here but forced to use custom pages instead because there are differant groups that can access differant pages so a module couldn't specify each group for each page.

What I am trying to do on these custom pages is secure the page using XOOPS groups code.

I have failed to create something I could use after extensive XOOPS searching so if anyone can lend a hand, my thanks to you.

including mainfile header


$g_id 
$xoopsUser->getVar('uid'); 
$thisgroup =& $member_handler->getGroup($g_id); 

$groupName $thisgroup->getVar("name""E"); 


if (
$groupName == "Webmasters" ) {
} elseif  (
$groupName == "AdminType1" ) {
} elseif (
$groupName == "AdminType2" ) {
} else {
echo 
"

"

redirect_header("../index.php",2,"You don't have permission---->Taking You Back");
exit();
}

Body Content

include footer


if statement works with group webmasters but the other groups get member func non object.

Admintype1 and 2 are custom made groups.

2
bimmer528
Re: User Page auth for custom page
  • 2006/2/9 9:10

  • bimmer528

  • Just popping in

  • Posts: 19

  • Since: 2002/9/19


bump :/

Login

Who's Online

336 user(s) are online (247 user(s) are browsing Support Forums)


Members: 0


Guests: 336


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits