OK i found out what the problem is. Somewhere in my code i have not linked to the full URL. Because it is in a seprate dirctionary it should have a full URL link. But the problem is i do not see where i am missing this. Here is the code.
- Code: Select all
<?php
require_once('http://support.jbwebsitesolutions.com/FlashChat/inc/common.php');
$id = 'flashchat';
$params = array();
$open = false;
if($GLOBALS['fc_config']['liveSupportMode']) {
$stmt = new Statement("SELECT * FROM {$GLOBALS['fc_config']['db']['pref']}connections WHERE userid IS NOT NULL");
if($rs = $stmt->process()) {
while($rec = $rs->next()) {
if(ChatServer::userInRole($rec['userid'], ROLE_ADMIN)) {
$open = true;
break;
}
}
}
}
?>
<?php if($open) { ?>onLoad="setFocus()" onUnload="doLogout()"<?php } ?>>
<?php if($open) { ?>
<center>
<a href="http://support.jbwebsitesolutions.com/FlashChat/flashchat.php" target="_blank">
<img src="http://www.jbwebsitesolutions.com/Pictures/livechaton.gif" border="0" alt="Live Support Online"></a><br>
<br>
<font color="#000000" size="3pt">
<b>Live Support is Online!!</b><br> Please chat with the Support Department via the above picture.
</font>
</center>
<?php } else { ?>
<center>
<a href="http://www.jbwebsitesolutions.com/htmlindex/Browser/True-Code/Contact/Support.html" target="_blank">
<img src="http://www.jbwebsitesolutions.com/Pictures/livechatoff.gif" border="0" alt="Live Support Offline"></a><br>
<br>
<font color="#000000" size="3pt">
Sorry, <b>Live Support is unavailable!!</b><br> Please email our Support Department via the above picture.
</font>
</center>
<?php } ?>
What do you guys think? What have i missed?