diff options
author | Romain d'Alverny <rda@mageia.org> | 2012-11-12 11:36:31 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2012-11-12 11:36:31 +0000 |
commit | ce07e3d3f4cd90bedd0107d8b4b1bf07d29d0afd (patch) | |
tree | 45a342e145c7559d88e3e9eac4405835fdce6364 /app.php | |
parent | 77a3e2e20abdb74dc1e872204edc1e0474bbab44 (diff) | |
download | www-ce07e3d3f4cd90bedd0107d8b4b1bf07d29d0afd.tar www-ce07e3d3f4cd90bedd0107d8b4b1bf07d29d0afd.tar.gz www-ce07e3d3f4cd90bedd0107d8b4b1bf07d29d0afd.tar.bz2 www-ce07e3d3f4cd90bedd0107d8b4b1bf07d29d0afd.tar.xz www-ce07e3d3f4cd90bedd0107d8b4b1bf07d29d0afd.zip |
reorg code, license headers
Diffstat (limited to 'app.php')
-rw-r--r-- | app.php | 19 |
1 files changed, 11 insertions, 8 deletions
@@ -22,16 +22,19 @@ * option) any later version. */ -require 'lib/Pinq/Controller.php'; -require 'lib/Pinq/App.php'; - -$pc = new Pinq_Controller(__DIR__, $_SERVER); -$pc->init(); - $routes = array( -// 'downloads' => 'MGA_Downloads' + //'downloads' => 'MGA_Downloads' ); -$pc->run($routes); +require 'lib/Pinq/Controller.php'; +require 'lib/Pinq/App.php'; +require 'lib/Pinq/Cache.php'; +$cache = new Pinq_Memcache_Cache(20); +Pinq_Controller::run( + __DIR__, + $routes, + $_SERVER, + new Pinq_Memcache_Cache(20) +); |