Somebody please help me! Here is the error I'm getting:
PHP Code:
Warning: ChDir: Not a directory (errno 20) in /home/velocd/public_html/chat/chat/lib/index.lib.php3 on line 91
Fatal error: Failed opening required './public_html/global.php' (include_path='.:/usr/local/lib/php') in /home/velocd/public_html/chat/chat/lib/index.lib.php3 on line 92
And here is the index.php3 file:
PHP Code:
//a VBB integration hack by Stasik (stasik@t-online.de)
//v0.1
//(C)2001
$exiturl = "http://www.diffusion4.com"; // the url the user will be redirected exiting the chat
if($Ver == ""){print "
<HTML>
<SCRIPT TYPE=\"text/javascript\" LANGUAGE=\"javascript\">
<!--
var NS4 = (document.layers) ? 1 : 0;
var IE4 = ((document.all) && (parseInt(navigator.appVersion)>=4)) ? 1 : 0;
var ver4 = (NS4 || IE4) ? \"H\" : \"L\";
function defineVerField()
{
if (document.images && ver4 == 'L')
document.forms['Params'].elements['Ver'].value = 'M'; // js1.1 enabled browser
else document.forms['Params'].elements['Ver'].value = ver4;
}
-->
</SCRIPT>
<FORM ACTION=\"index.php3\" METHOD=\"POST\" AUTOCOMPLETE=\"OFF\" NAME=\"Params\">
<INPUT TYPE=\"hidden\" NAME=\"Ver\" VALUE=\"L\">
</FORM>
<SCRIPT TYPE=\"text/javascript\" LANGUAGE=\"javascript\">
defineVerField();
document.forms.Params.submit();
</SCRIPT>
</HTML>
"; exit;}
chdir("/public_html");
require("./global.php");
chdir("/public_html/chat/chat");
if ($bbuserid == 0)
{
print "To Join the Chat you need to go the forums and Register on the board ;
The Register Button is on the top. If you are already registered then go the
board and login. Once this is complete select the chat button on the
main forum page in the forum. Thank You For Joining the Chat<br>
<a href=\"http://forums.realwebhost.net\">Back to the Forums</a>";
//Message if the user has no cookie
exit;
}
else
{
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;
} }
$U = $username;
$pat = "[[:space:]]";
$repl = "";
$U = ereg_replace($pat,$repl,$U);
$pat = "'";
$repl = "`";
$U = ereg_replace($pat,$repl,$U);
$pat = ',';
$U = ereg_replace($pat,$repl,$U);
stripslashes($U);
$N = 20;
$D = 10;
$Form_Send = 1;
//Replace admin with your administration nick
if($U != "id")
{
$PASSWORD="1";
}
..and what the hell is this? ---> :bunny: lol