$server) {
if (array_key_exists("description", $server) && array_key_exists("connstr", $server)) {
// Get the image if there is one
if (array_key_exists("icon", $server) && $server["icon"] != "")
$icon = "";
// Connect the database
$db = @pg_connect($server["connstr"]);
// Can we connect?
if ($db === false) {
$svrlist .= "
";
}
}
pg_free_result($res);
}
$svrcount++;
}
}
if ($svrlist == "")
www_error("No servers configured", "No configured servers could be found. Please edit the config.php file.");
// Set the message for the top of the page
$message = "Servers: $svrcount configured";
// Echo the main HTML body. Everything else is loaded a snippet at a time, via AJAX
$text = <<$APP_NAME v$APP_VERSION