MacPorts Portfiles
Our database is currently unavailable. We hope to have it back soon!
acceptable("application/xhtml+xml")) { $mime_type = "application/xhtml+xml"; } header("Content-Type: $mime_type; charset=$encoding"); include("header.inc"); print_warnings(); } ###################################################################### # Print some useful warnings: function print_warnings() { include("warnings.inc"); } ###################################################################### # Connect to the portsdb and gather miscellaneous information: function portsdb_connect($portsdb_host, $portsdb_user, $portsdb_passwd) { $script = basename($_SERVER['PHP_SELF']); $portsdb_connection = FALSE; if (function_exists('mysql_connect')) { $portsdb_connection = mysql_connect($portsdb_host, $portsdb_user, $portsdb_passwd); } if ($portsdb_connection === FALSE) { switch ($script) { case "index.php": $portsdb_info = array( 'connection_handler' => FALSE, 'num_ports' => 'a lot of', 'num_categories' => 'many' ); break; case "ports.php": print_header("The MacPorts Project", "utf-8"); print '
Our database is currently unavailable. We hope to have it back soon!