registerNamespace('Base_'); $autoloader->registerNamespace('Modules_'); /** Config */ $config = new Zend_Config_Ini(APPLICATION_PATH . '/config/config.ini', APPLICATION_ENV); /** Database */ $db = Zend_Db::factory($config->database->adapter, $config->database->params->toArray()); Zend_Db_Table::setDefaultAdapter($db); Zend_Registry::set('db', $db); $host = $_SERVER['HTTP_HOST']; $auth = isset($_GET['b']) ? $_GET['b'] : false; // create the SQL script. we will only allow legacy products before new web rebuild. $sql = $db->quoteInto("SELECT id FROM client_products WHERE authcode = ? AND id <= 125641", $auth); $id = $db->fetchOne($sql); if (empty($id)) { header('HTTP/1.0 404 Not Found'); echo "