<?php
define('paos_version', '1.1');
define('user_agent', 'web-pa');
/* the database user name */
define('paos_DB_USER', 'dbuser');
/* the database password */
define('paos_DB_PASSWORD', 'dbpass');
/* the database host */
define('paos_DB_HOST', 'localhost');
/* the database tcp/ip port */
define('paos_DB_PORT', '3306');
/* the database name */
define('paos_DB_NAME', 'web-pa');
define('validator_w3c_url', "http://servername/w3c-validator/");
define('validator_hera_url', "http://servername/hera/");
define('PING_CMD', "/bin/ping -c 1");
define('WHOIS_CMD', "/usr/bin/whois");
$SPIDER_HOME = '/var/www/spider'; // NO final slash
define('base_log_path', "$SPIDER_HOME/log/");
define('base_log_file', "status_log_");
// Scanning options
$opts_whois = FALSE; // Do you want to get WHOIS info for each scanned site? TRUE or FALSE.
// DB Connection
$paos_db = @mysql_connect(paos_DB_HOST . ':' . paos_DB_PORT, paos_DB_USER, paos_DB_PASSWORD);
if (!$paos_db) {
echo 'Unable to connect to db.';
exit;
}
if (!mysql_select_db(paos_DB_NAME, $paos_db)) {
echo 'DB connection established, but database "'.paos_DB_NAME.'" cannot be selected.';
exit;
}
?>