Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

PHP Show If Authorized Problem

Posted 01 Mar 2002 15:56:18
1
has voted
01 Mar 2002 15:56:18 Wil Dobson posted:
I am trying to use the User Authentication Xtras for PHP and I keep getting an error:
Warning: Empty delimiter in /home/operations/test/index.php on line 346


The code inserted is this:

<?php
# Show if Authorised
$tg_AuthorisedUsers=" 07";
if (strpos($tg_AuthorisedUsers, $HTTP_SESSION_VARS['KT_UserAuthorization'])) {
?>
You are authorized to access this page.
<?php
}
/* Show if Authorised
if (strpos($tg_AuthorisedUsers, $HTTP_SESSION_VARS['KT_UserAuthorization'])) { */
?>

Now, I get this same error on each page that I try to use this extension on. I thought that perhaps the KT_UserAuthorized session wasn't being transferred to the other pages, so I tried it on my login page where KT_UserAuthorizaand i get the same error.

The offending line 346 is this one:
if (strpos($tg_AuthorisedUsers, $HTTP_SESSION_VARS['KT_UserAuthorization'])) { */


Perhaps someone knows how to write an if statement based on a Recordset?
The recordset is called 'rsWhoAmI' and the field would be 'accesslevel'

I think that would do the trick if this extension doesn't work.

Thanks in advance.


Reply to this topic