|
@@ -13,10 +13,18 @@ $f3 = \Base::instance();
|
|
|
|
|
|
|
|
$f3->config('config.ini', true);
|
|
$f3->config('config.ini', true);
|
|
|
|
|
|
|
|
|
|
+$f3->set('DB',
|
|
|
|
|
+ new \DB\SQL(
|
|
|
|
|
+ $f3->get('DB'),
|
|
|
|
|
+ $f3->get('dbuser'),
|
|
|
|
|
+ $f3->get('dbpass'),
|
|
|
|
|
+ array(\PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION, \PDO::ATTR_PERSISTENT => TRUE))
|
|
|
|
|
+);
|
|
|
|
|
+
|
|
|
// Pages
|
|
// Pages
|
|
|
$f3->route('GET /', "Modules\Pages->Login", $f3->get('CACHE_TTL'));
|
|
$f3->route('GET /', "Modules\Pages->Login", $f3->get('CACHE_TTL'));
|
|
|
$f3->route('GET /homemenu', "Modules\Pages->HomeMenu", $f3->get('CACHE_TTL'));
|
|
$f3->route('GET /homemenu', "Modules\Pages->HomeMenu", $f3->get('CACHE_TTL'));
|
|
|
-$f3->route('GET|POST /pick2light', "Modules\Pages->Pick2Light", $f3->get('CACHE_TTL'));
|
|
|
|
|
|
|
+$f3->route('GET|POST /pick2light/@step', "Modules\Pages->Pick2Light", $f3->get('CACHE_TTL'));
|
|
|
$f3->route("GET|POST /bind/@step", 'Modules\Pages->Bind', $f3->get('CACHE_TTL'));
|
|
$f3->route("GET|POST /bind/@step", 'Modules\Pages->Bind', $f3->get('CACHE_TTL'));
|
|
|
$f3->route('GET /elencodistinta', "Modules\Pages->ElencoDistinta", $f3->get('CACHE_TTL'));
|
|
$f3->route('GET /elencodistinta', "Modules\Pages->ElencoDistinta", $f3->get('CACHE_TTL'));
|
|
|
|
|
|