Finally got it almost working.
But there is one error on the page
error : admin_execute(modules/User-Group_Admin/admin.php,User-Group_Admin_admin_main)
This is what I have above my code
Code
if (!eregi('admin.php', $PHP_SELF))
{
die('Access Denied');
}
if (file_exists("modules/$ModName/pnlang/$currentlang/lang.php"))
{
include "modules/$ModName/pnlang/$currentlang/lang.php";
} else {
include "modules/$ModName/pnlang/eng/lang.php";
}
$ModName = $module;
if (!(pnSecAuthAction(0, 'User-Group_Admin::', '::', ACCESS_ADMIN)))
{
$output->Text(_USERGROUPSNOAUTH);
return $output->GetOutput();
}
//header
include("header.php");
OpenTable();
$modinfo = pnModGetInfo(pnModGetIDFromName(pnModGetName()));
include_once ("modules/".$modinfo['directory']."/config.php");
// found this in the user.php in the root, says new way, but no difference that i see
if (pnUserLoggedIn() and (!isset($op) or ($op == 'adminMain'))) {
$module = 'User-Group_Admin';
$op = 'main';
}
{
die('Access Denied');
}
if (file_exists("modules/$ModName/pnlang/$currentlang/lang.php"))
{
include "modules/$ModName/pnlang/$currentlang/lang.php";
} else {
include "modules/$ModName/pnlang/eng/lang.php";
}
$ModName = $module;
if (!(pnSecAuthAction(0, 'User-Group_Admin::', '::', ACCESS_ADMIN)))
{
$output->Text(_USERGROUPSNOAUTH);
return $output->GetOutput();
}
//header
include("header.php");
OpenTable();
$modinfo = pnModGetInfo(pnModGetIDFromName(pnModGetName()));
include_once ("modules/".$modinfo['directory']."/config.php");
// found this in the user.php in the root, says new way, but no difference that i see
if (pnUserLoggedIn() and (!isset($op) or ($op == 'adminMain'))) {
$module = 'User-Group_Admin';
$op = 'main';
}
Not sure if any of that is causing the problem.
Any help is appreciated.
Thanks.
