Thank you very much - I think this is the code I need.
Although I inserted your PHP-code users can access the file without loggin in . What am I doing wrong ?
This is the script I am currently using :
<?php
error_reporting(7);
require("./global.php");
if ($bbuserinfo[userid] == 0)
{ show_nopermission();}
?>
.. and here comes the html - code which has to be hidden for unregistered users.
|