Помогите исправить чтоб не грузил сервер
заранее спасибо.
заранее спасибо.
<?php if (!defined('BLOCK_FILE')) { Header("Location: ../index.php"); exit; } require_once("config/config_chat.php"); $chatrefresh=$chatrefresh00; $content .= "<script src=\"modules/chat/lib/JsHttpRequest.js\"></script><script language=\"JavaScript\" type=\"text/javascript\" src=\"modules/chat/lib/jchat.js\"></script><script language=\"JavaScript\" type=\"text/javascript\" src=\"modules/chat/lib/chat.js\"></script>"; $content .= "<table width=\"100%\" border=0 cellpadding=\"2\" cellspacing=\"0\"><div id=debug></div><tr><td width=\"100%\" align=\"left\" valign=\"top\" style=\"height: 150px; overflow: auto;\">"; $content .= "<div id=messages style=\"height: 150px; overflow: auto;\"></div>"; $content .= "</td></tr></table>"; $content .= "<script language=\"JavaScript\" type=\"text/javascript\"> chat_messages(); var interval = setInterval(\"chat_messages()\",$chatrefresh); </script>"; if (is_user($user)) { $content .= "<hr>"; $content .= "<form name=\"post\" method=\"post\" onsubmit=\"return false\" >"; $content .= " <input type=\"text\" name=\"Message\" id=\"message\" size=\"58%\" onKeydown=\"enter(event)\"> "; $content .= "Кому: <input type=\"text\" name=\"Amessage\" id=\"amessage\" size=\"5\" onKeydown=\"enter(event)\"> "; $content .= "  <input type=\"reset\" name=\"submit\" value=Сказать onclick=\"say()\" class=\"fbutton\"> "; $content .= "<a onclick=\"SwitchMenu('smiles')\"><input type=\"button\" value=\"Смайлы\" class=\"fbutton\"></a></form>"; $content .= "<div id=\"cont\" onclick=\"SwitchMenu('smiles')\" style=\"cursor:pointer;\><img src=\"images/arrow.gif\"></div>"; $content .= "<div id=\"smiles\" style=\"display:none;\">"; $content .= "<center>"; $content .= "<a href=\"Java Scriptemoticon(' ')\"><img src=\"images/smilies/01.gif\" border=\"0\"></a> "; $content .= "<a href=\"Java Scriptemoticon(' ')\"><img src=\"images/smilies/02.gif\" border=\"0\"></a> "; $content .= "<a href=\"Java Scriptemoticon(' ')\"><img src=\"images/smilies/03.gif\" border=\"0\"></a> "; $content .= "<a href=\"Java Scriptemoticon(' ')\"><img src=\"images/smilies/04.gif\" border=\"0\"></a> "; $content .= "<a href=\"Java Scriptemoticon(' ')\"><img src=\"images/smilies/05.gif\" border=\"0\"></a> "; $content .= "<a href=\"Java Scriptemoticon(' ')\"><img src=\"images/smilies/06.gif\" border=\"0\"></a> "; $content .= "<a href=\"Java Scriptemoticon(' ')\"><img src=\"images/smilies/07.gif\" border=\"0\"></a> "; $content .= "<a href=\"Java Scriptemoticon(' ')\"><img src=\"images/smilies/08.gif\" border=\"0\"></a> "; $content .= "<a href=\"Java Scriptemoticon(' ')\"><img src=\"images/smilies/09.gif\" border=\"0\"></a> "; $content .= "<a href=\"Java Scriptemoticon(' ')\"><img src=\"images/smilies/09.gif\" border=\"0\"></a> "; $content .= "<a href=\"Java Scriptemoticon(' ')\"><img src=\"images/smilies/11.gif\" border=\"0\"></a> "; $content .= "<a href=\"Java Scriptemoticon(' ')\"><img src=\"images/smilies/12.gif\" border=\"0\"></a> "; $content .= "<a href=\"Java Scriptemoticon(' ')\"><img src=\"images/smilies/13.gif\" border=\"0\"></a> "; $content .= "<a href=\"Java Scriptemoticon(' ')\"><img src=\"images/smilies/14.gif\" border=\"0\"></a> "; $content .= "<a href=\"Java Scriptemoticon(' ')\"><img src=\"images/smilies/15.gif\" border=\"0\"></a> "; $content .= "<a href=\"Java Scriptemoticon(' ')\"><img src=\"images/smilies/16.gif\" border=\"0\"></a> "; $content .= "<a href=\"Java Scriptemoticon(' ')\"><img src=\"images/smilies/17.gif\" border=\"0\"></a> "; $content .= "<a href=\"Java Scriptemoticon(' ')\"><img src=\"images/smilies/18.gif\" border=\"0\"></a> "; $content .= "<br>"; $content .= "<a href=\"Java Scriptemoticon(' ')\"><img src=\"images/smilies/19.gif\" border=\"0\"></a> "; $content .= "<a href=\"Java Scriptemoticon(' ')\"><img src=\"images/smilies/21.gif\" border=\"0\"></a> "; $content .= "<a href=\"Java Scriptemoticon(' ')\"><img src=\"images/smilies/22.gif\" border=\"0\"></a> "; $content .= "<a href=\"Java Scriptemoticon(' ')\"><img src=\"images/smilies/23.gif\" border=\"0\"></a> "; $content .= "<a href=\"java Scriptemoticon(' ')\"><img src=\"images/smilies/24.gif\" border=\"0\"></a> "; $content .= "<a href=\"Java Scriptemoticon(' ')\"><img src=\"images/smilies/25.gif\" border=\"0\"></a> "; $content .= "<a href=\"Java Scriptemoticon(' ')\"><img src=\"images/smilies/26.gif\" border=\"0\"></a> "; $content .= "<a href=\"java Scriptemoticon(' ')\"><img src=\"images/smilies/27.gif\" border=\"0\"></a> "; $content .= "<a href=\"Java Scriptemoticon(' ')\"><img src=\"images/smilies/28.gif\" border=\"0\"></a> "; $content .= "<a href=\"Java Scriptemoticon(' ')\"><img src=\"images/smilies/29.gif\" border=\"0\"></a> "; $content .= "<a href=\"Java Scriptemoticon(' ')\"><img src=\"images/smilies/31.gif\" border=\"0\"></a> "; $content .= "<a href=\"Java Scriptemoticon(' ')\"><img src=\"images/smilies/32.gif\" border=\"0\"></a> "; $content .= "<a href=\"Java Scriptemoticon(' ')\"><img src=\"images/smilies/33.gif\" border=\"0\"></a> "; $content .= "<a href=\"Java Scriptemoticon(' ')\"><img src=\"images/smilies/34.gif\" border=\"0\"></a> "; $content .= "<a href=\"Java Scriptemoticon(' ')\"><img src=\"images/smilies/35.gif\" border=\"0\"></a> "; $content .= "</center>"; $content .= "</div>"; } else { //$content .= "<center>"._STOPCHAT."<br></center>"; } ?>