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

    +144.3

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    7. 7
    // в посредине кода сайта http://mdist.metallizdeliya.ru/en/info/programmes/academic_programmes/introduction.html 
    <meta content="Word.Document" name="ProgId">
    <meta content="Microsoft Word 12" name="Generator">
    <meta content="Microsoft Word 12" name="Originator">
    
    <link href="file:///C:%5CUsers%5Cgeneral%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml" rel="File-List" />
    <link href="file:///C:%5CUsers%5Cgeneral%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx" rel="themeData" />

    Из кода сайта http://mdist.metallizdeliya.ru/en/info/programmes/academic_programmes/introduction.html

    guest, 11 Марта 2009

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

    +135.5

    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
    class PliggMailer{
    
    	var $subject = '';
    	var $body = '';
    	var $from = '';
    	var $to = '';
    
    	function PliggMailer($subj = '', $body = '', $from = '', $to = '', $cc = '', $bcc = ''){
    
    		if($subj != ''){$this->subject = $subj;}
    		if($body != ''){$this->body = $body;}
    		if($from != ''){$this->from = $from;}
    		if(!is_array($to)){$to[] = $to;}
    		if(count($to) == 0){$this->to = $to;}
    		if(!is_array($to)){$to[] = $to;}
    		if(count($to) == 0){$this->to = $to;}
    		if(!is_array($to)){$to[] = $to;}
    		if(count($to) == 0){$this->to = $to;}
    
    	}

    Блоговый движок pligg жжот.

    guest, 11 Марта 2009

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

    +178.4

    1. 1
    defined( '_VALID_MOS' ) or die( 'Пошел на хуй отсюдова ...' );

    залез поправить шаблон и офигел, интересно как мог офигеть пользователь сайта

    guest, 11 Марта 2009

    Комментарии (25)
  4. PHP / Говнокод #687

    +144

    1. 1
    $_SESSION['myass_closed']=true;

    guest, 10 Марта 2009

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

    +164.9

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    if (USE_MAIN) {
        $templ = 'main';
        ....
    } elseif (!USE_MAIN) {
        $used = USE_MAIN ? 1 : 0;
        $templ = 'default';
        ....
    }
    ......
    if ( !$used ) $templ = 'default';

    Вычищая один проект помимо всего прочего встретил такое чудо

    guest, 08 Марта 2009

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

    +148.3

    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
    // Prevent any possible XSS attacks via $_GET.
    
    foreach ($_GET as $check_url) {
        if (!is_array($check_url)) {
    
            $check_url = str_replace("\"", "", $check_url);
    
            if ((eregi("<[^>]*script*\"?[^>]*>", $check_url)) || (eregi("<[^>]*object*\"?[^>]*>", $check_url)) ||
                (eregi("<[^>]*iframe*\"?[^>]*>", $check_url)) || (eregi("<[^>]*applet*\"?[^>]*>", $check_url)) ||
                (eregi("<[^>]*meta*\"?[^>]*>", $check_url)) || (eregi("<[^>]*style*\"?[^>]*>", $check_url)) ||
                (eregi("<[^>]*form*\"?[^>]*>", $check_url)) || (eregi("\([^>]*\"?[^)]*\)", $check_url)) ||
                (eregi("\"", $check_url))) {
            die ();
    
            }
    
        }
    
    }

    PHP-Fusion Content Management System (C)
    // напалмом по воробьям...

    guest, 08 Марта 2009

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

    +139.9

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    function num_digits($number)
    {
         $rest = floor($number / 10);
         $i = 1;
         while ($rest >= 1) {
              $rest = floor($rest / 10);
              $i++;
         }
         return $i;
    }

    Взято с http://www.egoholic.ru/2009/03/php.html, что за бред?

    guest, 08 Марта 2009

    Комментарии (15)
  8. PHP / Говнокод #681

    +136.9

    1. 1
    2. 2
    $Fp = join("", file("Logs.txt"));
    $Fp1 = explode("\r\n\r\n", $Fp);

    Норм сиги

    guest, 07 Марта 2009

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

    +140.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
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    //cache control side box detect
    	if ((USE_CACHE == 'true') && empty($SID) && ($column['cfgtitle'] == 'categories1.php') ) {
    		echo tep_cache_categories_box();
    	} else if ((USE_CACHE == 'true') && empty($SID) && ($column['cfgtitle'] == 'categories.php') ) {
    		echo tep_cache_categories_box();
    	} else if ((USE_CACHE == 'true') && empty($SID) && ($column['cfgtitle'] == 'categories2.php') ) {
    		echo tep_cache_categories_box1();
    	} else if ((USE_CACHE == 'true') && empty($SID) && ($column['cfgtitle'] == 'categories3.php') ) {
    		echo tep_cache_categories_box3();
    	} else if ((USE_CACHE == 'true') && empty($SID) && ($column['cfgtitle'] == 'categories4.php') ) {
    		echo tep_cache_categories_box4();
    	} else if ((USE_CACHE == 'true') && empty($SID) && ($column['cfgtitle'] == 'categories5.php') ) {
    		echo tep_cache_categories_box5();
    	} else if ((USE_CACHE == 'true') && empty($SID) && ($column['cfgtitle'] == 'coolmenu.php') ) {
    		echo tep_cache_coolmenu();
    	} else if ((USE_CACHE == 'true') && empty($SID) && ($column['cfgtitle'] == 'manufacturers.php') ) {
    		echo tep_cache_manufacturers_box();
    	} else {
    		require(DIR_FS_TEMPLATE_BOXES . '/' . $column['cfgtitle']);
    	}

    Хотите интернет-магазин? Не спрашивайте про крелоад.

    guest, 06 Марта 2009

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

    +158.6

    1. 1
    2. 2
    3. 3
    4. 4
    function is_negative($num)
    {
        return ord("$num")==45;
    }

    Как уже ясно, определяет знак числа...
    Кстати, всего одна строчка ;)
    //by HTMLCODER.exe

    guest, 06 Марта 2009

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