Elgg  Version 1.9
index.php
Go to the documentation of this file.
1 <?php
9 // allow testing from the upgrade page before the site is upgraded.
10 if (isset($_GET['__testing_rewrite'])) {
11  if (isset($_GET['__elgg_uri']) && false !== strpos($_GET['__elgg_uri'], '__testing_rewrite')) {
12  echo "success";
13  }
14  exit;
15 }
16 
17 require_once(dirname(__FILE__) . "/engine/start.php");
18 
19 $router = _elgg_services()->router;
20 $request = _elgg_services()->request;
21 
22 if (!$router->route($request)) {
23  forward('', '404');
24 }
$router
Definition: index.php:19
$request
Definition: index.php:20
exit
Definition: reorder.php:12
elgg forward
Meant to mimic the php forward() function by simply redirecting the user to another page...
Definition: elgglib.js:419
_elgg_services()
Definition: autoloader.php:14
elgg echo
Translates a string.
Definition: languages.js:43