-
Notifications
You must be signed in to change notification settings - Fork 0
/
core.php
37 lines (31 loc) · 1.12 KB
/
core.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
35
36
37
<?php
// Core Pubb APIs live here.
define('PUBB_VERSION', "0.1a");
require_once __DIR__ . "/init.php";
require_once __DIR__ . "/core/core.php";
require_once __DIR__ . "/core/store.php";
require_once __DIR__ . "/core/constants.php";
require_once __DIR__ . "/core/utils.php";
require_once __DIR__ . "/core/auth.php";
require_once __DIR__ . "/core/http.php";
require_once __DIR__ . "/core/dates.php";
require_once __DIR__ . "/core/urls.php";
require_once __DIR__ . "/core/stats.php";
require_once __DIR__ . "/core/notifications.php";
require_once __DIR__ . "/core/webmentions.php";
require_once __DIR__ . "/core/pingbacks.php";
require_once __DIR__ . "/core/renderer.php";
require_once __DIR__ . "/core/headers.php";
require_once __DIR__ . "/core/resp.php";
require_once __DIR__ . "/core/langs.php";
// Vendorerd
require_once __DIR__ . "/vendor/parsedown.php";
// Method to debug the micropub endpoint. It crashes the
// endpoint and logs the request to log.json
function debug_endpoint() {
http_response_code(400);
echo "You sent:\n";
print_r($_POST);
file_put_contents(__DIR__ . "/log.json", json_encode($_POST));
exit;
}