2
0
mirror of https://github.com/boostorg/website.git synced 2026-01-19 04:42:17 +00:00
Files
website/webhook/github-webhook.php
Daniel James b8120cc53c Adjust a lot of the error handling.
Use exceptions for most internal errors. Return error codes for most errors.
2016-09-29 02:08:52 +01:00

16 lines
442 B
PHP

<?php
/* NOTE: Not including boost.php, we don't want the autoloaded running,
* we just want to know where to find the implementation. */
require_once(__DIR__.'/../common/code/boost_config.php');
if (!defined('BOOST_TASKS_DIR')) {
header($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error', true, 500);
echo "Tasks directory not set.";
exit(1);
}
require_once(BOOST_TASKS_DIR.'/webhook/webhook.php');
webhook();