You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
572 B
PHTML
34 lines
572 B
PHTML
12 years ago
|
<?php
|
||
|
$_APP = true;
|
||
|
require("includes/base.php");
|
||
|
|
||
|
$sPageContents = "";
|
||
|
|
||
|
$router = new CPHPRouter();
|
||
|
|
||
|
$router->allow_slash = true;
|
||
|
$router->ignore_query = true;
|
||
|
|
||
|
$router->routes = array(
|
||
|
0 => array(
|
||
|
"^/$" => "modules/ui/index.php",
|
||
|
"^/api/search$" => "modules/api/search.php",
|
||
|
"^/api/dump$" => "modules/api/dump.php"
|
||
|
)
|
||
|
);
|
||
|
|
||
|
$router->RouteRequest();
|
||
|
|
||
|
echo($sPageContents);
|
||
|
|
||
|
/*
|
||
|
$data = array();
|
||
|
|
||
|
foreach(Topic::CreateFromQuery("SELECT * FROM topics WHERE `ParentId` = 0") as $topic)
|
||
|
{
|
||
|
$data[] = $topic->AsDataset();
|
||
|
}
|
||
|
|
||
|
echo(json_encode($data));
|
||
|
* */
|