<?php
/**
* mod_blastchatc.php
* @package BlastChat Client
* @copyright 2004-2006 Peter Saitz
* @license
<!--Creative Commons License--><a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/2.5/"><img alt="Creative Commons License" border="0" src="http://creativecommons.org/images/public/somerights20.png"/></a><br/>This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/2.5/">Creative Commons Attribution-NonCommercial-NoDerivs2.5 License</a>.<!--/Creative Commons License--><!-- <rdf:RDF xmlns="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
		<Work rdf:about="">
			<license rdf:resource="http://creativecommons.org/licenses/by-nc-nd/2.5/" />
	<dc:title>BlastChat Client</dc:title>
	<dc:date>2006</dc:date>
	<dc:description>This is a client allowing chat functinality using blastchat.com service.</dc:description>
	<dc:creator><Agent><dc:title>Peter Saitz</dc:title></Agent></dc:creator>
	<dc:rights><Agent><dc:title>Peter Saitz</dc:title></Agent></dc:rights>
	<dc:source rdf:resource="http://www.blastchat.com" />
		</Work>
		<License rdf:about="http://creativecommons.org/licenses/by-nc-nd/2.5/"><permits rdf:resource="http://web.resource.org/cc/Reproduction"/><permits rdf:resource="http://web.resource.org/cc/Distribution"/><requires rdf:resource="http://web.resource.org/cc/Notice"/><requires rdf:resource="http://web.resource.org/cc/Attribution"/><prohibits rdf:resource="http://web.resource.org/cc/CommercialUse"/></License></rdf:RDF> -->
* @version $Revision: 2.2 $
* @author Peter Saitz <support@blastchat.com>
* @HomePage <www.blastchat.com>
**/

/** ensure this file is being included by a parent file */
defined( '_VALID_MOS' ) or defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' );

global $mosConfig_absolute_path, $mosConfig_live_site;

if (!file_exists($mosConfig_absolute_path.'/components/com_blastchatc/dynamic.blastchatc.php')) {
	echo "Missing file ".$mosConfig_absolute_path."/components/com_blastchatc/dynamic.blastchatc.php";
	return;
}
include_once($mosConfig_absolute_path.'/components/com_blastchatc/dynamic.blastchatc.php');

?>
<script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/includes/js/overlib_mini.js"></script>
<?php

$bc_params = getBCparams($params);
$spar = getURLparams($bc_params);

$dynamic = $params->get( 'bc_module_dynamic' );

?>
	<script language="JavaScript" type="text/javascript" src="components/com_blastchatc/js/common.js"></script>
	<script languages="JavaScript" type="text/javascript">
	<!--
	var httpUpdater = getHTTPObject();
	var getURL = "<?php echo $mosConfig_live_site;?>/index2.php?option=com_blastchatc&no_html=1&bc_task=updatelist";
	var refreshtime = parseInt(<?php echo $dynamic;?>);
	var param = "<?php echo $spar;?>";
	if (refreshtime > 0)
		setTimeout("updateList()",refreshtime*1000);
	//-->
	</script>
<?php
$content = "<div id='bc_module'>\n";
$content .= getContent($bc_params);
$content .= "</div>\n";
?>