aboutsummaryrefslogtreecommitdiffstats
path: root/app.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2012-11-12 11:36:31 +0000
committerRomain d'Alverny <rda@mageia.org>2012-11-12 11:36:31 +0000
commitce07e3d3f4cd90bedd0107d8b4b1bf07d29d0afd (patch)
tree45a342e145c7559d88e3e9eac4405835fdce6364 /app.php
parent77a3e2e20abdb74dc1e872204edc1e0474bbab44 (diff)
downloadwww-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.php19
1 files changed, 11 insertions, 8 deletions
diff --git a/app.php b/app.php
index 5dc16a38a..86db0b9e4 100644
--- a/app.php
+++ b/app.php
@@ -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)
+);