Hi Guys,
I would very much appreciate it if someone could help me with a problem I am currently having when I try to use the VB registration system for other pages on my site.
I am using this code on .php pages:
<?php
chdir("/usr/local/etc/httpd/htdocs/forums");
require("/usr/local/etc/httpd/htdocs/forums/global.php");
if ($bbuserid == 0)
{
eval("echo standarderror(\$bbtitle,\"".gettemplate("error_nop ermission")."\");");
exit;
}
if ($bbusername == "" || (isset($bbusername))==0)
{
$getusername=$DB_site->query_first("SELECT username FROM user WHERE userid=$bbuserid");
$username=$getusername[username];
$bbusername = $username;
}
else
{
$username = $bbusername;
}
?>
The code appears to work bar the fact that I get a message as follows:
Fatal error: Failed opening required 'admin/config.php' (include_path='') in /usr/local/etc/httpd/htdocs/forums/global.php on line 33
I don't understand why it is unable to access the config file in the directory.
The fundamental problem is that I really know nothing about php.
If someone could give some pointers that would be greatly appreciated. I have read previous threads here but had no joy. The code above comes from another VB user and it works on his site.
TIA
Tim.
|