forked from typecho-fans/plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAction.php
More file actions
35 lines (26 loc) · 732 Bytes
/
Copy pathAction.php
File metadata and controls
35 lines (26 loc) · 732 Bytes
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
<?php
class AutoBackup_Action extends Widget_Abstract_Contents implements Widget_Interface_Do
{
public function __construct($request, $response, $params = NULL) {
parent::__construct($request, $response, $params);
}
public function execute()
{
}
public function action()
{
$configs = Helper::options()->plugin('AutoBackup');
if($configs->cronpass){
if($this->request->taken==$configs->cronpass){
require_once 'send.php';
$Send = new Send();
return $Send->sender(1,1,1);
}else{
echo '秘钥错误';
}}
else{
echo '定时任务秘钥未设置';
}
}
}
?>