-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
284 lines (256 loc) · 11.1 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
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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
<?php
$filename = "./install.lock";
if (file_exists($filename)) {
;
} else {
header("Refresh:0;url=./install.php");
}
include ('connect.php');
mysql_query("set names utf8");
$sql = 'select * from saying order by rand() limit 1';
$res=mysql_query($sql);
$row = mysql_fetch_array($res);
$com=$_GET[com];
$cap=$_GET[cap];
if ($com == '1') {
echo("<script> alert('请填写完整!') </script>");
}
elseif ($cap == '1') {
echo("<script> alert('验证码错误!') </script>");
}
else{
echo('');
}
$get = ("select * from list");
$re = mysql_query($get);
$number = mysql_num_rows($re);
?>
<!--[if lt IE 9]>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="assets/js/amazeui.ie8polyfill.min.js"></script>
<![endif]-->
<!---
<script src="assets/js/amazeui.min.js"></script>
--->
<html xmlns="http://www.w3.org/1999/html">
<head lang="zh">
<meta charset="UTF-8">
<title><?=$title?></title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="format-detection" content="telephone=no">
<meta name="renderer" content="webkit">
<link rel="stylesheet" href="assets/css/amazeui.min.css"/>
<style>
@media only screen and (min-width: 641px) {
.am-offcanvas {
display: block;
position: static;
background: none;
}
.am-offcanvas-bar {
position: static;
width: auto;
background: none;
-webkit-transform: translate3d(0, 0, 0);
-ms-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.am-offcanvas-bar:after {
content: none;
}
}
@media only screen and (max-width: 640px) {
.am-offcanvas-bar .am-nav>li>a {
color:#ccc;
border-radius: 0;
border-top: 1px solid rgba(0,0,0,.3);
box-shadow: inset 0 1px 0 rgba(255,255,255,.05)
}
.am-offcanvas-bar .am-nav>li>a:hover {
background: #404040;
color: #fff
}
/*
.am-offcanvas-bar .am-nav>li>am-nav-header {
color: #777;
background: #404040;
box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
text-shadow: 0 1px 0 rgba(0,0,0,.5);
border-top: 1px solid rgba(0,0,0,.3);
font-weight: 400;
font-size: 75%
}
*/
.am-offcanvas-bar .am-nav>li.am-active>a {
background: #1a1a1a;
color: #fff;
box-shadow: inset 0 1px 3px rgba(0,0,0,.3)
}
.am-offcanvas-bar .am-nav>li+li {
margin-top: 0;
}
}
.my-head {
margin-top: 40px;
text-align: center;
}
.my-button {
position: fixed;
top: 0;
right: 0;
border-radius: 0;
}
.my-sidebar {
padding-right: 0;
border-right: 1px solid #eeeeee;
}
.my-footer {
border-top: 1px solid #eeeeee;
padding: 10px 0;
margin-top: 10px;
text-align: center;
}
</style>
</head>
<header class="am-g my-head">
<div class="am-u-sm-12 am-article">
<h1 class="am-article-title">
<br>
<font color="#FFC0FF">灵</font>
<font color="#CC8DFF">石</font>
<font color="#995AFF">祝</font>
<font color="#6627FF">福</font>
<font color="#3300FF">站</font>
</h1>
<p class="am-article-meta">DIY一个专属于你的祝福网页</p>
<p class="am-article-meta">已储存<span class="am-badge am-badge-success am-round"><?=$number?></span>条祝福</p></p>
</div>
</header>
<hr class="am-article-divider"/>
<div class="am-g am-g-fixed">
<div class="am-u-md-9 am-u-md-push-3">
<div class="am-g">
<div class="am-u-sm-11 am-u-sm-centered">
<div class="am-cf am-article">
<div class="am-align-left">
</div>
<form method="post" class="am-form" action="./submit.php">
<fieldset>
<ol class="am-breadcrumb">
<li><a class="am-icon-home" href="./">首页</a></li>
<li><a href="template.php">样式</a></li>
</ol>
<text class="am-kai">
<section class="am-panel am-panel-success">
<header class="am-panel-hd">
<h6 class="am-panel-title">语录:</h6>
</header>
<div class="am-panel-bd">
<i class="am-icon-pencil am-icon-fw"></i>
<?=$row[content] ?>
</div>
</section>
</text>
<ul class="am-list am-list-static am-list-striped">
<li>
<i class="am-icon-book am-icon-fw"></i>
<text class="am-kai">
提示:
在选择样式前请先明确<a href="./template.php">样式</a>图案
</text>
</li>
</ul>
<div class="am-form-group">
<label for="doc-ipt-text-1">浏览器显示的标题*</label>
<input name='title' type="text" class="" id="doc-ipt-text-1" placeholder="I Love you!">
</div>
<div class="am-form-group">
<label for="doc-ipt-text-1">你自己的名字*</label>
<input name="fromname" type="text" class="" id="doc-ipt-text-1" placeholder="林风">
</div>
<div class="am-form-group">
<label for="doc-ipt-text-1">对方的名字*</label>
<input name="toname" type="text" class="" id="doc-ipt-text-1" placeholder="苏紫">
</div>
<div class="am-form-group">
<label for="doc-ta-1">寄语*</label>
<textarea placeholder="初次见你,便认定了。" name="content" class="" rows="3" id="doc-ta-1"></textarea>
</div>
<div class="am-form-group">
<label for="doc-select-1">样式*</label>
<select name='template' id="doc-select-1">
<option value="starry">Starry...(星空)</option>
<option value="birthday">Birthday...(生日)</option>
<option value="">敬请期待...</option>
</select>
<span class="am-form-caret"></span>
</div>
<div class="am-form-group">
<label for="doc-select-1">音乐</label>
<select name='url' id="doc-select-1">
<option value="ydt">有点甜</option>
<option value="dx">东西</option>
</select>
<span class="am-form-caret"></span>
</div>
<div class="am-form-group">
<label for="doc-select-1">验证码*</label>
<a onclick="document.getElementById('captcha_img').src='./captcha.php?r='+Math.random()">
<img id="captcha_img" border='1' src='./captcha.php?r=echo rand(); ?>' style="width:100px; height:30px" />
</a>
<p>
<input name="authcode" type="text" class="" id="doc-ipt-text-1" placeholder="">
<span class="am-form-caret"></span>
</div>
<p>
<div class="am-form-group">
<button type="submit" class="am-btn am-btn-secondary am-round">
提交
</button>
</div>
</form>
</fieldset>
</form>
</div>
<hr/>
<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=298 height=52 src="//music.163.com/outchain/player?type=2&id=517246583&auto=1&height=32"></iframe>
</div>
</div>
</div>
<div class="am-u-md-3 am-u-md-pull-9 my-sidebar">
<div class="am-offcanvas" id="sidebar">
<div class="am-offcanvas-bar">
<ul class="am-nav">
<font color="#8fbc8f">
灵石:
<li><img class="am-circle" src="./images/lings.jpg" width="140" height="140"/></li>
<hr>
<i class="am-icon-info-circle"></i>
仙灵石只出现于小说..
</li>
</font>
<hr>
<font color="#ffb6c1">
<li><i class="am-icon-tags"></i>友情链接</li><p>
<i class="am-icon-circle-o-notch am-icon-spin"></i>:
<a style=" text-decoration: none; color: inherit;" href="https://www.m78.co">星云茶馆</a>
<p>
<hr>
<a style=" text-decoration: none; color: inherit;" href=mailto:ad@lings.cc?subject=[友链申请]灵石祝福站&body=你好,我想与你交换友链。%0d%0a我的站名:%0d%0a网址:%0d%0a图标链接:%0d%0a短介:%0d%0a联系邮箱:>我要申请</a>
</font>
</ul>
</div>
</div>
</div>
<a href="http://wpa.qq.com/msgrd?v=3&uin=2628522691&site=qq&menu=yes" class="am-btn am-btn-sm am-btn-success am-icon-at am-show-sm-only my-button" data-am-offcanvas>
<span class="am-sr">Mariko</span>
</a>
<body style="background:url('./images/index.png');">
</div>
<footer class="my-footer">
<br><small>© Sengoku Wishes, by Nirvana Rise Studio.</small></p>
</footer>
</body>
</html>