-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
235 lines (214 loc) · 7.96 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
<?php
include("includes/common.php");
if($_GET['r'] == ''){
include 'includes/header.php';
?>
<!--==========================
简介部分
============================-->
<section id="intro">
<div class="intro-container">
<div id="introCarousel" class="carousel slide carousel-fade" data-ride="carousel">
<ol class="carousel-indicators"></ol>
<div class="carousel-inner" role="listbox">
<!-- side 1-->
<div class="carousel-item active" style="background-image: url('<?=$conf['bgurl'];?>');">
<div class="carousel-container">
<div class="carousel-content">
<h2><?=$conf['Title']?></h2>
<p><?=$conf['Description'];?></p>
<a href="#footer" class="btn-get-started scrollto">关于我们</a>
</div>
</div>
</div>
<!-- side 2-->
<div class="carousel-item" style="background-image: url('<?=$conf['bgurl'];?>');">
<div class="carousel-container">
<div class="carousel-content">
<h2>成员查询</h2>
<a href="#team" class="btn-get-started scrollto">查看成员</a>
</div>
</div>
</div>
<!-- side 3-->
<div class="carousel-item" style="background-image: url('<?=$conf['bgurl'];?>');">
<div class="carousel-container">
<div class="carousel-content">
<h2>你想要加入我们吗?</h2>
<p>点击下方填写信息即可加入</p>
<a href="?r=join" class="btn-get-started scrollto">Join now</a>
</div>
</div>
</div>
</div>
<a class="carousel-control-prev" href="#introCarousel" role="button" data-slide="prev">
<span class="carousel-control-prev-icon ion-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#introCarousel" role="button" data-slide="next">
<span class="carousel-control-next-icon ion-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
</section><!-- #简介 -->
<main id="main">
<!--==========================
服务特点栏
============================-->
<section id="services">
<div class="container">
<header class="section-header wow fadeInUp">
<h3>特点</h3>
<p>不忘初心,方得始终.</p>
</header>
<div class="row">
<div class="col-lg-4 col-md-6 box wow bounceInUp" data-wow-duration="1.4s">
<div class="icon"><i class="ion-ios-analytics-outline"></i></div>
<h4 class="title"><a href="#"><?php $b=fuwu(1); echo $b["Name"]?></a></h4>
<p class="description"><?=$b['Page']?></p>
</div>
<div class="col-lg-4 col-md-6 box wow bounceInUp" data-wow-duration="1.4s">
<div class="icon"><i class="ion-ios-bookmarks-outline"></i></div>
<h4 class="title"><a href="#"><?php $b=fuwu(2); echo $b["Name"]?></a></h4>
<p class="description"><?=$b['Page']?></p>
</div>
<div class="col-lg-4 col-md-6 box wow bounceInUp" data-wow-duration="1.4s">
<div class="icon"><i class="ion-ios-paper-outline"></i></div>
<h4 class="title"><a href="#"><?php $b=fuwu(3); echo $b["Name"]?></a></h4>
<p class="description"><?=$b['Page']?></p>
</div>
</div>
</div>
</section><!-- #服务 -->
<section id="portfolio" class="portfolio section-bg" >
<div class="container">
<header class="section-header wow fadeInUp">
<h3>旗下站点</h3>
<p>开发更好的服务</p>
</header>
<div class="row">
<div class="col-lg-12 d-flex justify-content-center">
<ul id="portfolio-flters">
<!--<li data-filter="*" class="filter-active">所有</li>
<li data-filter=".filter-web">网页</li>
<li data-filter=".filter-app">程序</li>-->
</ul>
</div>
</div>
<div class='row'>
<?php
AI::site();
?>
</div>
</div>
</section>
<!--==========================
成员介绍
============================-->
<section id="team">
<div class="container">
<div class="section-header wow fadeInUp">
<h3>成员</h3>
<p>为数个站点运营提供服务</p>
</div>
<div class="row">
<?php AI::team(); ?>
</div>
</div>
</section><!-- #成员介绍 -->
<section id="info" class="info section-bg">
<div class="container">
<header class="section-header wow fadeInUp">
<br><br><h3>团队消息</h3>
<p>实时跟进团队最新消息</p>
</header>
<div class="row">
<ul class="list-group"></ul>
<?php
AI::info();
?>
</div>
</div>
</section>
<section id="about">
<div class="container">
<header class="section-header wow fadeInUp">
<br><br><h3>反馈</h3>
<p>您的反馈使我们前进的动力</p>
</header>
<div class="row">
<div class="col-lg-6">
<div class="card">
<div class="card-header">
<h4><?=$conf["Title"];?></h4>
</div>
<div class="card-body">
<?=$conf["comment"];?>
</div>
</div>
</div>
<!-- 评论 -->
<div class="col-lg-6">
<div class="card">
<div class="card-body">
<form action="?r=comment" method="post" >
<div class="form-group col-md-6">
<label for="Name">您的名称</label>
<input type="text" class="form-control" id="Name" name="Name" value="" placeholder="您的名称.." required/>
</div>
<div class="form-group col-md-6">
<label for="qq">QQ</label>
<input type="text" class="form-control" id="qq" name="qq" value="" placeholder="您的QQ.." required/>
</div>
<div class="form-group col-md-12">
<label for="comment">反馈内容</label>
<textarea class="form-control" id="comment" name="comment" value="" placeholder="您要反馈的内容.." required></textarea>
</div>
<div class="form-group col-md-12">
<?php
if($_COOKIE['comment'] == ""){
?>
<button type="submit" class="btn btn-primary btn-label ajax-post" target-form="add-form"><label><i class="mdi mdi-checkbox-marked-circle-outline"></i></label>点击提交</button>
<?php
}elseif($_COOKIE['comment'] != ""){
?>
<button class="btn btn-danger btn-label" disabled><label><i class="mdi mdi-checkbox-marked-circle-outline"></i></label>您最近已经反馈过了</button>
<?php
}
?>
</div>
</form>
</div>
</div>
</div>
</div>
<!--END评论-->
</div>
</section>
</main>
<?php
include("footer.php");
?>
</body>
</html>
<?php
$AT->close();
}elseif($_GET['r'] == "comment"){
if(strlen($_POST['Name']) < 4 && strlen($_POST['qq']) < 4 && strlen($_POST['comment'] < 20) && strlen($_POST['qq'] > 10)){
exit("<script type='text/javascript'>alert('长度有误!');window.location.href='./index.php';</script>");
}
if($_COOKIE['comment'] == "true"){
exit("<script type='text/javascript'>alert('禁止反复提交!');window.location.href='./index.php';</script>");
}
$AT->query("INSERT INTO `autive_comments`(`Uid`, `Name`, `QQ`, `content`) VALUES (0, '".$_POST['Name']."', '".$_POST['qq']."', '".$_POST['comment']."')");
setcookie("comment","true",time() + 7200);
echo("<script>alert('您的反馈已提交!我们会努力改善的!');
window.location.href='./index.php';
</script>");
}elseif ($_GET['r'] == 'join') {
include('includes/join.php');
}else {
echo('Are you sure? 你在非法访问呢?');
}
?>