Subversion Repositories cryptochat

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 daniel-mar 1
<?php
2
 
3
include 'col.inc.php';
4
 
5
if ($_POST['txt']!="") {
6
        $fileOpen=@fopen("messages.txt", "a");
7
        $_POST['txt'] = stripslashes($_POST['txt']);
8
        $_POST['txt'] = htmlentities($_POST['txt']);
9
        $_POST['txt'] = str_replace('"', '&quot;', $_POST['txt']);
10
        @fwrite($fileOpen,date('d.m.Y H:i:s')." <font color=\"".str_to_color($_COOKIE['mov_nick'])."\"><b>".$_COOKIE['mov_nick']." -- </b></font>".$_POST['txt']."<br>\n");
11
        @fclose($fileOpen);
12
}
13
 
14
echo "<style type=\"text/css\">BODY{font-family:Verdana, Arial, Helvetica, sans-serif}</style>
15
<form method=\"post\" action=\"input.php\" name=\"inpform\">
16
          <input name=\"txt\" type=\"text\" size=\"75\" id=\"txt\">
17
          <input type=\"submit\" name=\"Submit\" value=\"   Chat!   \">
18
</form>        <a href=\"logoff.php\" target=\"_top\">Log Off</a>
19
 
20
-- <a href=\"messages.php?show=all\" target=\"_blank\">Show full history</a>
21
 
22
-- <a href=\"files/\" target=\"_blank\">Show shared files</a><br>
23
 
24
 
25
<script type=\"text/javascript\" language=\"JavaScript\">
26
        <!--
27
                self.focus();
28
                document.inpform.txt.focus();
29
        // -->
30
        </script>
31
 
32
";
33
?>