Kilandor |
|
---|---|
First thing to note, you don't have to use sed_auth in a standalone plugin as it is already loaded for you.
switch($s)
{
case 'edit':
sed_block($usr['isadmin']); //Blocks anyone who isn't an admin - if value is false it blocks them
/* your code */
break;
} |