I downloaded NGS1.2 version, but it did not work on my 2.2 version.

I added following lines instead of application_top/bottom.php

define('SEARCH_ENGINE_FRIENDLY_URLS', 'false');
require('includes/configure.php');
require(DIR_WS_INCLUDES . 'filenames.php');
require(DIR_WS_INCLUDES . 'database_tables.php');
require(DIR_WS_FUNCTIONS . 'database.php');
tep_db_connect() or die('Unable to connect to database server!');
require(DIR_WS_FUNCTIONS . 'general.php');
require(DIR_WS_FUNCTIONS . 'html_output.php');


More...