1. Список говнокодов пользователя e.lamskoy

    Всего: 2

  2. PHP / Говнокод #1508

    +157.1

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    if ($_GET['logout']) {
    	$user_key = '';
    } else {
            WAP::checkLogin();
    	$user_key = WAP::getUserKey();
    	if (!$user_key) {
    		# TODO FIX HUGE FUCKING SECURITY HOLE
    		$qs = $_SERVER['QUERY_STRING'];
    		if (trim($qs)) {
    			$user_row = getUserRowByUserID($qs);
    			if ($user_row) {
    				$user_key = $user_row['UsKey'];
    				if (Config::get('wap_sessions.enabled')) {
    					Session::setUserKey($user_key);
    				} else {
    					$_GET['cid'] = $qs;
    				}
    			}
    		}
    	}
    }

    Комментарии в тексте программы оставлены без изменений :)

    e.lamskoy, 10 Августа 2009

    Комментарии (0)
  3. PHP / Говнокод #1506

    +154.9

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    38. 38
    39. 39
    40. 40
    41. 41
    42. 42
    43. 43
    44. 44
    45. 45
    46. 46
    47. 47
    48. 48
    49. 49
    50. 50
    51. 51
    52. 52
    $url = URL::uri('chatsW.php', $params);
    	$chatters_link=new HAW_link('chat rooms',	$url);
    	
    	$url = URL::uri('browseW.php', $params);
    	$people_link    =new HAW_link('people',			$url);
    
    	$url = URL::uri('recentW.php', $params);
    	$photos_link    =new HAW_link('photos',			$url);
    
    	$url = URL::uri('find_area_codeW.php', $params);
    	$find_by_areacode_link =new HAW_link('search by US area code', $url);
    
    	$url = URL::uri('inboxW.php', $params);
    	$messages_link  =new HAW_link('messages' . $message_count_text,	$url);
    	
    	$url = URL::uri('whatsnewW.php', $params);
    	$whatsnew_link  =new HAW_link('what\'s new',		$url);
    
    	$url = URL::uri('invites_mainW.php', $params);
    	$invites_link   =new HAW_link('invites' . $invite_count_text, $url);
    
    	$url = URL::uri('friendsW.php', $params);
    	$my_friends_link=new HAW_link('my friends',		$url);
    
    	$url = URL::uri('phone_bookW.php', $params);
    	$phone_book_link=new HAW_link('my phone book',		$url);
    
    	$url = URL::uri('chatterW.php', $params);
    	$my_chatter_link=new HAW_link('my chatter',		$url);
    
    	$url = URL::uri('my_profileW.php', $params);
    	$my_profile_link=new HAW_link('my profile',		$url);
    
    	$url = URL::uri('settingsW.php', $params);
    	$settings_link  =new HAW_link('settings',		$url);
    	
    	$url = URL::uri('logout.php', $params);
    	$logout_link=new HAW_link("log out", $url);
    	
    	$wapPage->add_link($people_link);
    	$wapPage->add_link($photos_link);
    	$wapPage->add_link($find_by_areacode_link);
    	$wapPage->add_link($chatters_link);
    	$wapPage->add_link($messages_link);
    	$wapPage->add_link($whatsnew_link);
    	$wapPage->add_link($invites_link);
    	$wapPage->add_link($my_friends_link);
    	$wapPage->add_link($phone_book_link);
    	$wapPage->add_link($my_chatter_link);
    	$wapPage->add_link($my_profile_link);
    	$wapPage->add_link($settings_link);
    	$wapPage->add_link($logout_link);

    e.lamskoy, 10 Августа 2009

    Комментарии (0)