-
Notifications
You must be signed in to change notification settings - Fork 1
/
clear.php
87 lines (83 loc) · 3.21 KB
/
clear.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
<?php
/*
*
* 浏览器->清理
*
* 2011-1-14 @ jiuwap.cn
*
*/
define('DEFINED_JIUWAP','jiuwap.cn');
include $_SERVER['DOCUMENT_ROOT'].'/inc/common.php';
$browser->user_login_check();
$h = isset($_GET['h']) ? $_GET['h'] : '';
if ( $h <> ''){
$au = '&h='.$h;
}else{
$au = '';
}
if ( isset($_GET['cookie']) ){
$browser->template_top('清理COOKIE');
echo '清理COOKIES:<br/>';
if ( $_GET['cookie'] == 'yes' ){
$browser->cookie_del();
echo '操作成功。<br/><a href="clear.php?h='.$h.'">返回</a>';
}else{
echo '此操作将提高浏览器处理速度,但会造成某些网站的登陆信息丢失。<br/>
<a href="clear.php?cookie=yes&h='.$h.'">确认</a>.<a href="clear.php?h='.$h.'">返回</a>';
}
}elseif ( isset($_GET['urls']) ){
$browser->template_top('清理网址缓存');
echo '清理网址缓存:<br/>';
if ( $_GET['urls'] == 'yes' ){
$browser->cacheurl_del('url');
echo '操作成功。<br/><a href="clear.php?h='.$h.'">返回</a>';
}else{
echo '(提示:您无需清理网址缓存,系统会自动覆盖旧缓存!当然,您也可以手工清理!)<br/>
<a href="clear.php?urls=yes&h='.$h.'">确认</a>.<a href="clear.php?h='.$h.'">返回</a>';
}
}elseif ( isset($_GET['pics']) ){
$browser->template_top('清理图片缓存');
echo '清理图片缓存:<br/>';
if ( $_GET['pics'] == 'yes' ){
$browser->cacheurl_del('pic');
echo '操作成功。<br/><a href="clear.php?h='.$h.'">返回</a>';
}else{
echo '提示:您无需清理图片缓存,系统会自动覆盖旧缓存!当然,您也可以手工清理!<br/>
<a href="clear.php?pics=yes&h='.$h.'">确认</a>.<a href="clear.php?h='.$h.'">返回</a>';
}
}elseif ( isset($_GET['history']) ){
$browser->template_top('清理历史记录');
echo '清理历史记录:<br/>';
if ( $_GET['history'] == 'yes' ){
$browser->history_del();
echo '操作成功。<br/><a href="clear.php?h='.$h.'">返回</a>';
}else{
echo '您确认要清空历史记录?<br/>
<a href="clear.php?history=yes&h='.$h.'">确认</a>.<a href="clear.php?h='.$h.'">返回</a>';
}
}elseif ( isset($_GET['num']) ){
$browser->template_top('清理流量统计');
echo '清理流量统计:<br/>';
if ( $_GET['num'] == 'yes' ){
$browser->num_del();
echo '操作成功。<br/><a href="clear.php?h='.$h.'">返回</a>';
}else{
echo '此操作将重置流量统计计数器(累计的图片、页面压缩、浏览次数)。<br/>
<a href="clear.php?num=yes&h='.$h.'">确认</a>.<a href="clear.php?h='.$h.'">返回</a>';
}
}else{
$browser->template_top('清理');
echo $b_set['webtitle'].'-清理<br/>返回:';
if ( $h<>'' ){
echo '<a href="/?h='.$h.'">网页</a>.';
}
echo '<a href="/?m='.$h.'">菜单</a>.<a href="/">首页</a><br/>
-------------<br />
<a href="clear.php?cookie=check&h='.$h.'">清理COOKIES</a><br/>
<a href="clear.php?urls=check&h='.$h.'">清理网址缓存</a><br/>
<a href="clear.php?pics=check&h='.$h.'">清理图片缓存</a><br/>
<a href="clear.php?history=check&h='.$h.'">清理历史记录</a><br/>
<a href="clear.php?num=check&h='.$h.'">清理流量统计</a><br/>
';
}
$browser->template_foot();