-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.php
79 lines (66 loc) · 1.81 KB
/
main.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
use QPlayer2\Config;
use QPlayer2\Page;
require '../../../zb_system/function/c_system_base.php';
require '../../../zb_system/function/c_system_admin.php';
/**
* @var ZBlogPHP $zbp
* @var string $blogpath
* @var string $bloghost
*/
$zbp->Load();
$action = 'root';
if (!$zbp->CheckRights($action)) {
$zbp->ShowError(6);
die();
}
if (!$zbp->CheckPlugin('QPlayer2')) {
$zbp->ShowError(48);
die();
}
$blogtitle = 'QPlayer2';
$do = GetVars('do');
if ('submit' == $do) {
CheckIsRefererValid();
require_once 'lib/Config.php';
$config = new Config();
$config->submit();
}
require $blogpath . 'zb_system/admin/admin_header.php';
require $blogpath . 'zb_system/admin/admin_top.php';
require_once 'lib/Page.php';
?>
<style>
code {
padding: 3px 4px;
background: rgba(0,0,0,.08);
border-radius: 4px;
font-style: normal;
font-size: 13px;
}
textarea {
width: 100%;
height: 100px;
}
</style>
<div id="divMain">
<div class="divHeader"><?php echo $blogtitle; ?></div>
<div id="divMain2">
<form action="?do=submit" method="post">
<input type="hidden" name="csrfToken" value="<?php echo $zbp->GetCsrfToken(); ?>">
<table class="tableFull" role="presentation">
<tbody>
<?php new Page(); ?>
</tbody>
</table>
<p><a target="_blank" href="api.php?do=flush"><input type="button" class="button" value="清除缓存"></a></p>
<p><input type="submit" class="button" value="提交" /></p>
</form>
<script type="text/javascript">
AddHeaderIcon("<?php echo plugin_dir_url(__FILE__) . 'logo.png'; ?>");
</script>
</div>
</div>
<?php
require $blogpath . 'zb_system/admin/admin_footer.php';
RunTime();