forked from BIN-YEE/bae_tuchuang
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhome.php
80 lines (71 loc) · 2.8 KB
/
home.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
<?php
require_once 'common.inc.php';
if(isset($_GET['logout'])){
$CurrUser = NULL;
setcookie('auth',null,time()-86400);
header('location:/');
exit;
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title><?php echo SITENAME;?></title>
<link rel="stylesheet" href="static/main_style.css" />
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div id="bsaHolder">
<div class="bsa_it_ad ad1 odd">
<?php
if($CurrUser){?>
<img class="avatar" src="<?php echo $CurrUser['avatar'];?>" />
<p>
您好:<span class="icon_<?php echo $CurrUser['platform']?>"><?php echo $CurrUser['username'];?></span>,[<a href="/list">我的文件</a>]<a href="?logout">退出</a>
</p>
<?php
}else{
?>
<span>登录可以管理上传的文件哦~</span>
<ul class="login">
<li><a href="/connect/qq/" class="qq">腾讯微博登录</a>
</li>
<li><a href="/connect/baidu/" class="baidu">百度帐号登录</a>
</li>
<li><a href="/connect/sina/" class="sina">微博帐号登录</a>
</li>
</ul>
<?php }?>
<div style="clear:both;"></div>
</div>
<a href="#1" id="bsa_closeAd" title="关闭"></a>
</div>
<div id="fav">
<p>
可能有时候就想上传张图片贴在某个论坛里就不管了。这张图片的出处啊,存哪里啊什么的都没什么意义。那么你可以使用下 <em>图床</em> 这个小应用。</p>
<p>
<a href="javascript:void(function(){var%20d%20=%20document,a%20=%20'setAttribute',s%20=%20d.createElement('script');s[a]('tyle','text/javascript');s[a]('src','http://<?php echo HOST;?>/static/js/bookmark.js');d.head.appendChild(s);})();" title="图床|TUCHUANG">图床|TUCHUANG</a>
<— 拖拽到收藏栏试试</p>
</div>
<div id="dropbox">
<span class="message">Drop images here to upload. <br /><i>(they will only be visible to you)</i></span>
</div>
<footer>
<h3>
图床,您的图片存储库,基于百度云存储构建。<span>已成功托管 <?php echo number_format(counter_get('pic_total'));?> 张美图</span>,<a href="/chart/">统计</a>
</h3>
</footer>
<script src="http://code.jquery.com/jquery-1.6.3.min.js"></script>
<script src="static/js/jquery.filedrop.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#bsa_closeAd').click(function(){
$('#bsaHolder').hide();
});
});
</script>
</body>
</html>