Revision 3731:3770620079d4,
732 bytes
checked in by franck <carnet.franck.paul@…>, 8 years ago
(diff) |
Simplify licence block at the beginning of each file
|
Rev | Line | |
---|
[0] | 1 | <?php |
---|
[3731] | 2 | /** |
---|
| 3 | * @package Dotclear |
---|
| 4 | * @subpackage Backend |
---|
| 5 | * |
---|
| 6 | * @copyright Olivier Meunier & Association Dotclear |
---|
| 7 | * @copyright GPL-2.0-only |
---|
| 8 | */ |
---|
[0] | 9 | |
---|
[3730] | 10 | require dirname(__FILE__) . '/../inc/prepend.php'; |
---|
[0] | 11 | |
---|
| 12 | if (isset($_SERVER['PATH_INFO'])) { |
---|
[3730] | 13 | $blog_id = trim($_SERVER['PATH_INFO']); |
---|
| 14 | $blog_id = preg_replace('#^/#', '', $blog_id); |
---|
[0] | 15 | } elseif (!empty($_GET['b'])) { |
---|
[3730] | 16 | $blog_id = $_GET['b']; |
---|
[0] | 17 | } |
---|
| 18 | |
---|
| 19 | if (empty($blog_id)) { |
---|
[3730] | 20 | header('Content-Type: text/plain'); |
---|
| 21 | http::head(412); |
---|
| 22 | echo 'No blog ID given'; |
---|
| 23 | exit; |
---|
[0] | 24 | } |
---|
| 25 | |
---|
[2730] | 26 | # Avoid plugins warnings, set a default blog |
---|
| 27 | $core->setBlog($blog_id); |
---|
| 28 | |
---|
[0] | 29 | # Loading plugins |
---|
| 30 | $core->plugins->loadModules(DC_PLUGINS_ROOT); |
---|
| 31 | |
---|
| 32 | # Start XML-RPC server |
---|
[3730] | 33 | $server = new dcXmlRpc($core, $blog_id); |
---|
[0] | 34 | $server->serve(); |
---|
Note: See
TracBrowser
for help on using the repository browser.