Changeset 8202
- Timestamp:
- Dec 20, 2010, 6:11:52 PM (14 years ago)
- Location:
- extensions/LCAS/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LCAS/trunk/include/functions.inc.php
r8201 r8202 852 852 853 853 /** 854 * Function called from main.inc.php - Returns username if existing lowercase username in database 854 * Function called from main.inc.php - For test on username case sensitivity 855 * Have to be deleted before first release build 855 856 * 856 857 * @param : $username typed in by user for identification … … 859 860 * 860 861 */ 861 function LCAS_SearchUsername($username)862 /*function LCAS_SearchCaseUsername($username) 862 863 { 863 864 global $conf; … … 875 876 return isset($username) ? $username : ''; 876 877 } 877 } 878 }*/ 878 879 879 880 -
extensions/LCAS/trunk/main.inc.php
r8201 r8202 63 63 if (isset($conf_LCAS[0]) and $conf_LCAS[0] == 'true') 64 64 { 65 $new_username = LCAS_SearchUsername($_POST['username']); 65 // For testing only // $new_username = LCAS_SearchCaseUsername($_POST['username']); 66 $new_username = LCAS_change_case($_POST['username'], 1); 67 $_POST['username'] = $new_username == '' ? $_POST['username'] : $new_username; 68 } 69 70 /* User non accent sensitive */ 71 if (isset($conf_LCAS[1]) and $conf_LCAS[1] == 'true') 72 { 73 $new_username = LCAS_change_case($_POST['username'], 2); 66 74 $_POST['username'] = $new_username == '' ? $_POST['username'] : $new_username; 67 75 }
Note: See TracChangeset
for help on using the changeset viewer.