CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 header("WWW-Authenticate: Basic realm="test"");

Print topic Send  topic

Author Message
beshoo
Posted: 11/12/2002, 7:26 PM

i dont like the login page
i like to use the

header("WWW-Authenticate: Basic realm=\"test\"");
header("HTTP/1.0 401 Unauthorized");

in my cc site

so what can i do ?

george
Posted: 11/13/2002, 6:56 AM

Why dont you try modifying the CCSecurityRedirect Function to your needs?

//CCSecurityRedirect @0-AB361364
function CCSecurityRedirect($GroupsAccess, $URL, $ReturnPage, $QueryString){
$ErrorType = CCSecurityAccessCheck($GroupsAccess);
if($ErrorType != "success"){
if(!strlen($URL)){
$Link = "/login.php";
}else{
$Link = $URL;
if(strlen($QueryString) or session_is_registered('ChgPass')){
$ReturnPage .= "?" . $QueryString;
header("Location: " . $Link . "?ret_link=" . urlencode($ReturnPage) . "&type=" . $ErrorType);
exit;
}
}
}
}
//End CCSecurityRedirect



Change the header function to your desired header. You should test thouroghly though.
beshoo
Posted: 11/13/2002, 7:36 AM

thank you but m work on CC2.5
i tryed to do tht in the login pge
the messge box is open but when i put the user and pass it just say that the information ws bad:(
beshoo
Posted: 11/13/2002, 6:51 PM

????????

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.