https://www.icyphoenix.com/viewtopic.php?f=4&t=2528&p=18070#p18070
-----------------------------------
novice programmer
Fri 27 Jul, 2007 21:47

Re: Adding New Kind Of Users For Preventing Not Auth Acces
-----------------------------------
for allow only the first user entry (easymod style):

[code linenumbers=false]

---------[SEARCH]-------------------------------

require($phpbb_root_path . 'extension.inc');
require('./pagestart.' . $phpEx);
include_once($phpbb_root_path . 'includes/functions_selects.' . $phpEx);

--------[AFTER, ADD]---------------------------

if ( $userdata['user_id'] != 2)
redirect('/errors.'.$phpEx.'?code=401');

[/code]

That´s all.


