forked from Needlworks/Textcube
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrewrite.php
More file actions
17 lines (17 loc) · 720 Bytes
/
rewrite.php
File metadata and controls
17 lines (17 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
/// Copyright (c) 2004-2016, Needlworks / Tatter Network Foundation
/// All rights reserved. Licensed under the GPL.
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
define('ROOT',dirname(__FILE__));
if (file_exists(ROOT . '/framework/id/load')) {
$app_id = trim(file_get_contents(ROOT . '/framework/id/load'));
} else {
$app_id = 'textcube';
}
require_once(ROOT.'/framework/id/'.$app_id.'/Dispatcher.php');
/** Dispatching Interface request via URI */
$dispatcher = Dispatcher::getInstance();
/** Interface Loading */
if (empty($dispatcher->service['debugmode'])) {@include_once $dispatcher->interfacePath;}
else {include_once $dispatcher->interfacePath;}
?>