-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchat.php
54 lines (52 loc) · 2.15 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
<?
define("C_MOD",1);
include("inc/functions.php");
header("Content-type: text/javascript; charset=windows-1251");
if($mode=="priv")
{?>
document.write('<table cellpadding=1 cellspacing=0 border=1 align=center>');
document.write('<tr>');
document.write('<td width=70 align=center valign=top>Óðîâåíü</td>');
document.write('<td width=70 align=center valign=top>Ñîîáùåíèÿ</td>');
document.write('<td width=70 align=center valign=top>ñìàéëèêè</td>');
document.write('<td width=70 align=center valign=top>ñìàéëèêè 2</td>');
document.write('<td width=70 align=center valign=top>ñìàéëèêè 3</td>');
document.write('<td width=70 align=center valign=top>öâåò íèêà</td>');
document.write('<td width=70 align=center valign=top>æèðíûé</td>');
document.write('<td width=70 align=center valign=top>êóðñèâ</td>');
document.write('<td width=70 align=center valign=top>áîëüøîé ðàçìåð</td>');
document.write('<td width=70 align=center valign=top>áåãóùèé</td>');
document.write('<td width=70 align=center valign=top>æèðíîñòü íèêà</td>');
document.write('<td width=70 align=center valign=top>ìåíÿòü òåêñò ñòàòóñà</td>');
document.write('<td width=70 align=center valign=top>öâåòà</td>');
document.write('<td width=70 align=center valign=top>öâåòà 2</td>');
document.write('<td width=70 align=center valign=top>öâåòà 3</td>');
document.write('</tr>');
<?
$query_priv=mysql_query("select * from chat_level order by mess,id");
while($arr_priv=mysql_fetch_array($query_priv))
{
$privel=explode("|",$arr_priv['priv']);
echo "document.write('<tr>');";
echo "document.write('<td>$arr_priv[title]</td>');\r\n";
echo "document.write('<td>$arr_priv[mess]</td>');\r\n";
$t=0;
foreach($privel as $val)
{
if($t!=4)
{
if($val==1) echo "document.write('<td align=center>x</td>');\r\n";
else echo "document.write('<td align=center> </td>');\r\n";
}
$t++;
}
echo "document.write('</tr>');\r\n";
}
echo "document.write('</table>');";
}
else
{
$count=mysql_num_rows(mysql_query("select id from chat_onliners"));
echo "document.write(' <a href=\"http://nnchat.ru\">×àò ($count)</a>')";
}
?>