Subversion Repositories svnkaklik

Rev

Details | Last modification | View Log

Rev Author Line No. Line
6 kaklik 1
<?php 
2
include "config.php";
3
$enter_as=false;
4
 
5
if(isset($name)){$name=trim($name);
6
$name=str_replace('"','',$name);
7
$name=str_replace("'",'',$name);
8
$name=str_replace('\\','',$name);
9
$name=remove_bad_words($name);
10
$fs=refresh_online(0,1);
11
for($i=0;$i<count($fs);$i++){
12
if(stristr($fs[$i],$name)){$name=0;}}
13
$enter_as=$name;}else{$name=0;}
14
 
15
if(strlen($name)<2){die("</head><body onload=\"parent.location='index.php?name=0'\"></body></html>");}
16
 
17
$xpas=md5($enter_as.$secret_word);
18
 
19
$frameset=1;
20
include "incl/header.inc";
21
?>
22
<script type="text/javascript">
23
<?php 
24
print "if(document.images){\n";
25
 
26
for($i=0;$i<count($pics);$i++){
27
$entry=explode("|",$pics[$i]);
28
if(isset($entry[4])&&strlen($entry[4])>3){
29
print "pca$i=new Image();pca$i.src='$skin_dir/$entry[0]'\n";
30
print "pcb$i=new Image();pcb$i.src='$skin_dir/$entry[4]'\n";
31
}}
32
for($i=0;$i<count($smilies);$i++){
33
$entry=explode("|",$smilies[$i]);
34
if(isset($entry[1])&&strlen($entry[1])>3){
35
print "smi$i=new Image();smi$i.src='$skin_dir/$entry[1]'\n";
36
}}
37
print "snd=new Image();snd.src='$skin_dir/sound.swf'\n";
38
print "}";?></script></head>
39
<frameset rows="<?php print $fset;?>" border="0">
40
<frame src="top.php?chat=1" name="a" marginwidth="0" scrolling="no" marginheight="0" frameborder="0" noresize="noresize" />
41
<frame src="chat.php<?php print "?name=$enter_as&amp;xpas=$xpas&amp;time_offset=$time_offset&amp;r=$random";?>" name="b" marginwidth="0" scrolling="auto" marginheight="0" frameborder="0" noresize="noresize" />
42
<frame src="bottom.php<?php print "?chat=1&amp;name=$enter_as&amp;xpas=$xpas&amp;time_offset=$time_offset";?>" name="c" marginwidth="0" scrolling="no" marginheight="0" frameborder="0" noresize="noresize" />
43
</frameset></html>