import
[web.mtrack] / web / ext.php
1 <?php # vim:ts=2:sw=2:et:
2 /* For licensing and copyright terms, see the file named LICENSE */
3 include '../inc/common.php';
4
5 $pi = mtrack_get_pathinfo();
6
7 $p = MTrackExtensionPage::bindToPage($pi);
8
9 if ($p) {
10   $p->dispatchRequest();
11 } else {
12
13   mtrack_head("Not found");
14
15   echo htmlentities($pi, ENT_QUOTES, 'utf-8');
16   echo " is not a registered mtrack application endpoint";
17
18   mtrack_foot();
19 }
20
21