Один из плагинов к WordPress-у...

    Date: 01/22/09 (Code WTF)    Keywords: no keywords

    Я думал, такого в живой природе не встречается...

    
    function MM_CheckFile_WM($checkfile) {
    	list($tmpaa, $tmpab, $tmpac)=split("\.",$checkfile,3);
    	if((empty($tmpab)) || ($tmpac!="")) return false;
    	switch($tmpab) {
    		case "Gif"	:
    		case "GIF"	:
    		case "gif" 	: return 'gif';
    		case "jpeg"	:
    		case "Jpeg"	:
    		case "JPEG"	:
    		case "JPG"	:
    		case "Jpg"	:
    		case "jpg"	: return 'jpg';
    		case "PNG"	:
    		case "Png"	:
    		case "png"	: return 'png';
    		default		: return false;
    	}
    }
    
    

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

« Глубина-глубин... || Кошмар на... »


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