Changeset 8217 for extensions/LCAS/trunk
- Timestamp:
- Dec 21, 2010, 9:12:13 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LCAS/trunk/include/functions.inc.php
r8207 r8217 5 5 6 6 7 /* 7 /** 8 8 * Splits a multi-byte string in a array of each of its characters. 9 9 * Many thanks to adjwilli in … … 25 25 26 26 27 28 /* 27 /** 29 28 * Changes the characters of the given string as stated by values of 30 29 * $conf['insensitive_case_logon'] and $LCAS_lang['char_replacement_set']. … … 727 726 } 728 727 728 729 729 /* Function called from LCAS_admin.php and main.inc.php to get the plugin version and name */ 730 730 function LCAS_PluginInfos($dir) … … 772 772 } 773 773 774 774 775 // Tri les doublons 775 776 function CompareTransformedUser($a, $b) … … 777 778 return strcmp($a['transformed'], $b['transformed']); 778 779 } 780 779 781 780 782 // Fonctionnel mais optimisable … … 806 808 } 807 809 808 /* Get all users to display the number of days since their last visit */ 810 811 /** 812 * Retreive duplicate users according of case and or accent sensitivity 813 * 814 * @param : $rule for LCAS_change_case()) 815 * 816 * @return : List of duplicate $username 817 * 818 */ 809 819 function LCAS_get_user_list($rule) 810 820 { … … 833 843 } 834 844 845 846 // Cleaning obsolete files at plugin upgrade 835 847 function LCAS_clean_obsolete_files() 836 848 { … … 850 862 } 851 863 } 864 852 865 853 866 /** … … 869 882 870 883 if (isset($username)) 871 { /* 872 $query = " 873 SELECT ".$conf['user_fields']['username']." 874 FROM ".USERS_TABLE." 875 WHERE LOWER(".$conf['user_fields']['username'].") = '".strtolower($username)."' 876 LIMIT 1;"; 877 878 list($username) = pwg_db_fetch_row(pwg_query($query)); */ 879 884 { 880 885 $LCAS_users = array(); 886 881 887 $q = pwg_query(" 882 888 SELECT ".$conf['user_fields']['username']." AS username … … 894 900 895 901 $username = ($user_found === false) ? $username : $user_found; 896 897 898 $fo=fopen (LCAS_PATH."admin/debuglog.txt","a") ;899 fwrite($fo,"======================LG\r\n") ;900 fwrite($fo,"u_d1 : ".$u_d1. "\r\n") ;901 fwrite($fo,"u_d2 : ".$u_d2. "\r\n") ;902 fwrite($fo,str_from_var3($LCAS_users). "\r\n") ;903 fwrite($fo,"user_found : ".$user_found. "\r\n") ;904 fwrite($fo,"username : ".$username. "\r\n") ;905 fwrite($fo,"rule : ".$rule. "\r\n") ;906 fclose($fo) ;907 902 908 903 return isset($username) ? $username : ''; … … 933 928 } 934 929 930 935 931 // DebugLog function 936 932 function DebugLog($var1, $var2, $var3, $var4, $var5)
Note: See TracChangeset
for help on using the changeset viewer.