Jump to content

datmill bridge


amare

Recommended Posts

hi guys im new to this forum and new to php but i am learning (slowly)

i have just installed flashchat to my datmill website but they no longer support their bridge to flashchat v.6

 

evrything is working good the flashchat gets the login details from my website but the flashchat_etano.php wont redirect to to the flashchat.php i have posted the code of the suspect php file to see if anyone can help me.

 

<?php
/******************************************************************************
Etano
===============================================================================
File:                       3rdparty/flashchat/flashchat_etano.php
$Revision: 365 $
Software by:                DateMill (http://www.datemill.com)
Copyright by:               DateMill (http://www.datemill.com)
Support at:                 http://www.datemill.com/forum
*******************************************************************************
* See the "docs/licenses/etano.txt" file for license.                         *
******************************************************************************/
 
require dirname(__FILE__).'/../../includes/common.inc.php';
require _BASEPATH_.'/includes/user_functions.inc.php';
check_login_member('chatroom');
restore_error_handler();
 
$id = 'flashchat';
 
if (isset($_SESSION[_LICENSE_KEY_]['user']['user_id'])) {
$result = mysql_query("SELECT `user`,`pass` FROM `dsb_user_accounts` WHERE `user_id`=".$_SESSION[_LICENSE_KEY_]['user']['user_id']);
$row = mysql_fetch_row($result);
 
$params = array(
'login' => $row[0],
'password' => $row[1],
'lang'  => isset($_REQUEST['lang']) ? $_REQUEST['lang'] : 'en',
'instance_id' => 1,
'room'  => 0,
);
?>
<html>
<head>
<title>FlashChat</title>
        <script type="text/javascript" src="javascript/swfobject.js"></script>
<?php
$flashVars = array();
 
foreach($params as $name => $value) {
if($value) $flashVars[] = $name.'=' . urlencode($value);
}
 
$fv = join('&', $flashVars);
?>
 
<script type="text/javascript">
<!--
var flashvars = false;
var params = {};
params.quality = "high";
params.wmode = "transparent";
params.allowScriptAccess = "always";
params.bgcolor = "#FFFFFF";
var attributes = {};
attributes.id = "flashchat";
attributes.name = "flashchat";
swfobject.embedSWF("preloader.swf?<?php echo $fv; ?>", "flashchat", "100%", "100%", "8.0.0", false, flashvars, params, attributes);
// Change false setting in above swfobject.embedSWF(); to "expressInstall.swf" If You Wish To utilize SWFObjects Flash Player Update Feature
//-->
</script>
 
</head>
<body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" scroll="no" >
<center>
<div id="flashchat"></div>
            <script type="text/javascript" src="js.php"></script>
</center>
</body>
</html>
<?php
}
 
 
 
Link to comment
https://forums.phpfreaks.com/topic/286001-datmill-bridge/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.