Changeset 1220
- Timestamp:
- 02/23/10 12:03:23 (3 years ago)
- Location:
- branches/1.2/content/plugins/user_signin
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
user_signin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/content/plugins/user_signin/readme.txt
r906 r1220 15 15 Changelog 16 16 --------- 17 v.0.2 2010/02/23 - Nick - Throws out killspammed, banned or suspended users when checking the cookie 17 18 v.0.1 2009/12/27 - Nick - Released first version -
branches/1.2/content/plugins/user_signin/user_signin.php
r1112 r1220 3 3 * name: User Signin 4 4 * description: Provides user registration and login 5 * version: 0. 15 * version: 0.2 6 6 * folder: user_signin 7 7 * type: signin … … 655 655 return true; 656 656 } 657 658 659 /** 660 * Check login permission during cookie check 661 * 662 * @return true; 663 */ 664 public function userauth_checkcookie_success() 665 { 666 $fail_array = array('killspammed', 'banned', 'suspended'); 667 if (!in_array($h->currentUser->role, $fail_array)) { echo "SAFE!"; return true; } 668 669 if ($h->currentUser->getPermission('can_login') == 'no') { 670 $h->currentUser->destroyCookieAndSession(); 671 $h->currentUser->setLoggedOutUser($h); 672 header("Location: " . BASEURL); 673 exit; 674 } 675 676 } 657 677 } 658 678
Note: See TracChangeset
for help on using the changeset viewer.