Changeset 17885
- Timestamp:
- Sep 13, 2012, 5:27:38 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserAdvManager/trunk/include/functions.inc.php
r17884 r17885 68 68 69 69 $userid = get_userid($user['username']); 70 70 71 71 // Looking for existing entry in last visit table 72 72 // ---------------------------------------------- … … 518 518 { 519 519 if (count($collection) > 0) 520 520 { 521 521 // Process if a non-admin nor webmaster user is logged 522 522 // --------------------------------------------------- 523 523 if (in_array($user['id'], $collection)) 524 524 { 525 525 // Check lastvisit reminder state 526 526 // ------------------------------ … … 555 555 redirect(UAM_PATH.'GT_del_account.php'); 556 556 } 557 557 } 558 558 else // Process if an admin or webmaster user is logged 559 559 { … … 586 586 list($dbnow) = pwg_db_fetch_row(pwg_query('SELECT NOW();')); 587 587 588 588 $query = " 589 589 UPDATE ".USER_LASTVISIT_TABLE." 590 590 SET lastvisit='".$dbnow."' … … 660 660 // Reset confirmed user status to unvalidated 661 661 // ------------------------------------------ 662 662 $query = ' 663 663 UPDATE '.USER_CONFIRM_MAIL_TABLE.' 664 664 SET date_check = NULL 665 665 WHERE user_id = "'.$user_id.'" 666 666 ;'; 667 667 pwg_query($query); 668 668 669 669 // Get users information for email notification 670 670 // -------------------------------------------- 671 671 $query = ' 672 672 SELECT id, username, mail_address 673 673 FROM '.USERS_TABLE.' 674 674 WHERE id = '.$user_id.' 675 675 ;'; 676 676 $data = pwg_db_fetch_assoc(pwg_query($query)); 677 677 678 678 demotion_mail($user_id, $data['username'], $data['mail_address']); … … 726 726 { 727 727 if (count($collection) > 0) 728 728 { 729 729 // Process if a non-admin nor webmaster user is logged 730 730 // --------------------------------------------------- 731 731 if (in_array($user['id'], $collection)) 732 732 { 733 733 // Check ConfirmMail reminder state 734 734 // -------------------------------- … … 753 753 if (!$reminder and isset($conf_UAM[32]) and $conf_UAM[32] == 'true') 754 754 { 755 755 $typemail = 1; 756 756 757 757 // Get current user informations … … 780 780 redirect(UAM_PATH.'USR_del_account.php'); 781 781 } 782 782 } 783 783 else // Process if an admin or webmaster user is logged 784 784 { … … 908 908 $conf_UAM = unserialize($conf['UserAdvManager']); 909 909 910 911 912 910 include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php'); 911 912 $infos1_perso = ""; 913 913 $infos2_perso = ""; 914 914 $subject = ""; … … 1149 1149 $conf_UAM_ConfirmMail = unserialize($conf['UserAdvManager_ConfirmMail']); 1150 1150 1151 1151 include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php'); 1152 1152 1153 1153 // We have to get the user's language in database … … 1207 1207 $infos1 = get_user_language_desc(preg_replace($patterns, $replacements, $conf_UAM_ConfirmMail[2]))."\n\n"; 1208 1208 } 1209 1209 else $infos1 = l10n(preg_replace($patterns, $replacements, $conf_UAM_ConfirmMail[2]))."\n\n"; 1210 1210 1211 1211 $infos2 = array … … 1214 1214 get_l10n_args('', ''), 1215 1215 ); 1216 1216 } 1217 1217 1218 1218 // Set reminder true … … 1225 1225 pwg_query($query); 1226 1226 1227 1227 break; 1228 1228 1229 1229 case 2: //Generating email content for remind without a new key … … 1278 1278 1279 1279 break; 1280 1280 } 1281 1281 1282 1282 pwg_mail($email, array( … … 1304 1304 $subject = ""; 1305 1305 1306 1306 include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php'); 1307 1307 1308 1308 // We have to get the user's language in database … … 1386 1386 $conf_UAM = unserialize($conf['UserAdvManager']); 1387 1387 1388 1389 1390 1388 include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php'); 1389 1390 $custom_txt = ""; 1391 1391 $subject = ""; 1392 1392 … … 1491 1491 $conf_UAM = unserialize($conf['UserAdvManager']); 1492 1492 1493 1494 1495 1493 include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php'); 1494 1495 $custom_txt = ""; 1496 1496 $subject = ""; 1497 1497 … … 1783 1783 pwg_query($query); 1784 1784 1785 1785 $query = " 1786 1786 UPDATE ".USER_INFOS_TABLE." 1787 1787 SET registration_date = '".$dbnow."' 1788 1788 WHERE user_id = '".$user_id."' 1789 1789 ;"; 1790 1790 pwg_query($query); 1791 1791 1792 1792 return get_absolute_root_url().UAM_PATH.'ConfirmMail.php?key='.$Confirm_Mail_ID.'&userid='.$user_id; … … 1922 1922 if (!empty($registration_date)) 1923 1923 { 1924 1924 // Verify Confirmmail with time limit ON 1925 1925 // ------------------------------------- 1926 1927 1928 1926 if (isset ($conf_UAM_ConfirmMail[1])) 1927 { 1928 // Dates formating and compare 1929 1929 // --------------------------- 1930 1931 list($day, $month, $year) = explode('-', $today); // explode date of today1932 1933 1934 1935 1936 1937 1938 $deltasecs = $daytimestamp - $regtimestamp;// Compare the 2 UNIX timestamps 1939 1940 1941 1930 $today = date("d-m-Y"); // Get today's date 1931 list($day, $month, $year) = explode('-', $today); // explode date of today 1932 $daytimestamp = mktime(0, 0, 0, $month, $day, $year);// Generate UNIX timestamp 1933 1934 list($regdate, $regtime) = explode(' ', $registration_date); // Explode date and time from registration date 1935 list($regyear, $regmonth, $regday) = explode('-', $regdate); // Explode date from registration date 1936 $regtimestamp = mktime(0, 0, 0, $regmonth, $regday, $regyear);// Generate UNIX timestamp 1937 1938 $deltasecs = $daytimestamp - $regtimestamp;// Compare the 2 UNIX timestamps 1939 $deltadays = floor($deltasecs / 86400);// Convert result from seconds to days 1940 1941 // Condition with the value set for time limit 1942 1942 // ------------------------------------------- 1943 1944 1945 1943 if ($deltadays <= $conf_UAM_ConfirmMail[1]) // If Nb of days is less than the limit set 1944 { 1945 list($dbnow) = pwg_db_fetch_row(pwg_query('SELECT NOW();')); 1946 1946 1947 1947 // Update ConfirmMail table 1948 1948 // ------------------------ 1949 1949 $query = ' 1950 1950 UPDATE '.USER_CONFIRM_MAIL_TABLE.' 1951 1951 SET date_check="'.$dbnow.'", reminder="false" 1952 1952 WHERE id = "'.$id.'" 1953 1953 ;'; 1954 1954 pwg_query($query); 1955 1955 1956 1956 // Update LastVisit table - Force reminder field to false 1957 1957 // Usefull when a user has been automatically downgraded and revalidate its registration 1958 1958 // ------------------------------------------------------------------------------------- 1959 1959 $query = ' 1960 1960 UPDATE '.USER_LASTVISIT_TABLE.' 1961 1961 SET reminder="false" 1962 1962 WHERE user_id = "'.$data['user_id'].'" 1963 1963 ;'; 1964 1964 pwg_query($query); 1965 1965 1966 1967 1968 1966 if ($conf_UAM[2] <> -1) // Delete user from unvalidated users group 1967 { 1968 $query = " 1969 1969 DELETE FROM ".USER_GROUP_TABLE." 1970 1970 WHERE user_id = '".$data['user_id']."' 1971 1971 AND group_id = '".$conf_UAM[2]."' 1972 1972 ;"; 1973 1974 1975 1976 1977 1978 1973 pwg_query($query); 1974 } 1975 1976 if ($conf_UAM[3] <> -1) // Add user to validated users group 1977 { 1978 $query = " 1979 1979 INSERT INTO ".USER_GROUP_TABLE." 1980 1980 (user_id, group_id) … … 1982 1982 ('".$data['user_id']."', '".$conf_UAM[3]."') 1983 1983 ;"; 1984 1985 1986 1987 1988 1989 1984 pwg_query($query); 1985 } 1986 1987 if (($conf_UAM[4] <> -1 or isset($data['status']))) // Change user's status 1988 { 1989 $query = " 1990 1990 UPDATE ".USER_INFOS_TABLE." 1991 1991 SET status = '".(isset($data['status']) ? $data['status'] : $conf_UAM[4])."' 1992 1992 WHERE user_id = '".$data['user_id']."' 1993 1993 ;"; 1994 1995 1996 1997 1998 1999 1994 pwg_query($query); 1995 } 1996 1997 if (($conf_UAM[36] <> -1 or isset($data['level']))) // Change user's privacy level 1998 { 1999 $query = " 2000 2000 UPDATE ".USER_INFOS_TABLE." 2001 2001 SET level = '".(isset($data['level']) ? $data['level'] : $conf_UAM[36])."' 2002 2002 WHERE user_id = '".$data['user_id']."' 2003 2003 ;"; 2004 2005 2006 2007 2004 pwg_query($query); 2005 } 2006 2007 // Refresh user's category cache 2008 2008 // ----------------------------- 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2009 invalidate_user_cache(); 2010 2011 return true; 2012 } 2013 elseif ($deltadays > $conf_UAM_ConfirmMail[1]) // If timelimit exeeds 2014 { 2015 return false; 2016 } 2017 } 2018 // Verify Confirmmail with time limit OFF 2019 2019 // -------------------------------------- 2020 2021 2022 2020 else 2021 { 2022 list($dbnow) = pwg_db_fetch_row(pwg_query('SELECT NOW();')); 2023 2023 2024 2024 // Update ConfirmMail table 2025 2025 // ------------------------ 2026 2026 $query = ' 2027 2027 UPDATE '.USER_CONFIRM_MAIL_TABLE.' 2028 2028 SET date_check="'.$dbnow.'" 2029 2029 WHERE id = "'.$id.'" 2030 2030 ;'; 2031 2031 pwg_query($query); 2032 2032 2033 2033 // Update LastVisit table - Force reminder field to false 2034 2034 // Usefull when a user has been automatically downgraded and revalidate its registration 2035 2035 // ------------------------------------------------------------------------------------- 2036 2036 $query = ' 2037 2037 UPDATE '.USER_LASTVISIT_TABLE.' 2038 2038 SET reminder="false" … … 2041 2041 pwg_query($query); 2042 2042 2043 2044 2045 2043 if ($conf_UAM[2] <> -1) // Delete user from unvalidated users group 2044 { 2045 $query = " 2046 2046 DELETE FROM ".USER_GROUP_TABLE." 2047 2047 WHERE user_id = '".$data['user_id']."' 2048 2048 AND group_id = '".$conf_UAM[2]."' 2049 2049 ;"; 2050 2051 2050 pwg_query($query); 2051 } 2052 2052 2053 2054 2055 2053 if ($conf_UAM[3] <> -1) 2054 { 2055 $query = " 2056 2056 DELETE FROM ".USER_GROUP_TABLE." 2057 2057 WHERE user_id = '".$data['user_id']."' 2058 2058 AND group_id = '".$conf_UAM[3]."' 2059 2059 ;"; 2060 2061 2062 2060 pwg_query($query); 2061 2062 $query = " 2063 2063 INSERT INTO ".USER_GROUP_TABLE." 2064 2064 (user_id, group_id) … … 2066 2066 ('".$data['user_id']."', '".$conf_UAM[3]."') 2067 2067 ;"; 2068 2069 2070 2071 2072 2073 2068 pwg_query($query); 2069 } 2070 2071 if (($conf_UAM[4] <> -1 or isset($data['status']))) // Change user's status 2072 { 2073 $query = " 2074 2074 UPDATE ".USER_INFOS_TABLE." 2075 2075 SET status = '".(isset($data['status']) ? $data['status'] : $conf_UAM[4])."' 2076 2076 WHERE user_id = '".$data['user_id']."' 2077 2077 ;"; 2078 2079 2080 2081 2082 2083 2078 pwg_query($query); 2079 } 2080 2081 if (($conf_UAM[36] <> -1 or isset($data['level']))) // Change user's privacy level 2082 { 2083 $query = " 2084 2084 UPDATE ".USER_INFOS_TABLE." 2085 2085 SET level = '".(isset($data['level']) ? $data['level'] : $conf_UAM[36])."' 2086 2086 WHERE user_id = '".$data['user_id']."' 2087 2087 ;"; 2088 2089 2090 2091 2088 pwg_query($query); 2089 } 2090 2091 // Refresh user's category cache 2092 2092 // ----------------------------- 2093 2094 2095 2096 2097 2098 2093 invalidate_user_cache(); 2094 2095 return true; 2096 } 2097 } 2098 } 2099 2099 else if (!empty($data) and !is_null($data['date_check'])) 2100 2100 { 2101 2101 return false; 2102 2102 } 2103 2103 } 2104 2104 else 2105 2105 return false; … … 2123 2123 list($dbnow) = pwg_db_fetch_row(pwg_query('SELECT NOW();')); 2124 2124 2125 2125 $query = " 2126 2126 UPDATE ".USER_CONFIRM_MAIL_TABLE." 2127 2127 SET date_check='".$dbnow."' … … 2132 2132 2133 2133 if ($conf_UAM[2] <> -1) // Delete user from waiting group 2134 2134 { 2135 2135 $query = " 2136 2136 DELETE FROM ".USER_GROUP_TABLE." … … 2138 2138 AND group_id = '".$conf_UAM[2]."' 2139 2139 ;"; 2140 2141 } 2142 2143 2144 2140 pwg_query($query); 2141 } 2142 2143 if ($conf_UAM[3] <> -1) // Set user's valid group 2144 { 2145 2145 $query = " 2146 2146 DELETE FROM ".USER_GROUP_TABLE." … … 2149 2149 ;"; 2150 2150 pwg_query($query); 2151 2152 2151 2152 $query = " 2153 2153 INSERT INTO ".USER_GROUP_TABLE." 2154 2154 (user_id, group_id) … … 2156 2156 ('".$id."', '".$conf_UAM[3]."') 2157 2157 ;"; 2158 2159 } 2160 2161 2162 2158 pwg_query($query); 2159 } 2160 2161 if ($conf_UAM[4] <> -1) // Set user's valid status 2162 { 2163 2163 $query = " 2164 2164 UPDATE ".USER_INFOS_TABLE." … … 2166 2166 WHERE user_id = '".$id."' 2167 2167 ;"; 2168 2169 } 2170 2171 2172 2168 pwg_query($query); 2169 } 2170 2171 if ($conf_UAM[36] <> -1) // Set user's valid privacy level 2172 { 2173 2173 $query = " 2174 2174 UPDATE ".USER_INFOS_TABLE." … … 2176 2176 WHERE user_id = '".$id."' 2177 2177 ;"; 2178 2178 pwg_query($query); 2179 2179 } 2180 2180 } … … 2229 2229 $conf_UAM = unserialize($conf['UserAdvManager']); 2230 2230 2231 2232 2233 2234 2235 2236 2237 2238 { 2239 2240 } 2241 2242 2231 if (isset($email) and isset($conf_UAM[11]) and $conf_UAM[11] <> '') 2232 { 2233 $conf_MailExclusion = preg_split("/[\s,]+/",$conf_UAM[11]); 2234 for ($i = 0 ; $i < count($conf_MailExclusion) ; $i++) 2235 { 2236 $pattern = '/'.$conf_MailExclusion[$i].'/i'; 2237 if (preg_match($pattern, $email)) 2238 { 2239 return true; 2240 } 2241 } 2242 } 2243 2243 else 2244 2244 { … … 2256 2256 function get_unvalid_user_list() 2257 2257 { 2258 2258 global $conf, $page; 2259 2259 2260 2260 // Get ConfirmMail configuration 2261 2261 // ----------------------------- 2262 2262 $conf_UAM_ConfirmMail = unserialize($conf['UserAdvManager_ConfirmMail']); … … 2267 2267 $users = array(); 2268 2268 2269 2269 // Search users depending expiration date 2270 2270 // -------------------------------------- 2271 2271 $query = ' … … 2286 2286 OR TO_DAYS(NOW()) - TO_DAYS(ui.registration_date) < "'.$conf_UAM_ConfirmMail[1].'")'; 2287 2287 2288 2288 if ($conf_UAM[2] <> '-1' and $conf_UAM[7] == '-1') 2289 2289 { 2290 2290 $query.= ' … … 2305 2305 ;'; 2306 2306 2307 2307 $result = pwg_query($query); 2308 2308 2309 2309 while ($row = pwg_db_fetch_assoc($result)) 2310 2310 { 2311 2311 $user = $row; 2312 2312 $user['groups'] = array(); 2313 2313 2314 2314 array_push($users, $user); 2315 2316 2317 2315 } 2316 2317 // Add groups list 2318 2318 // --------------- 2319 2319 $user_ids = array(); 2320 2320 foreach ($users as $i => $user) 2321 2321 { 2322 2323 2324 2325 2322 $user_ids[$i] = $user['id']; 2323 } 2324 2325 $user_nums = array_flip($user_ids); 2326 2326 2327 2327 if (count($user_ids) > 0) 2328 2328 { 2329 2329 $query = ' 2330 2330 SELECT user_id, group_id 2331 2331 FROM '.USER_GROUP_TABLE.' … … 2333 2333 ;'; 2334 2334 2335 2335 $result = pwg_query($query); 2336 2336 2337 2337 while ($row = pwg_db_fetch_assoc($result)) 2338 2338 { 2339 2340 2339 array_push( 2340 $users[$user_nums[$row['user_id']]]['groups'], 2341 2341 $row['group_id'] 2342 2343 2344 2345 2346 2342 ); 2343 } 2344 } 2345 2346 return $users; 2347 2347 } 2348 2348 … … 2357 2357 function get_unvalid_user_autotasks() 2358 2358 { 2359 2359 global $conf, $page; 2360 2360 2361 2361 // Get ConfirmMail configuration 2362 2362 // ----------------------------- 2363 2363 $conf_UAM_ConfirmMail = unserialize($conf['UserAdvManager_ConfirmMail']); … … 2365 2365 $users = array(); 2366 2366 2367 2367 // search users depending expiration date 2368 2368 // -------------------------------------- 2369 2369 $query = ' … … 2377 2377 ORDER BY ui.registration_date ASC;'; 2378 2378 2379 2379 $result = pwg_query($query); 2380 2380 2381 2381 while ($row = pwg_db_fetch_assoc($result)) 2382 2382 { 2383 2383 array_push($users, $row); 2384 2385 2386 2384 } 2385 2386 return $users; 2387 2387 } 2388 2388 … … 2396 2396 function get_ghost_user_list() 2397 2397 { 2398 2398 global $conf, $page; 2399 2399 2400 2400 $conf_UAM = unserialize($conf['UserAdvManager']); … … 2402 2402 $users = array(); 2403 2403 2404 2404 // Search users depending expiration date 2405 2405 // -------------------------------------- 2406 2406 $query = ' … … 2416 2416 ORDER BY lv.lastvisit ASC;'; 2417 2417 2418 2418 $result = pwg_query($query); 2419 2419 2420 2420 while ($row = pwg_db_fetch_assoc($result)) 2421 2421 { 2422 2422 $user = $row; 2423 2423 $user['groups'] = array(); 2424 2424 2425 2425 array_push($users, $user); 2426 2427 2428 2426 } 2427 2428 // Add groups list 2429 2429 // --------------- 2430 2430 $user_ids = array(); 2431 2431 foreach ($users as $i => $user) 2432 2432 { 2433 2434 2435 2436 2433 $user_ids[$i] = $user['id']; 2434 } 2435 2436 return $users; 2437 2437 } 2438 2438 … … 2446 2446 function get_ghosts_autotasks() 2447 2447 { 2448 2448 global $conf, $page; 2449 2449 2450 2450 $conf_UAM = unserialize($conf['UserAdvManager']); … … 2452 2452 $users = array(); 2453 2453 2454 2454 // Search users depending expiration date and reminder sent 2455 2455 // -------------------------------------------------------- 2456 2456 $query = ' … … 2463 2463 ORDER BY lv.lastvisit ASC;'; 2464 2464 2465 2465 $result = pwg_query($query); 2466 2466 2467 2467 while ($row = pwg_db_fetch_assoc($result)) 2468 2468 { 2469 2469 array_push($users, $row); 2470 2471 2472 2470 } 2471 2472 return $users; 2473 2473 } 2474 2474 … … 2482 2482 function get_user_list() 2483 2483 { 2484 2484 global $conf, $page; 2485 2485 2486 2486 $users = array(); 2487 2487 2488 2488 // Search users depending expiration date with exclusion of Adult_Content generic users 2489 2489 // ------------------------------------------------------------------------------------ 2490 2490 $query = ' … … 2502 2502 ;'; 2503 2503 2504 2504 $result = pwg_query($query); 2505 2505 2506 2506 while ($row = pwg_db_fetch_assoc($result)) 2507 2507 { 2508 2508 $user = $row; 2509 2509 $user['groups'] = array(); 2510 2510 2511 2511 array_push($users, $user); 2512 2513 2514 2512 } 2513 2514 // Add groups list 2515 2515 // --------------- 2516 2516 $user_ids = array(); 2517 2517 foreach ($users as $i => $user) 2518 2518 { 2519 2520 2521 2522 2519 $user_ids[$i] = $user['id']; 2520 } 2521 2522 return $users; 2523 2523 } 2524 2524 … … 2534 2534 function expiration($id) 2535 2535 { 2536 2536 global $conf, $page; 2537 2537 2538 2538 // Get ConfirmMail configuration 2539 2539 // ----------------------------- 2540 2540 $conf_UAM_ConfirmMail = unserialize($conf['UserAdvManager_ConfirmMail']); 2541 2541 2542 2542 // Get UAM configuration 2543 2543 // --------------------- 2544 2544 $conf_UAM = unserialize($conf['UserAdvManager']); 2545 2546 2545 2546 $query = " 2547 2547 SELECT registration_date 2548 2548 FROM ".USER_INFOS_TABLE." 2549 2549 WHERE user_id = '".$id."' 2550 2550 ;"; 2551 2551 list($registration_date) = pwg_db_fetch_row(pwg_query($query)); 2552 2552 2553 2553 // Time limit process 2554 2554 // ******************************************** 2555 2556 { 2557 2555 if (!empty($registration_date)) 2556 { 2557 // Dates formating and compare 2558 2558 // --------------------------- 2559 2560 list($day, $month, $year) = explode('-', $today); // explode date of today2561 2562 2563 2564 2565 2566 2567 $deltasecs = $daytimestamp - $regtimestamp;// Compare the 2 UNIX timestamps 2568 2569 2570 2559 $today = date("d-m-Y"); // Get today's date 2560 list($day, $month, $year) = explode('-', $today); // explode date of today 2561 $daytimestamp = mktime(0, 0, 0, $month, $day, $year);// Generate UNIX timestamp 2562 2563 list($regdate, $regtime) = explode(' ', $registration_date); // Explode date and time from registration date 2564 list($regyear, $regmonth, $regday) = explode('-', $regdate); // Explode date from registration date 2565 $regtimestamp = mktime(0, 0, 0, $regmonth, $regday, $regyear);// Generate UNIX timestamp 2566 2567 $deltasecs = $daytimestamp - $regtimestamp;// Compare the 2 UNIX timestamps 2568 $deltadays = floor($deltasecs / 86400);// Convert result from seconds to days 2569 2570 // Condition with the value set for time limit 2571 2571 // ------------------------------------------- 2572 2573 2574 2575 2576 2577 2578 2579 2580 2572 if ($deltadays <= $conf_UAM_ConfirmMail[1]) // If Nb of days is less than the limit set 2573 { 2574 return false; 2575 } 2576 else 2577 { 2578 return true; 2579 } 2580 } 2581 2581 } 2582 2582 … … 2618 2618 // On ajoute 1 point pour une minuscule - Adding 1 point to score for a lowercase 2619 2619 // ------------------------------------------------------------------------------ 2620 2621 2622 2620 $points = $points + 1; 2621 2622 // On rajoute le bonus pour une minuscule - Adding bonus points for lowercase 2623 2623 // -------------------------------------------------------------------------- 2624 2624 $point_lowercase = 1; 2625 2625 } 2626 2626 else if ($letters>='A' && $letters <='Z') … … 2629 2629 // ------------------------------------------------------------------------------ 2630 2630 $points = $points + 2; 2631 2631 2632 2632 // On rajoute le bonus pour une majuscule - Adding bonus points for uppercase 2633 2633 // -------------------------------------------------------------------------- … … 2639 2639 // ------------------------------------------------------------------------- 2640 2640 $points = $points + 3; 2641 2641 2642 2642 // On rajoute le bonus pour un chiffre - Adding bonus points for numbers 2643 2643 // --------------------------------------------------------------------- … … 2649 2649 // -------------------------------------------------------------------------------------------- 2650 2650 $points = $points + 5; 2651 2651 2652 2652 // On rajoute le bonus pour un caractère autre - Adding bonus points for special characters 2653 2653 // ---------------------------------------------------------------------------------------- … … 2748 2748 global $conf; 2749 2749 2750 2750 // Get UAM configuration 2751 2751 // --------------------- 2752 2752 $conf_UAM = unserialize($conf['UserAdvManager']); … … 2764 2764 // Check for user status 2765 2765 $query = ' 2766 SELECT group_id2766 SELECT status 2767 2767 FROM '.USER_INFOS_TABLE.' 2768 2768 WHERE user_id = '.$user_id.' … … 2774 2774 // Check for user privacy level 2775 2775 $query = ' 2776 SELECT group_id2776 SELECT level 2777 2777 FROM '.USER_INFOS_TABLE.' 2778 2778 WHERE user_id = '.$user_id.' … … 2855 2855 else $pwdreset = l10n('UAM_PwdReset_NA'); 2856 2856 2857 2857 $visible_user_list[$user_nums[$row['id']]]['plugin_columns'][] = $pwdreset; // Shows users password state in user_list 2858 2858 } 2859 2859 }
Note: See TracChangeset
for help on using the changeset viewer.