File: /var/www/ilya/data/www/irkboard.ru/cache/cacheid_2/skin_chatsigma.php
<?php
/*--------------------------------------------------*/
/* FILE GENERATED BY INVISION POWER BOARD 3 */
/* CACHE FILE: Skin set id: 2 */
/* CACHE FILE: Generated: Tue, 18 Aug 2009 18:02:00 GMT */
/* DO NOT EDIT DIRECTLY - THE CHANGES WILL NOT BE */
/* WRITTEN TO THE DATABASE AUTOMATICALLY */
/*--------------------------------------------------*/
class skin_chatsigma_2 {
/**
* Construct
*/
function __construct( ipsRegistry $registry )
{
/* Make object */
$this->registry = $registry;
$this->DB = $this->registry->DB();
$this->settings =& $this->registry->fetchSettings();
$this->request =& $this->registry->fetchRequest();
$this->lang = $this->registry->getClass('class_localization');
$this->member = $this->registry->member();
$this->memberData =& $this->registry->member()->fetchMemberData();
$this->cache = $this->registry->cache();
$this->caches =& $this->registry->cache()->fetchCaches();
}
/* -- chat_inline --*/
function chat_inline($server="",$acc_no="",$lang="",$w="",$h="",$user="",$pass="") {
$IPBHTML = "";
$IPBHTML .= "<script type=\"text/javascript\">
//<![CDATA[
<!-- // Hide JS from HTML Validator
// Added like this to allow those without JS to still function nicely.
var chat_display = \"{$this->settings['chat_display']}\";
var chat_pad = parseInt( \"{$this->settings['chat_poppad']}\" );
var chat_height = parseInt( \"{$this->settings['chat_height']}\" );
var chat_width = parseInt( \"{$this->settings['chat_width']}\" );
var popped = parseInt( \"{$this->request['pop']}\" );
var chat_tol;
var chat_tol_time = 60 * 1000; // 60 seconds
chat_pad = chat_pad ? chat_pad : 50;
chat_height += chat_pad;
chat_width += chat_pad;
if ( chat_display != 'self' && popped != 1 )
{
window.open( ipb_var_base_url + 'autocom=chatsigma&pop=1','Chat','width='+chat_width+',height='+chat_height+',resizable=yes,scrollbars=yes');
// Bounce back to board index
locationjump();
}
//]]>
//-->
</script>
<div class=\"borderwrap\">
<div class=\"maintitle\"><{CAT_IMG}> {$this->lang->words['chat_title']}</div>
<div class=\"tablepad\" align=\"center\">
<div style='border:8px outset #BCD0ED;width:{$w}px;' id=\"chatwrap\">
<applet codebase=\"http://{$server}/current/\" code=\"Client.class\" archive=\"scclient_$lang.zip\" width=\"$w\" height=\"$h\" MAYSCRIPT>
<param name=\"room\" value=\"$acc_no\">
<param name=\"cabbase\" value=\"scclient_$lang.cab\">
<param name=\"username\" value=\"$user\">
<param name=\"password\" value=\"$pass\">
<param name=\"autologin\" value=\"yes\">
</applet>
</div>
</div>
</div>
<br />
<div class=\"borderwrap\">
<div class=\"maintitle\"><{CAT_IMG}> {$this->lang->words['chat_help']}</div>
<div class=\"tablepad\">
{$this->lang->words['chat_help_text']}
</div>
</div>
<script type=\"text/javascript\">
//<![CDATA[
// Set timeout loop to update session's table.
if ( use_enhanced_js )
{
chat_ping_session();
}
function chat_ping_session()
{
do_request_function = function()
{
if ( ! xmlobj.readystate_ready_and_ok() )
{
return;
}
var returned = xmlobj.xmlhandler.responseText;
if ( returned == 'ok' )
{
chat_tol = setTimeout( 'chat_ping_session()', chat_tol_time );
}
}
xmlobj = new ajax_request();
xmlobj.onreadystatechange( do_request_function );
xmlobj.process( ipb_var_base_url + 'autocom=chatsigma&do=update' );
}
//]]>
</script>";
return $IPBHTML;
}
}
/*--------------------------------------------------*/
/* END OF FILE */
/*--------------------------------------------------*/
?>