-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
63 lines (58 loc) · 2.09 KB
/
index.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
<?php
include_once("include/common.inc.php");
//header("Content-type: text/html; charset=utf-8");
foreach(API_Config() as $k=>$v)$$k=$v;
$type=Char_Cv('type','get');
Robot($type=='onez'?1:0);
$channelid=Char_Cv('channelid','get');
Channel($channelid);
if($Channel['allowguest']==1 || $username){
if($Channel['ifonly']==1){
header("location:group.php?only=1&channel=".$Channel['id']);
exit();
}
}
$botid=Char_Cv('botid','get');
$client=Char_Cv('client','get');
$onezdivcount=28;
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<link href="themes/<?=$Channel['theme']?$Channel['theme']:$setting['theme']?>/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<script type="text/javascript">
var client="<?=$client?>";
var theskin="<?=$Channel['theme']?$Channel['theme']:$setting['theme']?>";
var GroupId="<?=$Channel['id']?>";
var GroupName="<?=$Channel['name']?>";
OnezDivCount=<?=$onezdivcount?>;
</script>
<script type="text/javascript" src='themes/<?=$Channel['theme']?$Channel['theme']:$setting['theme']?>/config.js'></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/frame.js"></script>
<script type="text/javascript" src="js/move.js"></script>
<script type="text/javascript" src="js/ajax.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript" src="js/limit.js"></script>
<script type="text/javascript">
<?php
if($botid && file_exists('plugins/robot/'.$botid.'/config.php')){
echo "ToBot('$botid','".$Bot[$botid]['name']."','".$Bot[$botid]['width']."','".$Bot[$botid]['height']."');";
}elseif(!$userid && $Channel['allowguest']==0){
echo 'OpenLoginDialog("'.$Channel['id'].'");';
}elseif($hiddenGroup!=1){
echo 'OpenGroupDialog("'.$Channel['id'].'");';
}
if(is_array($BotList[2])){
foreach($BotList[2] as $v){
echo "ToBot('$v','".$Bot[$v]['name']."','".$Bot[$v]['width']."','".$Bot[$v]['height']."');";
}
}
?>
</script>
<?if($userid){?><ul id="minwins"></ul><?}?>
</body>
</html>