Changeset 8206
- Timestamp:
- Dec 20, 2010, 9:17:45 PM (13 years ago)
- Location:
- extensions/LCAS/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LCAS/trunk/include/functions.inc.php
r8202 r8206 860 860 * 861 861 */ 862 /*function LCAS_SearchCaseUsername($username)862 function LCAS_SearchCaseUsername($username, $rule) 863 863 { 864 864 global $conf; 865 865 866 $username = LCAS_change_case($username, $rule); 867 866 868 if (isset($username)) 867 869 { … … 876 878 return isset($username) ? $username : ''; 877 879 } 878 } */880 } 879 881 880 882 -
extensions/LCAS/trunk/main.inc.php
r8203 r8206 63 63 if (isset($conf_LCAS[0]) and $conf_LCAS[0] == 'true' and isset($conf_LCAS[1]) and $conf_LCAS[1] == 'false') 64 64 { 65 // For testing only // $new_username = LCAS_SearchCaseUsername($_POST['username']); 66 $new_username = LCAS_change_case($_POST['username'], 1); 65 $new_username = LCAS_SearchCaseUsername($_POST['username'],1); 67 66 $_POST['username'] = $new_username == '' ? $_POST['username'] : $new_username; 68 67 } … … 71 70 if (isset($conf_LCAS[0]) and $conf_LCAS[0] == 'false' and isset($conf_LCAS[1]) and $conf_LCAS[1] == 'true') 72 71 { 73 $new_username = LCAS_ change_case($_POST['username'],2);72 $new_username = LCAS_SearchCaseUsername($_POST['username'],2); 74 73 $_POST['username'] = $new_username == '' ? $_POST['username'] : $new_username; 75 74 } … … 78 77 if (isset($conf_LCAS[1]) and $conf_LCAS[1] == 'true' and isset($conf_LCAS[0]) and $conf_LCAS[0] == 'true') 79 78 { 80 $new_username = LCAS_ change_case($_POST['username'],3);79 $new_username = LCAS_SearchCaseUsername($_POST['username'],3); 81 80 $_POST['username'] = $new_username == '' ? $_POST['username'] : $new_username; 82 81 }
Note: See TracChangeset
for help on using the changeset viewer.