<?php
/*
Plugin Name: WP Custom Login Logo
Plugin URI: http://antoniocampos.no-ip.com/2009/02/26/wordpress-login-form-image/
Description: Change the login screen logo.
Author: Antonio Campos
Version: 1.0
Author URI: http://antoniocampos.no-ip.com

 Copyright 2008  Antonio Campos  (email : jantoniofcampos@sapo.pt)

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/
function wp_custom_login_css() {	
	$cssPath = get_bloginfo('url')."/wp-content/plugins/wp-costum-login-logo/wp-custom-login-logo.css";
	echo "<link rel=\"stylesheet\" href=\"" . $cssPath	. "\" type=\"text/css\" />";
}

function change_wp_login_url() {
    echo bloginfo('url');
}

add_action('login_head', 'wp_custom_login_css');
add_filter('login_headerurl', 'change_wp_login_url');
?>