|
Posted by Paul Watt on 11/18/05 16:35
Hi,
I've customised a PHPmyChat instalation According to the instructions but i
get an error message : $Is_Error = (isset($Error));
The url is:
http://depressionlink.co.uk/chat/phpMyChat.php3
and heres the code:
<?php
// This is an example of what may be done to include phpMyChat into an
// existing web page, regardless of its name.
// You can also include such a file in a frameset.
// Lines below must be at the top of your file because 'index.lib.php3'
// sets headers and cookies.
$ChatPath = "chat/"; // relative path to chat dir, empty value if this
// file is in the same dir than the chat;
require("./${ChatPath}lib/index.lib.php3");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<HTML dir="<?php echo(($Charset == "windows-1256") ? "RTL" : "LTR"); ?>">
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Depression link - Forum</title>
<link href="../depression.css" rel="stylesheet" type="text/css">
<?php
// You can put html head statements right after the "<HEAD>" tag.
// Both values are boolean. See explanations in 'index.lib.php3' file.
send_headers(1,1);
?>
</HEAD>
<BODY>
<table cellspacing="5" cellpadding="0" width="100%" border="0">
<tbody>
<tr>
<td colspan="2">
<img class="topleft" height="102" alt="Depression Link"
src="../img/logo.jpg" width="274" /><img src="../img/topright.jpg" alt=""
width="187" height="102" class="topright" /></td>
</tr>
<tr>
<td class="navarea" width="151" valign="top">
<ul id="mainnav">
<li>
<a href="index.htm">home</a>
</li>
<li>
<a href="forum.htm">Forum</a>
</li>
<li>
<a href="chat.htm">Chat room</a>
</li>
<li>
<a href="#">Your contributions</a>
</li>
</ul>
<img height="200" alt="" src="img\spacer.gif" width="1"
/>
</td>
<td class="mainarea" valign="top" width="100%">
$Is_Error = (isset($Error));
<?php
// If nothing other than phpMyChat is loaded in this page, or if you want
// to have the same background color as phpMyChat for the whole page,
// you have to modify the BODY tag to '<BODY CLASS="ChatBody">'
// You can put html statements right after the "<BODY>" tag or add
// php code here.
if (isset($HTTP_COOKIE_VARS))
{
if (isset($HTTP_COOKIE_VARS["CookieUsername"])) $CookieUsername =
$HTTP_COOKIE_VARS["CookieUsername"];
if (isset($HTTP_COOKIE_VARS["CookieRoom"])) $CookieRoom =
$HTTP_COOKIE_VARS["CookieRoom"];
if (isset($HTTP_COOKIE_VARS["CookieRoomType"])) $CookieRoomType =
$HTTP_COOKIE_VARS["CookieRoomType"];
};
$Username = (isset($CookieUsername) ? $CookieUsername : "");
$Room_name = (isset($CookieRoom) ? $CookieRoom : "");
$Room_type = (isset($CookieRoomType) ? $CookieRoomType : "");
layout($Is_Error,$Username,$Room_name,$Room_type);
// You can add php code here, or add html statements before the "</BODY>"
tag.
?>
</td>
</tr>
<tr>
<td class="footer" colspan="2">
<span class="copy">©Paul Watt Designs (07766)
335848</span> <a
href="mailto:paul@paulwatt.info">paul@paulwatt.info</a></td>
</tr>
</tbody>
</table>
$Is_Error = (isset($Error));
if (isset($HTTP_COOKIE_VARS))
{
if (isset($HTTP_COOKIE_VARS["CookieUsername"])) $CookieUsername =
$HTTP_COOKIE_VARS["CookieUsername"];
if (isset($HTTP_COOKIE_VARS["CookieRoom"])) $CookieRoom =
$HTTP_COOKIE_VARS["CookieRoom"];
if (isset($HTTP_COOKIE_VARS["CookieRoomType"])) $CookieRoomType =
$HTTP_COOKIE_VARS["CookieRoomType"];
};
$Username = (isset($CookieUsername) ? $CookieUsername : "");
$Room_name = (isset($CookieRoom) ? $CookieRoom : "");
$Room_type = (isset($CookieRoomType) ? $CookieRoomType : "");
layout($Is_Error,$Username,$Room_name,$Room_type);
// You can add php code here, or add html statements before the "</BODY>"
tag.
?>
</BODY>
</HTML>
<?php
// The following line is required
$DbLink->close();
?>
Please help, I know nothing about PHP!
Cheers
Paul
[Back to original message]
|