Quote:
Originally Posted by Alfa1
Could you put this in the modCP?
|
You could easily modify the hack to do this. All you need to do is the following:
1) Within the AdminCP settings
for this hack, change the path for your AdminCP directory to the path to your ModCP directory. In other words, the setting for your Admincp dir will actually be path to your Modcp dir.
2) Within script ezbounce.php find:
PHP Code:
if (!can_administer('canadminsettings'))
{
print_cp_no_permission();
}
and replace with:
PHP Code:
if (!is_member_of($bbuserinfo, 5,6,7))
{
print_cp_no_permission();
}
Make sure that 5,6,7 are the usergroups which you want to be able to access the script. The default mod, supermod and admin usergroups are 5,6,7 if yours have changed, update respectively. Then instead of placing the ezbounce script within your adminCP, place it within your Modcp.
I haven't tested this, but it should work for you.