'mysql', 'dbsyntax' => 'mysql', 'username' => SHADOW_USER, 'password' => SHADOW_PASS, 'hostspec' => SHADOW_HOST, 'database' => SHADOW_NAME, 'port' => SHADOW_PORT ); $this->connect($shadow_dsn); } else { $dsn = array ( 'phptype' => 'mysql', 'dbsyntax' => 'mysql', 'username' => DB_USER, 'password' => DB_PASS, 'hostspec' => DB_HOST, 'database' => DB_NAME, 'port' => DB_PORT ); $this->connect($dsn); } // Test connection; display "gone fishing" on failure. if (DB::isError($this->db)) { triggerError($this->error,'site-down.tpl'); } } } $db = new AMO_SQL(); // Setup the session for the secure pages $_auth = new AMO_Auth(); session_set_save_handler( array(&$_auth, "_openSession"), array(&$_auth, "_closeSession"), array(&$_auth, "_readSession"), array(&$_auth, "_writeSession"), array(&$_auth, "_destroySession"), array(&$_auth, "gcSession") ); ?>