1. Лучший говнокод

    В номинации:
    За время:
  2. Куча / Говнокод #25186

    0

    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
    cript src='https://www.google.com/recaptcha/api.js?onload=captchaOn&render=explicit' async defer></script>
                                        </span>
        <span  id="noCaptchaBlock" style="display: none">
                                    <a onclick="cl=true" href="#" class="vam" style="z-index: 1;position: relative;text-decoration: none;border-radius: 2px;background: #4C8EFA;color: #fff;padding: 7px 20px;font-size: 20px;text-decoration: none !important;margin: 7px 10px;"  id="rbs">Пропустить рекламу</a>
                                    <span id="load" class="vam" style="z-index: 1;position: relative;margin: 6px 10px;display: none;font-size: 1.125em"><span id="statusload">Загрузка рекламы</span><span id="point">...</span></span></span>
        </span>
        <div class="progress" style="height: 100%;background: #bbbbbb;opacity: 0.2;z-index: 0;"><dt></dt><dd></dd></div>
    </div>
    <div class="bl_all_rek" style="position: relative;overflow: hidden;z-index: 1;">
        <div class="progress_bg"><div class="progress"><dt></dt><dd></dd></div></div>
        <div class="toggle" style="position: absolute;width: 4px;height: 100%;background-color: #EFC439;z-index: 3;left: 0;top: 10px;/* box-shadow: -3px 0px 7px 0px #000; */"></div>
        <div class="toggle" style="position: absolute;width: 4px;height: 100%;background-color: #EFC439;z-index: 3;right: 0;top: 10px;/* box-shadow: 3px 0px 7px 0px #000; */"></div>
        <div class="toggle" style="margin: 0px;background-color: #EFC439;padding:8px 15px;font-weight:bold;font-size: 14px;line-height: 100%;word-wrap: break-word;color:#FFF; font-family: Arial, sans-serif;text-align: center;box-shadow: 0px 0px 7px -1px #000, inset 0px 2px 8px -5px #000;position: relative;z-index: 2;">Реклама        <a class="a_site_top" style="margin: 0; font-size: 12px;top:auto;font-weight:normal;" target="_blank"
               title="http://yandex.ru" href="/away4.php?a=aHR0cDovL3lhbmRleC5ydQ=="
            >Открыть полностью</a>
        </div>

    Куча гавна с хардкодом с сайта catcut! Ну блять пиздец, так делать сайты нельзя.
    И прикол в том что сайт глючит, ПИЗДЕЦ!!!! ЕБАЛ В РОТ

    fuckercoder, 13 Декабря 2018

    Комментарии (3)
  3. Python / Говнокод #25172

    0

    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
    def is_regular_pay(self, order):
            return order.account is None
    
    
        def is_card_binding(self, order):
            return order.account != None
    
    
    ...
    
    if self.is_regular_pay(order):
                   ...
                    return HttpResponse("OK", status=200)
    
                elif self.is_card_binding(order):
                    ...
                    start_cancel_request(order)
    
                else:
                    get_logger().warn("Unknown successefull operation")
                order.save()

    PashaWNN, 09 Декабря 2018

    Комментарии (3)
  4. Куча / Говнокод #25159

    −4

    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
    53. 53
    54. 54
    55. 55
    56. 56
    57. 57
    58. 58
    59. 59
    60. 60
    61. 61
    62. 62
    63. 63
    64. 64
    65. 65
    66. 66
    67. 67
    68. 68
    69. 69
    70. 70
    71. 71
    72. 72
    73. 73
    74. 74
    75. 75
    76. 76
    77. 77
    78. 78
    79. 79
    80. 80
    81. 81
    82. 82
    83. 83
    <p>Example using a mathematical CAPTCHA.</p>
    <form method="post" action="/try-securimage/">
        <img style="float: left; padding-right: 5px" id="captcha_two" src="/securimage/securimage_show_math.php?namespace=mathcaptcha&amp;amp;731f6b2ff6753462b557785b09107a0a" alt="CAPTCHA Image" /></p>
    <div id="captcha_two_audio_div"><audio id="captcha_two_audio" preload="none" style="display: none"><source id="captcha_two_source_mp3" src="/securimage/securimage_play.php?namespace=mathcaptcha&amp;id=5c0860efe364f&amp;format=mp3" type="audio/mpeg"><source id="captcha_two_source_wav" src="/securimage/securimage_play.php?namespace=mathcaptcha&amp;id=5c0860efe368a" type="audio/wav"><object type="application/x-shockwave-flash" data="/securimage/securimage_play.swf?bgcol=%23ffffff&amp;icon_file=%2Fsecurimage%2Fimages%2Faudio_icon.png&amp;audio_file=%2Fsecurimage%2Fsecurimage_play.php%3Fnamespace%3Dmathcaptcha%26" height="32" width="32"><param name="movie" value="/securimage/securimage_play.swf?bgcol=%23ffffff&amp;icon_file=%2Fsecurimage%2Fimages%2Faudio_icon.png&amp;audio_file=%2Fsecurimage%2Fsecurimage_play.php%3Fnamespace%3Dmathcaptcha%26"></object><br /></audio></div>
    <div id="captcha_two_audio_controls"><a tabindex="-1" class="captcha_play_button" href="/securimage/securimage_play.php?namespace=mathcaptcha&amp;id=5c0860efe36cf" onclick="return false"><img class="captcha_play_image" height="32" width="32" src="/securimage/images/audio_icon.png" alt="Play CAPTCHA Audio" style="border: 0px"><img class="captcha_loading_image rotating" height="32" width="32" src="/securimage/images/loading.png" alt="Loading audio" style="display: none"></a><noscript>Enable Javascript for audio controls</noscript></div>
    <p><script type="text/javascript">captcha_two_audioObj = new SecurimageAudio({ audioElement: 'captcha_two_audio', controlsElement: 'captcha_two_audio_controls' });</script><a tabindex="-1" style="border: 0" href="#" title="Refresh Image" onclick="if (typeof window.captcha_two_audioObj !== 'undefined') captcha_two_audioObj.refresh(); document.getElementById('captcha_two').src = '/securimage/securimage_show_math.php?namespace=mathcaptcha&amp;' + Math.random(); this.blur(); return false"><img height="32" width="32" src="/securimage/images/refresh.png" alt="Refresh Image" onclick="this.blur()" style="border: 0px; vertical-align: bottom"></a></p>
    <div style="clear: both"></div>
    <p><label for="captcha_code">Solve the problem: </label> <input type="text" name="ct_captcha1" id="captcha_code" autocomplete="off" >    </p>
    <div><input type="submit" value="Submit Form" /></div>
    <p>&nbsp;</p>
    <p>Example using a two-word CAPTCHA.</p>
    <form method="post" action="/try-securimage/">
        <img style="float: left; padding-right: 5px" id="captcha_three" src="/securimage/securimage_show_words.php?namespace=wordcaptcha&amp;amp;cc3139fa82d61239cadcaaeddebb0d16" alt="CAPTCHA Image" /><a tabindex="-1" style="border: 0" href="#" title="Refresh Image" onclick="if (typeof window.captcha_three_audioObj !== 'undefined') captcha_three_audioObj.refresh(); document.getElementById('captcha_three').src = '/securimage/securimage_show_words.php?namespace=wordcaptcha&amp;' + Math.random(); this.blur(); return false"><img height="32" width="32" src="/securimage/images/refresh.png" alt="Refresh Image" onclick="this.blur()" style="border: 0px; vertical-align: bottom"></a></p>
    <div style="clear: both"></div>
    <p><label for="captcha_code">Type the text:</label> <input type="text" name="ct_captcha2" id="captcha_code" autocomplete="off" >    </p>
    <div><input type="submit" value="Submit Form" /></div>
    </form>
    
    				<div class="clearfix"></div>
    
    				
    			</div>
    
    		</div>
    
    		<!-- AdSense -->
    
    	    
    		<!-- /AdSense -->
    
    	
    
    
    <!-- You can start editing here. -->
    
    
    
    <div id="comments">
    
    
    
    
    
    
    	
    		<!-- If comments are closed. -->
    
    		<p class="nocomments"></p>
    
    
    
    	
    
    
    
    
    
    </div> <!-- end #comments_wrap -->
    
    
    
    
    
    
    
    		
    	
      
    
    
    
    		  </div><!--/content-->
    
    		</div><!--/main grid_x-->
    
    	
    	<!--right sidebar-->
    
    	<div class="grid_7">
    
    	  <div id="sidebar" class="r">
    
    	    <div class="module"><div><div><div class="tl">

    Блять эти пидарасы ебанные! На популярном сайте допускают ошибки, всю работу через жопу выполняют пиндосы ниче не лучше русских блядь пидоры, сжечь нахуй сайт удалить нахуй ЗАБАНИТЬ НАХУЙ СУКА

    fuckercoder, 06 Декабря 2018

    Комментарии (3)
  5. Куча / Говнокод #25144

    −3

    1. 1
    Давайте дёграть сисколлы из нулевоГо кольца.

    Властелин скольких колец - ты?

    Goh, 04 Декабря 2018

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

    −1

    1. 1
    2. 2
    3. 3
    я скачал пхп написал на нём 50 програм хотя только сегодня подключил модуль
    это нормально что я сейсас делаю всё что можно делать на пхп за 1 день?
    я посмотрел на код разработчиков кода пхп и увидел что там очень много кода а я тоже самое сделал в 1 строчку за 1 день

    Ksyrx, 03 Декабря 2018

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

    +1

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    // $this->oDB is instance of DBSimpleGenericDatabaseWrapper class
    
    array_map(
                        function($k, $v, $oDb) {
                            return "{$oDb->escape($k, true)} = {$oDb->escape($v)}";
                            },
                        array_keys($aOriginalData),
                        array_values($aOriginalData),
                        array_fill(0, count($aOriginalData), $this->oDb)
                    )

    Из недр одной популярной социальной сети.

    Вместе анонимной фунции было вообще create_function(), но я её уже отрефакторил.

    Arris, 09 Ноября 2018

    Комментарии (3)
  8. C# / Говнокод #24913

    0

    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
    53. 53
    54. 54
    55. 55
    56. 56
    57. 57
    58. 58
    59. 59
    60. 60
    61. 61
    62. 62
    63. 63
    64. 64
    65. 65
    66. 66
    67. 67
    68. 68
    69. 69
    70. 70
    public void r_mesg(Message msg, string text)
            {
                bot.SendTextMessageAsync(msg.Chat.Id, text, replyToMessageId: msg.MessageId);
            }
            public void mesg_md(ChatId chatId, string text)
            {
                try { bot.SendTextMessageAsync(chatId, text, ParseMode.Markdown); }
                catch { mesg(chatId, text); }
            }
            public void mesg_html(ChatId chatId, string text)
            {
                try { bot.SendTextMessageAsync(chatId, text, ParseMode.Html); }
                catch { mesg(chatId, text); }
            }
            public void r_mesg_md(Message msg, string text)
            {
                try { bot.SendTextMessageAsync(msg.Chat.Id, text, ParseMode.Markdown, replyToMessageId: msg.MessageId); }
                catch { r_mesg(msg, text); }
            }
            public void r_mesg_html(Message msg, string text)
            {
                try { bot.SendTextMessageAsync(msg.Chat.Id, text, ParseMode.Html, replyToMessageId: msg.MessageId); }
                catch { r_mesg(msg, text); }
            }
    
            public void pic(ChatId chatId, string file)
            {
                bot.SendPhotoAsync(chatId, file);
            }
            public void r_pic(Message msg, string file)
            {
                bot.SendPhotoAsync(msg.Chat.Id, file, replyToMessageId: msg.MessageId);
            }
            public void pic_t(ChatId chatId, string file, string text)
            {
                bot.SendPhotoAsync(chatId, file, caption: text);
            }
            public void pic_t_md(ChatId chatId, string file, string text)
            {
                try { bot.SendPhotoAsync(chatId, file, caption: text, parseMode: ParseMode.Markdown); }
                catch { pic_t(chatId, file, text); }
            }
            public void pic_t_html(ChatId chatId, string file, string text)
            {
                try { bot.SendPhotoAsync(chatId, file, caption: text, parseMode: ParseMode.Html); }
                catch { pic_t(chatId, file, text); }
            }
            public void r_pic_t(Message msg, string file, string text)
            {
                bot.SendPhotoAsync(msg.Chat.Id, file, 
                    caption: text, replyToMessageId: msg.MessageId);
            }
            public void r_pic_t_md(Message msg, string file, string text)
            {
                try {
                    bot.SendPhotoAsync(msg.Chat.Id, file, 
                        caption: text, parseMode: ParseMode.Markdown,
                        replyToMessageId: msg.MessageId);
                }
                catch { r_pic_t(msg, file, text); }
            }
            public void r_pic_t_html(Message msg, string file, string text)
            {
                try {
                    bot.SendPhotoAsync(msg.Chat.Id, file,
                        caption: text, parseMode: ParseMode.Html,
                        replyToMessageId: msg.MessageId);
                }
                catch { r_pic_t(msg, file, text); }
            }

    Jint и скриптовые команды для бота. Ну не удержался и скинул эту хуету

    UND85D, 12 Октября 2018

    Комментарии (3)
  9. Куча / Говнокод #24874

    +6

    1. 1
    Забаньте DOKTOPuHXO

    3oJloTou_xyeLL, 08 Октября 2018

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

    −6

    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
    Name: 
    <input type="text" name=
                                                             "name" 
    value="<?php echo $name;?>">
    
    E-mail: <
    
                         input type="text" 
    name="email" value="<?php 
    echo $email;?>">
    
    Website: <input type="text" name="website" value="
    <?php echo $website;?>"
    
                                                                                  >
    
    Comment: <textarea name="comment" rows="5" cols="40"><?php echo $comment;?></textarea>
    
    Gender:
    <input type="radio" name="gender"
    <
    ?
    php 
    
    
    if (isset($gender) && $gender=="female") echo "checked";
    
    ?>            value="female">Female
    
    <input type="radio" name="gender"
    <?php if (isset($gender) && $gender=="male") echo "checked";?>
    value="male">
    
                  Male
    
    <input type="radio" name="gender"
    
    <?php if (isset($gender) && $gender=="other") echo "checked";?>value="other">Other

    PHP говно

    Ksyrx, 16 Сентября 2018

    Комментарии (3)
  11. SQL / Говнокод #24749

    0

    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
    53. 53
    54. 54
    55. 55
    56. 56
    57. 57
    58. 58
    59. 59
    60. 60
    61. 61
    62. 62
    63. 63
    64. 64
    65. 65
    66. 66
    67. 67
    68. 68
    69. 69
    70. 70
    71. 71
    72. 72
    73. 73
    74. 74
    75. 75
    76. 76
    77. 77
    78. 78
    79. 79
    80. 80
    81. 81
    82. 82
    83. 83
    84. 84
    85. 85
    86. 86
    87. 87
    88. 88
    89. 89
    90. 90
    91. 91
    92. 92
    93. 93
    94. 94
    95. 95
    96. 96
    97. 97
    SELECT *
    FROM
      (SELECT CASE
       WHEN (CASE
    		WHEN datediff(DAY,date,
    						(SELECT top (1) date
    						FROM Battles AS P2
    						WHERE P2.date > P1.date
    						ORDER BY P2.date))/365 = 0 THEN 'Y y.,'
    		ELSE cast((datediff(DAY,date,
    								(SELECT top (1) date
    								FROM Battles AS P2
    								WHERE P2.date > P1.date
    								ORDER BY P2.date))/365) AS varchar(20)) + ','
    	END + CASE
    				WHEN (datediff(DAY,date,
    								(SELECT top (1) date
    								FROM Battles AS P2
    								WHERE P2.date > P1.date
    								ORDER BY P2.date))/30 - (datediff(DAY,date,
    																	(SELECT top (1) date
    																	FROM Battles AS P2
    																	WHERE P2.date > P1.date
    																	ORDER BY P2.date))/365) * 12) = 0 THEN 'M m.'
    				ELSE cast((datediff(DAY,date,
    									(SELECT top (1) date
    									FROM Battles AS P2
    									WHERE P2.date > P1.date
    									ORDER BY P2.date))/30 - (datediff(DAY,date,
    																		(SELECT top (1) date
    																			FROM Battles AS P2
    																			WHERE P2.date > P1.date
    																			ORDER BY P2.date))/365) * 12) AS varchar(20))
    			END) = 'Y y.,M m.' THEN ''
          ELSE (CASE
            WHEN datediff(DAY,date,
                            (SELECT top (1) date
                             FROM Battles AS P2
                             WHERE P2.date > P1.date
                             ORDER BY P2.date))/365 = 0 THEN 'Y y.,'
            ELSE cast((datediff(DAY,date,
                                  (SELECT top (1) date
                                   FROM Battles AS P2
                                   WHERE P2.date > P1.date
                                   ORDER BY P2.date))/365) AS varchar(20)) + ','
        END + CASE
         WHEN (datediff(DAY,date,
                          (SELECT top (1) date
                           FROM Battles AS P2
                           WHERE P2.date > P1.date
                           ORDER BY P2.date))/30 - (datediff(DAY,date,
                                                               (SELECT top (1) date
                                                                FROM Battles AS P2
                                                                WHERE P2.date > P1.date
                                                                ORDER BY P2.date))/365) * 12) = 0 THEN 'M m.'
         ELSE cast((datediff(DAY,date,
                               (SELECT top (1) date
                                FROM Battles AS P2
                                WHERE P2.date > P1.date
                                ORDER BY P2.date))/30 - (datediff(DAY,date,
                                                                    (SELECT top (1) date
                                                                     FROM Battles AS P2
                                                                     WHERE P2.date > P1.date
                                                                     ORDER BY P2.date))/365) * 12) AS varchar(20))  END)
      END AS 'Возраст',
      date AS date1,
         (SELECT top (1) date
          FROM Battles AS P2
          WHERE P2.date > P1.date
          ORDER BY P2.date) AS date2
       FROM Battles AS P1
       WHERE
           (SELECT top (1) date
            FROM Battles AS P2
            WHERE P2.date > P1.date
            ORDER BY P2.date) IS NOT NULL) AS t
    UNION
      (SELECT CASE
       WHEN (CASE
                 WHEN datediff(DAY,date,CONVERT (date, GETDATE()))/365 = 0 THEN 'Y y.,'
                 ELSE cast((datediff(DAY,date,CONVERT (date, GETDATE()))/365) AS varchar(20)) + ','
             END + CASE
                       WHEN (datediff(DAY,date,CONVERT (date, GETDATE()))/30 - (datediff(DAY,date,CONVERT (date, GETDATE()))/365) * 12) = 0 THEN 'M m.'
                       ELSE cast((datediff(DAY,date,CONVERT (date, GETDATE()))/30 - (datediff(DAY,date,CONVERT (date, GETDATE()))/365) * 12) AS varchar(20))
                   END) = 'Y y.,M m.' THEN ''
       ELSE (CASE
                 WHEN datediff(DAY,date,CONVERT (date, GETDATE()))/365 = 0 THEN 'Y y.,'
                 ELSE cast((datediff(DAY,date,CONVERT (date, GETDATE()))/365) AS varchar(20)) + ','
             END + CASE
                       WHEN (datediff(DAY,date,CONVERT (date, GETDATE()))/30 - (datediff(DAY,date,CONVERT (date, GETDATE()))/365) * 12) = 0 THEN 'M m.'
                       ELSE cast((datediff(DAY,date,CONVERT (date, GETDATE()))/30 - (datediff(DAY,date,CONVERT (date, GETDATE()))/365) * 12) AS varchar(20))
                   END)
        END, date, CONVERT (date, GETDATE())
       FROM Battles AS T1
       WHERE
           (SELECT top (1) date    FROM Battles AS T2
            WHERE T2.date > T1.date ORDER BY T2.date) IS NULL );

    BDcorabli@ex5

    akimachan, 12 Сентября 2018

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