/usr/share/yaws-chat/chat.yaws is in yaws-chat 1.92-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | <html>
<erl>
out(A) ->
case chat:check_session(A) of
{ok, Session} ->
chat:dynamic_headers();
Error ->
Error++[break]
end.
</erl>
<script>
function handleEnter(event) {
if (event == null)
event = window.event;
var keyCode = event.keyCode ? event.keyCode : event.which ?
event.which : event.charCode;
if (keyCode == 13) {
sendmsg();
return false;
}
}
function addSmiley(ref) {
var text = document.getElementById("msg");
text.value = text.value+"<img src='"+ref+"'>";
text.focus();
return false;
}
function addText(ref) {
var text = document.getElementById("msg");
text.value = text.value+ref;
text.focus();
return false;
}
</script>
<style>
body {
font: 10px/15px Verdana, Lucida, Arial, sans-serif;
}
h1 {
font: 15px/20px Verdana, Lucida, Arial, sans-serif;
font-weight: bold;
}
#msgs {
border:1px solid #ccc;
height: 25em;
width: 500px;
background-color: #f5f5ff;
overflow: auto;
float: left;
padding: 2px;
}
#members {
border:1px solid #ccc;
height: 25em;
width: 100px;
background-color: #f5f5ff;
overflow: auto;
margin: 2px;
padding: 2px;
}
#msg {
width: 614px;
clear: both;
}
</style>
<script src="chat.js"></script>
<body onload="setTimeout('reader_init0()', 0);" onunload="stop_all()">
<H1> Welcome to the chat room </h1>
<div id="msgs"></div>
<div id="members"></div>
<textarea id="msg" rows="3" value=""
onKeyPress="return handleEnter(event)">
</textarea>
<br>
<script>
document.write(smilies_toolbar());
</script>
</html>
|