This is a php script which goes to the database (Postgresql) and generate some statistics from the data. For more info see this snortdb page.
You can download it from the following link: https://packetstormsecurity.com/files/download/23595/pgsql_php3
Source: https://packetstormsecurity.com/files/23595/pgsql_php3.html