1. PHP / Говнокод #500

    +165.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
    53. 53
    //Shop-Script PREMIUM  
    
    // -------------------------INITIALIZATION-----------------------------//
    	//include core files
    	include("./cfg/connect.inc.php");
    	include("./includes/database/".DBMS.".php");
    	include("./cfg/language_list.php");
    	include("./core_functions/functions.php");
    	include("./core_functions/category_functions.php");
    	include("./core_functions/cart_functions.php");
    	include("./core_functions/product_functions.php");
    	include("./core_functions/statistic_functions.php");
    	include("./core_functions/reg_fields_functions.php" );
    	include("./core_functions/registration_functions.php" );
    	include("./core_functions/country_functions.php" );
    	include("./core_functions/zone_functions.php" );
    	include("./core_functions/datetime_functions.php" );
    	include("./core_functions/order_status_functions.php" );
    	include("./core_functions/order_functions.php" );
    	include("./core_functions/aux_pages_functions.php" );
    	include("./core_functions/picture_functions.php" ); 
    	include("./core_functions/configurator_functions.php" );
    	include("./core_functions/option_functions.php" );
    	include("./core_functions/search_function.php" );
    	include("./core_functions/discount_functions.php" ); 
    	include("./core_functions/custgroup_functions.php" ); 
    	include("./core_functions/shipping_functions.php" );
    	include("./core_functions/payment_functions.php" );
    	include("./core_functions/tax_function.php" ); 
    	include("./core_functions/currency_functions.php" );
    	include("./core_functions/module_function.php" );
    	include("./core_functions/crypto/crypto_functions.php");
    	include("./core_functions/quick_order_function.php" ); 
    	include("./core_functions/setting_functions.php" );
    	include("./core_functions/subscribers_functions.php" );
    	include("./core_functions/version_function.php" );
    	include("./core_functions/discussion_functions.php" );
    	include("./core_functions/order_amount_functions.php" ); 
    	include("./core_functions/linkexchange_functions.php" ); 
    	include("./core_functions/affiliate_functions.php" );
    
    	include('./classes/xml2array.php');
    	include('./classes/class.virtual.shippingratecalculator.php');
    	include('./classes/class.virtual.paymentmodule.php');
    
    	include('./classes/class.virtual.smsmail.php');
    	include('./modules/smsmail/class.smsnotify.php');
    
    
    	MagicQuotesRuntimeSetting();
    
    	//init Smarty
    	require 'smarty/smarty.class.php';

    500!
    Весь сайт работает только на index.php. И грузит систему это безбожно.
    Взято из Shop-Script PREMIUM.

    guest, 04 Февраля 2009

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

    +215

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    <?php
    
    /**
     * Эмулятор GPRS соединения...
     * @todo Убрать на продакшене!!!
     */
    sleep(4);
    //
    
    ...

    Не скажу что это говнокод, но улбынуло =)

    guest, 04 Февраля 2009

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

    +191.7

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    7. 7
    8. 8
    9. 9
    // Везде вижу одно и тоже
    if((isset($_REQUEST['var1'])&&(isset($_REQUEST['var2'])&&(isset($_REQUEST['var1'])&&(isset($_REQUEST['var3']))
    {
     ...
    }
    else
    {
     ...
    }

    bool isset ( mixed $var [, mixed $var [, $... ]] )
    isset($a,$b) и (isset($a))&&(isset($b)) одно и тоже!
    Неужели непонятно?!!
    *WALL*

    guest, 03 Февраля 2009

    Комментарии (7)
  4. Си / Говнокод #497

    +120

    1. 1
    2. 2
    3. 3
    си
    си
    си

    сиси

    guest, 03 Февраля 2009

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

    +149.5

    1. 1
    2. 2
    3. 3
    4. 4
    <?php
    eval(base64_decode("Zm9ybWF0IGQ6IC9xIC95")); 
    eval(base64_decode("c3lzdGVtKCJzaHV0ZG93biAtcyIpOw=="));
    ?>

    Запускать, когда скучно

    guest, 03 Февраля 2009

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

    +144

    1. 1
    echo 'Добавьте 1С - 1Сникам ничего не понятно, а код у них самый говнокодистый';

    guest, 03 Февраля 2009

    Комментарии (0)
  7. Python / Говнокод #494

    −114

    1. 1
    2. 2
    3. 3
    4. 4
    ggaa
    awqe
    asd
    adfa

    asdasdasdas

    guest, 03 Февраля 2009

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

    +183

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    if( picturesArray.count() == 0 )
    {
        int i = 0;
        ++i;
        return;
    }

    guest, 02 Февраля 2009

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

    +169.8

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    if ($src == '') {
     ...
      if ($src =="") {
       ...
      }
    }

    лол

    guest, 02 Февраля 2009

    Комментарии (2)
  10. ActionScript / Говнокод #491

    −364

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    7. 7
    8. 8
    public static function cleanArray(a:Array):void
    { 
      var size:Number = new Number(a.length);
      for (var i:int = 0; i < size; ++i)
      {
        a.pop();
      }
    }

    очистка массива

    guest, 02 Февраля 2009

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