Revert "* initial work towards factorizing the controllers (yeah, now it's tsControll...
[vsc.git] / adm / _res / loader.php
blobc2833df1f995417d8fd62f891ea79f359a53f5a9
1 <?php
2 require (LIB_PATH.'functions.inc.php');
3 /*
4 * Some general code manipulation
5 */
7 $to = tsPage::getRequest(NAV_VAR);
8 if (!empty($to) && is_dir(PAGE_PATH . $to) && is_file(PAGE_PATH . $to . DIRECTORY_SEPARATOR . 'code.php')) {
9 include (PAGE_PATH . $to . DIRECTORY_SEPARATOR . 'code.php');
10 }elseif (empty($to)) {
11 $to = 'index';
12 include (PAGE_PATH . $to . DIRECTORY_SEPARATOR . 'code.php');
15 $to = tsAdminPage::getInstance($to);
16 $to->dispatch ();