Files
Pichome/misc/sendwx.php
2022-05-02 22:31:35 +08:00

20 lines
400 B
PHP

<?php
if(!defined('IN_OAOOA')) {
exit('Access Denied');
}
header('Content-Type: text/javascript');
dsetcookie('sendwx', '1', 5);
$lockfile = DZZ_ROOT.'./data/sendwx.lock';
@$filemtime = filemtime($lockfile);
if($_G['timestamp'] - $filemtime < 5) exit();
touch($lockfile);
@set_time_limit(0);
$noteid=0;
Hook::listen('online_notification', $noteid);//第三方发送提醒
?>