PDA

View Full Version : Grant access only for u=1 ??


masterross
06-11-2007, 01:50 PM
hi there,

I want to Grant access only for u=1 to some custom ACP php files.

i know should be used something like:

// ######################## CHECK ADMIN PERMISSIONS #######################
if (!can_administer('some_variable'))
{
print_cp_no_permission();
}
but what exactly?

thx!

Dismounted
06-12-2007, 09:40 AM
// ######################## CHECK ADMIN PERMISSIONS #######################
if ($vbulletin->userinfo['userid'] != 1)
{
print_no_permission();
}