Не могу удержаться

    Date: 01/31/06 (Code WTF)    Keywords: html


    $ext_list = "";
    $lastext = "no";
    if(isset(
    $_POST['ext_jpg'])) { $ext_list = "jpg"; $lastext = "yes"; }
    if(
    $lastext == "yes") { $ext_list .= ","; $lastext = "no"; }
    if(isset(
    $_POST['ext_jpeg'])) { $ext_list .= "jpeg"; $lastext = "yes"; }
    if(
    $lastext == "yes") { $ext_list .= ","; $lastext = "no"; }
    if(isset(
    $_POST['ext_gif'])) { $ext_list .= "gif"; $lastext = "yes"; }
    if(
    $lastext == "yes") { $ext_list .= ","; $lastext = "no"; }
    if(isset(
    $_POST['ext_bmp'])) { $ext_list .= "bmp"; $lastext = "yes"; }
    if(
    $lastext == "yes") { $ext_list .= ","; $lastext = "no"; }
    if(isset(
    $_POST['ext_png'])) { $ext_list .= "png"; $lastext = "yes"; }
    if(
    $lastext == "yes") { $ext_list .= ","; $lastext = "no"; }
    if(isset(
    $_POST['ext_pdf'])) { $ext_list .= "pdf"; $lastext = "yes"; }
    if(
    $lastext == "yes") { $ext_list .= ","; $lastext = "no"; }
    if(isset(
    $_POST['ext_txt'])) { $ext_list .= "txt"; $lastext = "yes"; }
    if(
    $lastext == "yes") { $ext_list .= ","; $lastext = "no"; }
    if(isset(
    $_POST['ext_html'])) { $ext_list .= "html"; $lastext = "yes"; }
    if(
    $lastext == "yes") { $ext_list .= ","; $lastext = "no"; }
    if(isset(
    $_POST['ext_htm'])) { $ext_list .= "htm"; $lastext = "yes"; }


    АААААААААААА!!!!!!!!! ТОЛЬКО НЕ МОЙ МОСК!!!!!!!!!!!!!!

    Source: http://community.livejournal.com/code_wtf/26078.html

« про комментарии || PHP »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home