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 |
|
????????
|
|
|
 |
|