1 | <?php |
||
2 | // phpcs:disable PSR1.Files.SideEffects |
||
3 | if (!defined('DOKU_INC')) { |
||
4 | define('DOKU_INC', realpath(dirname(__FILE__) . '/../../../') . '/'); |
||
5 | } |
||
6 | define('NOSESSION', 1); |
||
7 | require_once(DOKU_INC . 'inc/init.php'); |
||
8 | if (!defined('DOKU_TESTING')) { |
||
9 | // Main |
||
10 | $hook = \dokuwiki\plugin\swarmwebhook\webhooks\AbstractWebhook::getWebhook(); |
||
11 | $hook->run(file_get_contents('php://input')); |
||
12 | } |
||
13 |