1. Си / Говнокод #1638

    +135.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
    ...............
    if (!strcmp(tCom2ConfigWr.aucModeNo,"m1"))
                             {
                                 fprintf(cgiOut, " <option value=\"m1\" selected>comport to comport</option><option value=\"m2\">network to comport</option><option value=\"m3\">comport to group of comports</option><option value=\"m4\">network to group of comports</option><option value=\"m5\">modem mode</option><option value=\"m6\">none</option><option value=\"m7\">console</option>");
                             }
                             else if (!strcmp(tCom2ConfigWr.aucModeNo,"m2"))
                             {
                                 fprintf(cgiOut, " <option value=\"m1\" >comport to comport</option><option value=\"m2\" selected>network to comport</option><option value=\"m3\">comport to group of comports</option><option value=\"m4\">network to group of comports</option><option value=\"m5\">modem mode</option><option value=\"m6\">none</option><option value=\"m7\">console</option>");
                             }
                             else if (!strcmp(tCom2ConfigWr.aucModeNo,"m3"))
                             {
                                 fprintf(cgiOut, " <option value=\"m1\" >comport to comport</option><option value=\"m2\" >network to comport</option><option value=\"m3\" selected>comport to group of comports</option><option value=\"m4\">network to group of comports</option><option value=\"m5\">modem mode</option><option value=\"m6\">none</option><option value=\"m7\">console</option>");
                             }
    .................

    и так до m7, а также в двух копиях! Взято с сорсов вебадминки одного девайса. Досталось от индусов.

    Запостил: memorizer, 19 Августа 2009

    Комментарии (2) RSS

    Добавить комментарий