public
Description: HellaNZB frontend for iPhone
Homepage: http://blog.buckrobinson.com/hellaphone
Clone URL: git://github.com/buck2769/hellaphone.git
Buckley Robinson (author)
Mon May 11 20:58:01 -0700 2009
commit  9f571a23f017733d28a793c58bff868f9dbd531b
tree    e728c22a711b5a9dd4dbaf82a60fb7e942a6f0db
parent  d18cb9899cf3aed0a89e3213dee7bc215b84566b
hellaphone / index.php
100644 18 lines (13 sloc) 0.474 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
 
define('ROOT_DIR', dirname(__FILE__));
define('DS', DIRECTORY_SEPARATOR);
 
require ROOT_DIR . DS . 'include' . DS . 'setup.php';
 
 
try {
if(empty($_REQUEST['c'])) $_REQUEST['c'] = 'newz';
 
$controller_name = Inflector::Classify($_REQUEST['c']) . '_Controller';
$controller_file = Inflector::underscore($_REQUEST['c']);
include CONTROLLER_DIR . DS . $controller_file . '_controller.php';
$controller = new $controller_name();
} catch (Exception $e) {
echo $e;
}