/
chat.php
76 lines (57 loc) · 1.48 KB
/
chat.php
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
<?php
$auth = 1;
include("include/common.php");
if (isset($_GET['popup'])) {
if (!$logged) die;
include('include/style.php');
?><html>
<head>
<title></title>
<meta http-equiv="refresh" content="15; url=chat.php?RID=<?php echo $rid; ?>&popup" />
<link rel="stylesheet" href="style/default/chat.css" />
<?php
if (@$Lang['Charset']) echo "\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=${Lang['Charset']}\">\n";
?></head>
<body>
<script>
<!--
function reload()
{
location.href='<?php echo "chat.php?RID=$rid&popup"; ?>';
}
settimeout("reload()", 10000);
//-->
</script>
<?php
chatbox(100,1,0);
?>
</body>
</html>
<?php
die;
}
else {
for ($i = 0; $i < count($Modules); $i++) if ($Modules[$i] == 'chat') unset ($Modules[$i]);
$Config['IgnoreFrames'] = 1;
include("include/header.php");
tablebegin($Lang['Chat'], 500);
?> <br />
<table width="460" cellspacing="0" cellpadding="0">
<tr>
<td align="left">
<form action="chat.php" method="GET">
<input type="hidden" name="rid" value="<?php echo $rid; ?>" />
<input type="text" name="chat" size="48" />
</td>
<td align="right">
<input type="submit" value="<?php echo $Lang['ChatPost']; ?>" />
</form>
</td>
</table>
<br />
<iframe name="popup" frameborder="0" width="460" height="300" refresh="0" src="chat.php?popup&RID=<?php echo $rid; ?>"></iframe>
<br /><br />
<?php
tableend($Lang['Chat']);
include("include/footer.php");
}