Quote
engelavdod wrote:
iGuest
iMember
iAdmin
iSuperAdmin
Quote
mauri1 wrote:
I'm sorry for being out so long time, I'm back. I checked carefully my page prod.php and it looks like working now?!...
What I did:
- changed require_once ".../maincore.php"; to require_once "maincore.php"; , it looks now this way:
<?php
require_once "maincore.php";
if (!checkgroup(1)) { redirect(BASEDIR."index.php"); } ?>
<!DOCTYPE HTML PUBLIC "-//W...... etc.
- copied maincore.php to prod folder. So far it's OK.
require_once "maincore.php";
require_once "../maincore.php";
require_once "../../maincore.php";
<?php
require_once "../maincore.php";
if (!checkgroup(4)) { redirect(BASEDIR."index.php"); } ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
require_once "maincore.php";
Quote
slaughter wrote:
But you also can give only some members access:
Put these members in a group an give only the group access to this page with check:
if (!checkgroup(4)) { redirect(BASEDIR."index.php"); }
There 4 is the id of the group
if(iMember) {
echo "you are a member";
} else {
echo "you are not logged in";
}
Category Forum
Official Core Support - 6Labels
None yet
Statistics
0 participants
Notifications
You are not receiving notifications from this thread.
Related Questions