-
Notifications
You must be signed in to change notification settings - Fork 0
/
includes.php
21 lines (18 loc) · 901 Bytes
/
includes.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
//TODO: these should be config options probably
const GITHUB_GRAPH_API_URL = 'https://api.github.com/graphql';
const GITHUB_OAUTH_BEGIN_URL = 'https://github.com/login/oauth/authorize';
const GITHUB_OAUTH_TOKEN_URL = 'https://github.com/login/oauth/access_token';
define('SERVER_SCHEME', (isset($_SERVER['HTTPS']) ? "https" : "http"));
define('SERVER_HOST', sanitize_text_field($_SERVER['HTTP_HOST']));
define('SERVER_REQUEST_URI', sanitize_text_field($_SERVER['REQUEST_URI']));
include_once 'api/VideoStream.php';
include_once 'authentication/GithubAuthCookies.php';
include_once 'api/GithubAPIService.php';
include_once 'api/GithubAPIServiceFactory.php';
include_once 'rendering/PlayerHtmlRendering.php';
include_once 'rendering/PlayerHtmlRenderingFactory.php';
include_once 'admin-pages/settings.php';
include_once 'admin-pages/post_type.php';
?>