<?
/*********************************************************************************
x-kernoel-x.NET Chat Engine is Copyright (c) 2002 by Markus Duft
You can reach me ofer E-Mail at: hide@address.com
This peace of Software underlies the GPL General Public License
Feel free to take peaces of this software for your own programs, but please let me know,
and leave a copyright notice where you use something out of this script!
*********************************************************************************/
?>
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 6</title>
<script language="JavaScript" src="functions.js">
</script>
</head>
<body bgcolor="#000000" text="#ffffff">
<script language="php">
if($nick && $input)
{
include("includes/config.inc.php");
include("includes/class.database.php");
include("includes/cmd.proc.inc.php");
$db = new Database($db_host,$db_name,$db_user,$db_pass);
$sql = "SELECT * FROM on_user WHERE name='$nick'";
$db->query($sql);
$db->nextRecord();
$color = $db->getField(2);
$op_str = cmdProc(htmlentities($input),$color,$nick);
echo "<script language=\"JavaScript\">\n";
echo " input_clear = parent.frames[\"input\"].document.form_".$nick.";
input_clear.input.value=\"\";";
if($op_str != "")
echo "PrintChat(\"$op_str\");\n";
echo "</script>\n";
}
</script>
</body>
</html>