-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroom.php
More file actions
199 lines (157 loc) · 6.06 KB
/
room.php
File metadata and controls
199 lines (157 loc) · 6.06 KB
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<?php
header("Content-type: text/html; charset=utf-8");
date_default_timezone_set("PRC");
session_start();
include_once('lib/mysql.class.php');
include_once('lib/user.class.php');
include_once('include/config.php');
//print_r($o);
$id = $_GET['id'];
if(!isset($_GET['id'])) $id = 123456789;
$mysql = new mysql;
$sql = array(
'table' => 'user',
'condition' => "id = $id"
);
$person = $mysql->row($sql);
//if(!is_array($person)) {
// include('error.php');
// exit();
//}
$sql = array(
'table' => 'video',
'condition' => "uid = $id"
);
$video = $mysql->row($sql);
//if(!is_array($person)) {
// include('error.php');
// exit();
//}
//QRcode
include_once('app/phpqrcode/qrlib.php');
$PNG_TEMP_DIR = dirname(__FILE__).DIRECTORY_SEPARATOR.'temp'.DIRECTORY_SEPARATOR;
$PNG_WEB_DIR = 'temp/';
if (!file_exists($PNG_TEMP_DIR))
mkdir($PNG_TEMP_DIR);
$filename = $PNG_TEMP_DIR.'test'.md5($_REQUEST['data'].'|'.$errorCorrectionLevel.'|'.$matrixPointSize).'.png';
QRcode::png('http://v.ireoo.com/' . $id, $filename, 'H', 10, 0);
//QRcode::png(curPageURL(), $filename, 'H', 10, 0);
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title><?php echo $person['title']; ?> - 琦益直播</title>
<meta name="keywords" content="<?php echo $person['title']; ?>, <?php echo $person['realname']; ?>,主播,主持人,直播,琦益" />
<meta name="description" content="<?php echo $person['desc']; ?>" />
<link href="css/head.css" rel="stylesheet" type="text/css">
<link href="css/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
<script style="text/javascript" src="http://115.29.39.169:8000/socket.io/socket.io.js"></script>
<script style="text/javascript">
<?php if(!is_array($o)) { ?>
var name = '游客';
var avatar = 'http://ireoo.com/include/images/i_quanquan_on.png';
<?php }else{ ?>
var name = '<?php echo $o['username']; ?>';
var avatar = 'http://ireoo.com/<?php echo $person['avatar_large']; ?>';
<?php } ?>
var room = '<?php echo $person['id']; ?>';
var thisURL = '<?php echo curPageURL(); ?>';
</script>
<script style="text/javascript" src="/io.js"></script>
</head>
<body>
<?php include_once('include/head.php'); ?>
<div class="videoBackground">
<!-- <div class="avatar">-->
<!-- <img class="avatar" src="http://ireoo.com/--><?php //echo $person['avatar_large']; ?><!--" />-->
<!-- <ul>-->
<!-- <h1>--><?php //echo $person['realname']; ?><!--</h1>-->
<!---->
<!-- <div class="desc">--><?php //echo $person['synopsis']; ?><!--</div>-->
<!-- <div>--><?php //echo 'http://v.ireoo.com/' . $id; ?><!--</div>-->
<!-- </ul>-->
<!-- <div class="clear"></div>-->
<!-- </div>-->
<div class="title">
<h1><?php echo $person['title']; ?></h1>
<span>ID: <?php echo $id; ?></span>
</div>
<div class="videoBox">
<div class="chatBox">
<div class="chat"></div>
<div class="input">
<span><img src="#123" /></span><input id="say" /><button id="sayBT">发送</button>
</div>
</div>
<div class="video">
<?php if($person['yyVideo'] != '') { ?>
<embed src="http://yy.com/s/<?php echo $person['yyVideo']; ?>/0/yyscene.swf" type="application/x-shockwave-flash" style="width:800px; height: 600px";>
<?php }else{ ?>
<video id="boss" autoplay></video>
<?php } ?>
<video id="me" style="display: none;" autoplay muted></video>
</div>
<div class="clear"></div>
</div>
</div>
<div class="list"></div>
<div class="mian">
<ol>
<div style="margin-bottom: 20px;"><script> var dsaid=44648; var dwidth=250; var dheight=250; </script> <script type="text/javascript" src="http://unionjs.dianxin.com/showPic.js" name="showpic" charset="utf-8" ></script></div>
<!-- <h1>联系方式</h1>-->
<!-- <li>联系电话:--><?php //echo $person['phone']; ?><!--</li>-->
<!-- <li>联系QQ:--><?php //echo $person['qq']; ?><!--</li>-->
<!-- <li>微信号:--><?php //echo $person['wechat']; ?><!--</li>-->
<!-- <li>MSN:--><?php //echo $person['msn']; ?><!--</li>-->
<!-- <li>SKYPE:--><?php //echo $person['skype']; ?><!--</li>-->
<!-- <li>邮箱:--><?php //echo $person['email']; ?><!--</li>-->
<!-- <li>公司:--><?php //echo $person['company']; ?><!--</li>-->
<!-- <li>详细地址:--><?php //echo $person['address']; ?><!--</li>-->
<ul>
<h1>资料</h1>
<li><?php echo '年龄:' . (DATE('Y', time() - $bothday) - 1970); ?></li>
<li><?php echo '生日:' . $person['year'] . '年' . $person['mouth'] . '月' . $person['day'] . '日'; ?></li>
<li><?php echo '性别:' . $person['sex']; ?></li>
<li><?php echo '情感:' . $person['love']; ?></li>
</ul>
<ul>
<h1>二维码</h1>
<li><img class="QRcode" src="<?php echo $PNG_WEB_DIR.basename($filename); ?>" /></li>
</ul>
</ol>
<div class="right">
<ul>
<h1>简介</h1>
<li><?php echo $person['desc']; ?></li>
</ul>
<ul class="gift">
<h1>礼物</h1>
</ul>
</div>
<div class="clear"></div>
</div>
</body>
</html>
<?php
function curPageURL()
{
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on")
{
$pageURL .= "s";
}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80")
{
$pageURL .= $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"];
}
else
{
$pageURL .= $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
}
return $pageURL;
}
?>