tags pointing to $domain. **/ function print_array_as_links($matches, $domain) { foreach($matches as $match) { print "$match
\n"; } } function enforce_httpauth_user_pass($auth_user, $auth_password) { if (!isset($_SERVER['PHP_AUTH_USER']) || $_SERVER['PHP_AUTH_USER'] != $auth_user || $_SERVER['PHP_AUTH_PW'] != $auth_password ){ header("WWW-Authenticate: Basic realm=\"Secure Realm\""); header("HTTP/1.0 401 Unauthorized"); echo "Provide username + password please"; exit; } }