config('config.ini', true); $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)) ); //// TODO: per testare le api //$CORE_SETTINGS = $f3->get('CORE.fb'); //$findBoxCore = new \FindBoxCoreSystem(...array_values($CORE_SETTINGS)); //$label = new \SmartESL($findBoxCore, ['01076733']); //$label->Display(1004, '1111'); //sleep(1); //$label->BlinkSpecial(0, 1, 1000, 20, 0); //sleep(1); //$label->BlinkOff(); // //$f3->set('USERID', 0); //$CORE_SETTINGS = $f3->get('CORE.fb'); //$findBoxCore = new \FindBoxCoreSystem(...array_values($CORE_SETTINGS)); //$label = new \SmartESL($findBoxCore, ['010A19ED']); //$label->BlinkSpecial(0, 1, 1000, 20, 0); //$distinta = new \Distinta($f3); //$ret = $distinta->SaveProductsForLabel7('010A19ED', '81891252'); //$ret = $label->Display(1017, '010A19ED'); // // // Pages $f3->route('GET /', "Modules\Pages->Login", $f3->get('CACHE_TTL')); $f3->route('GET /homemenu', "Modules\Pages->HomeMenu", $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 /elencodistinta', "Modules\Pages->ElencoDistinta", $f3->get('CACHE_TTL')); // Services $f3->route("POST /login", 'Modules\BaseController->Login'); $f3->route("GET /logout", 'Modules\BaseController->Logout'); $f3->run();