forked from dotclear/dotclear
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
26 lines (23 loc) · 679 Bytes
/
Copy pathindex.php
File metadata and controls
26 lines (23 loc) · 679 Bytes
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
<?php
/**
* @file
* @brief The Frontend endpoint for default blog.
* @ingroup Endpoint
* @defgroup Endpoint Application endpoints.
*
* @package Dotclear
*
* @copyright Olivier Meunier & Association Dotclear
* @copyright AGPL-3.0
*/
/// @cond PRODUCTION
if (isset($_SERVER['DC_BLOG_ID'])) {
define('DC_BLOG_ID', $_SERVER['DC_BLOG_ID']);
} elseif (isset($_SERVER['REDIRECT_DC_BLOG_ID'])) {
define('DC_BLOG_ID', $_SERVER['REDIRECT_DC_BLOG_ID']);
} else {
define('DC_BLOG_ID', 'default'); // <- define your blog here
}
/// @endcond
require_once implode(DIRECTORY_SEPARATOR, [__DIR__, 'src', 'App.php']);
new Dotclear\App('Frontend');