forked from XoopsModules25x/newbb
-
Notifications
You must be signed in to change notification settings - Fork 1
/
digest.php
34 lines (29 loc) · 917 Bytes
/
digest.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
<?php declare(strict_types=1);
/**
* NewBB, the forum module for XOOPS project
*
* @copyright XOOPS Project (https://xoops.org)
* @license GNU GPL 2.0 or later (https://www.gnu.org/licenses/gpl-2.0.html)
* @author Taiwen Jiang (phppp or D.J.) <[email protected]>
* @since 4.00
*/
use XoopsModules\Newbb\{
DigestHandler,
Helper
};
/** @var DigestHandler $digestHandler */
/** @var Helper $helper */
// Why the skip-DB-security check defined only for XMLRPC? We also need it!!! ~_*
if (!defined('XOOPS_XMLRPC')) {
define('XOOPS_XMLRPC', 1);
}
ob_start();
require_once __DIR__ . '/header.php';
if (0 == $GLOBALS['xoopsModuleConfig']['email_digest']) {
echo '<br>Not set';
return false;
}
$digestHandler = Helper::getInstance()->getHandler('Digest');
$msg = $digestHandler->process();
$msg .= ob_get_clean();
echo '<br>' . $msg;