Changeset 636
- Timestamp:
- 04/13/08 13:17:52 (7 months ago)
- Files:
-
- branches/1.3/A2BCustomer_UI/forgotpassword.php (modified) (1 diff)
- branches/1.3/A2BCustomer_UI/lib/defines.php (modified) (1 diff)
- branches/1.3/A2BCustomer_UI/lib/module.access.php (modified) (3 diffs)
- branches/1.3/A2BCustomer_UI/templates_c (modified) (1 prop)
- branches/1.3/a2billing.conf (modified) (1 diff)
- branches/1.3/A2Billing_UI/templates_c (modified) (1 prop)
- branches/1.3/addons/Doc/login-forgetpassword-page.info (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.3/A2BCustomer_UI/forgotpassword.php
r2 r636 88 88 { 89 89 $error = 3; 90 } 91 92 if(strlen(RETURN_URL_DISTANT_FORGETPASSWORD)>1 && $show_message){ 93 Header ("Location: $URL_CALLBACK_FORGETPASSWORD?error=$error"); 94 die(); 90 95 } 91 96 branches/1.3/A2BCustomer_UI/lib/defines.php
r621 r636 103 103 define ("SIGNUP_LINK", isset($A2B->config["webcustomerui"]['signup_page_url'])?$A2B->config["webcustomerui"]['signup_page_url']:null); 104 104 define ("ACTIVATEDBYUSER", isset($A2B->config["signup"]['activatedbyuser'])?$A2B->config["signup"]['activatedbyuser']:null); 105 define ("RETURN_URL_DISTANT_LOGIN", isset($A2B->config["webcustomerui"]['return_url_distant_login'])?$A2B->config["webcustomerui"]['return_url_distant_login']:null); 106 define ("RETURN_URL_DISTANT_FORGETPASSWORD", isset($A2B->config["webcustomerui"]['return_url_distant_forgetpassword'])?$A2B->config["webcustomerui"]['return_url_distant_forgetpassword']:null); 105 107 106 108 branches/1.3/A2BCustomer_UI/lib/module.access.php
r1 r636 27 27 28 28 29 if(strlen(RETURN_URL_DISTANT_LOGIN)>1) 30 $C_RETURN_URL_DISTANT_LOGIN = RETURN_URL_DISTANT_LOGIN; 31 else 32 $C_RETURN_URL_DISTANT_LOGIN = 'index.php'; 33 29 34 if (isset($_GET["logout"]) && $_GET["logout"]=="true") { 30 35 session_destroy(); 31 36 $cus_rights=0; 32 37 Header ("HTTP/1.0 401 Unauthorized"); 33 Header ("Location: index.php");38 Header ("Location: $C_RETURN_URL_DISTANT_LOGIN"); 34 39 die(); 35 40 } … … 46 51 return $data; 47 52 } 53 54 48 55 49 56 if ((!session_is_registered('pr_login') || !session_is_registered('pr_password') || !session_is_registered('cus_rights') || (isset($_POST["done"]) && $_POST["done"]=="submit_log") )){ … … 69 76 if(is_int($return)) 70 77 { 71 if($return == -1) 72 { 73 Header ("Location: index.php?error=3"); 78 if($return == -1) { 79 Header ("Location: $C_RETURN_URL_DISTANT_LOGIN?error=3"); 80 } else { 81 Header ("Location: $C_RETURN_URL_DISTANT_LOGIN?error=2"); 74 82 } 75 else 76 { 77 Header ("Location: index.php?error=2"); 78 } 79 } 80 else 81 { 82 Header ("Location: index.php?error=1"); 83 } else { 84 Header ("Location: $C_RETURN_URL_DISTANT_LOGIN?error=1"); 83 85 } 84 86 die(); branches/1.3/A2BCustomer_UI/templates_c
- Property svn:ignore set to
*.tpl.php
- Property svn:ignore set to
branches/1.3/a2billing.conf
r632 r636 163 163 ; Email address to send the notification and error report - new DIDs assigned will also be emailed. 164 164 error_email = root@localhost 165 166 ; URL for specific return if an error occur after login 167 return_url_distant_login = 168 169 ; URL for specific return if an error occur after forgetpassword 170 return_url_distant_forgetpassword = 171 165 172 166 173 ;SIP & IAX client configuration information. branches/1.3/A2Billing_UI/templates_c
- Property svn:ignore set to
*.tpl.php
- Property svn:ignore set to
