- Код: Выделить всё
<?php
if(!defined('DATALIFEENGINE')) {die("Hacking Attempt!"); }
require_once ENGINE_DIR.'/data/config.php';
require_once ENGINE_DIR.'/data/mchat.config.php';
require_once ENGINE_DIR.'/modules/mchat/mchat.class.php';
require_once ENGINE_DIR.'/modules/mchat/functions.mc.php';
$mchat = new mChat();
$tpl->load_template('mchat/block.tpl');
$tpl->copy_template .= '
<style type="text/css" media="all">
@import url({THEME}/css/mchat.css);
</style>
<script type="text/javascript" src="/engine/modules/mchat/jQuery.js"></script>
<script type="text/javascript" src="/engine/modules/mchat/ajax.js"></script>
<script type="text/javascript">
var mChat_RefInterval = '.$mchatconfig['refresh'].'*1000;
setInterval(mChat_Refresh, mChat_RefInterval);
</script>
<script type="text/javascript" src="/engine/modules/mchat/bbcodes.js"></script>
<script type=text/javascript>
<!--
var DMC_selField = "message";
var DMC_fombj = document.getElementById( \'mchat-form\' );
-->
</script>';
if ($is_logged){
$tpl->set('[isloged]',"");
$tpl->set('[/isloged]',"");
$tpl->set_block("'\\[notloged\\].*?\\[/notloged\\]'si","");
} else {
$tpl->set_block("'\\[isloged\\].*?\\[/isloged\\]'si","");
$tpl->set('[notloged]',"");
$tpl->set('[/notloged]',"");
}
if ($config['allow_alt_url'] == "yes") {
$tpl->set('[historylink]',"<a href=\"".$config['http_home_url']."mchat/history/\" >");
$tpl->set('[/historylink]',"</a>");
} else {
$tpl->set('[historylink]',"<a href=\"$PHP_SELF?do=mchat_history\">");
$tpl->set('[/historylink]',"</a>");
}
if ($mchatconfig['guest'] == "yes"){
$tpl->set('[guestyes]',"");
$tpl->set('[/guestyes]',"");
$tpl->set_block("'\\[guestno\\].*?\\[/guestno\\]'si","");
} else {
$tpl->set_block("'\\[guestyes\\].*?\\[/guestyes\\]'si","");
$tpl->set('[guestno]',"");
$tpl->set('[/guestno]',"");
}
$tpl->set('{story}', $mchat->GetContent($mchatconfig, $member_id, $config));
$tpl->set('{smiles}', mcsmiles());
$tpl->copy_template = "<form method=\"post\" onsubmit=\"SendMessage(); return false;\" name=\"mchat_form\" id=\"mchat-form\">".$tpl->copy_template."
</form><br/> <a href=\"http://dle-module.ru/\">dle</a>";";
$tpl->compile('minichat');
$tpl->clear();
return $tpl->result['minichat'];
?>
Это код мини-чата. Вот что выдает DLE
Parse error: syntax error, unexpected $end in /home/www/public_html/engine/modules/mchat/block.php on line 73
Но на 73 линии написано ?>
Прошу помощь с исправлением ошибки