| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- /**
- * @author Open Mind
- * @date 09/04/2018
- * @time 11:33
- */
- //error_reporting(E_ALL);
- require_once 'lib/f3/base.php';
- $f3 = \Base::instance();
- $f3->set("AUTOLOAD", 'src/');
- $config = new \OpenMind\Utils\Configuration();
- \OpenMind\Utils\OMUtils::getInstance()->LoadEncryptedConfig('config.bin');
- $f3->config('labels.ini', true);
- $f3->set('DB',
- new \DB\SQL(
- $f3->get('DBSETTINGS'),
- $f3->get('dbuser'),
- $f3->get('dbpass'),
- array(\PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION, \PDO::ATTR_PERSISTENT => TRUE))
- );
- $d = new \Customers\Lamborghini\Distinta($f3);
- // Pages
- $f3->route('GET /', "Customers\Lamborghini\Pages->Login", $f3->get('CACHE_TTL'));
- $f3->route('GET /homemenu', "Customers\Lamborghini\Pages->HomeMenu", $f3->get('CACHE_TTL'));
- $f3->route('GET|POST /pick2light/@step', "Customers\Lamborghini\Pages->Pick2Light", $f3->get('CACHE_TTL'));
- $f3->route("GET|POST /bind/@step", 'Customers\Lamborghini\Pages->Bind', $f3->get('CACHE_TTL'));
- $f3->route("GET|POST /unbind/@step", 'Customers\Lamborghini\Pages->UnBind', $f3->get('CACHE_TTL'));
- $f3->route('GET /elencodistinta', "Customers\Lamborghini\Pages->ElencoDistinta", $f3->get('CACHE_TTL'));
- // Services
- $f3->route("POST /login", 'OpenMind\Web\BaseController\BaseController->Login');
- $f3->route("GET /logout", 'OpenMind\Web\BaseController\BaseController->Logout');
- $f3->run();
|