![]() |
#3
|
||||
|
||||
![]()
Does all this need done in the login.php file or index.php file? I'm so confused lol. The visitor group I think is the guest group and it's all number 6.
Edit: Oh my gosh!!! I got it! I had it in the wrong file! This is what I used: $group = $mysidia->db->select("users", array("usergroup"), "gid ='{$mysidia->user->gid}'")->fetchColumn(); switch($group){ case 1; //admin $document->add(new Comment("<meta http-equiv='refresh' content='0; URL=http://www.dinotracks.mysidiahost.com/account' />")); case 2; //deluxe $document->add(new Comment("<meta http-equiv='refresh' content='0; URL=http://www.dinotracks.mysidiahost.com/account' />")); break; case 3; //member $document->add(new Comment("<meta http-equiv='refresh' content='0; URL=http://www.dinotracks.mysidiahost.com/account' />")); break; case 4; //beta tester $document->add(new Comment("<meta http-equiv='refresh' content='0; URL=http://www.dinotracks.mysidiahost.com/account' />")); break; case 5; //moderator $document->add(new Comment("<meta http-equiv='refresh' content='0; URL=http://www.dinotracks.mysidiahost.com/account' />")); break; case 6; //visitor break; }
__________________
"You try you fail, you try you fail, but the only true failure is if you stop trying. So try again." - Haunted Mansion Last edited by Micolai; 04-10-2021 at 12:03 PM. |
|
|
What's New? |
What's Hot? |
What's Popular? |