- 1
 - 2
 
if ( is_int(intval($_GET['y'])) ) {
  //...
                                    Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+172
if ( is_int(intval($_GET['y'])) ) {
  //...
                                    
+110
<!--
			BEGIN RIDICULOUSLY LONG BATIK SECTION
			
			Do not touch. This is fragile stuff. Seriously.
			
			Batik just *wants* to pull xalan and xml-apis, *everywhere*,
			even though we do not want this. And Ivy isn't clever enough
			to ignore the dependencies everywhere.
			
			In an ideal world we would just explicitly depend on batik-swing
			and batik-transcoder and be done with it. Instead we have to do
			this atrocity. Apache, take a hint, would you kindly?
		-->
		<dependency org="org.apache.xmlgraphics" name="batik-xml" rev="[1.7,)">
			<exclude org="xalan" module="xalan" />
		</dependency>
		<dependency org="org.apache.xmlgraphics" name="batik-ext" rev="[1.7,)">
			<exclude org="xml-apis" module="xml-apis" />
		</dependency>
		<dependency org="org.apache.xmlgraphics" name="batik-css" rev="[1.7,)">
			<exclude org="xml-apis" module="xml-apis" />
		</dependency>
		<dependency org="org.apache.xmlgraphics" name="batik-dom" rev="[1.7,)">
			<exclude org="xml-apis" module="xml-apis" />
		</dependency>
		<dependency org="org.apache.xmlgraphics" name="batik-parser" rev="[1.7,)">
			<exclude org="xml-apis" module="xml-apis" />
		</dependency>
		<dependency org="org.apache.xmlgraphics" name="batik-anim" rev="[1.7,)">
			<exclude org="org.apache.xmlgraphics" module="batik-svg-dom" />
			<exclude org="xml-apis" module="xml-apis" />
		</dependency>
		<dependency org="org.apache.xmlgraphics" name="batik-svg-dom" rev="[1.7,)">
			<exclude org="xml-apis" module="xml-apis" />
		</dependency>
		<dependency org="org.apache.xmlgraphics" name="batik-bridge" rev="[1.7,)">
			<exclude org="org.apache.xmlgraphics" module="batik-script" />
			<exclude org="org.apache.xmlgraphics" module="batik-gvt" />
			<exclude org="xml-apis" module="xml-apis" />
			<exclude org="xalan" module="xalan" />
		</dependency>
		<dependency org="org.apache.xmlgraphics" name="batik-gvt" rev="[1.7,)">
			<exclude org="org.apache.xmlgraphics" module="batik-script" />
			<exclude org="xml-apis" module="xml-apis" />
			<exclude org="xalan" module="xalan" />
		</dependency>
		<dependency org="org.apache.xmlgraphics" name="batik-gui-util" rev="[1.7,)">
			<exclude org="xalan" module="xalan" />
		</dependency>
		<dependency org="org.apache.xmlgraphics" name="batik-script" rev="[1.7,)">
			<exclude org="xalan" module="xalan" />
		</dependency>
		<dependency org="org.apache.xmlgraphics" name="batik-swing" rev="[1.7,)" />
		<dependency org="org.apache.xmlgraphics" name="batik-transcoder" rev="[1.7,)" />
		<!-- END BATIK SECTION -->
                                    Из ivy.xml.
+177
public static function textCorrections($text)
    {
        $text=str_replace("Ų", "Ø", $text);
        $text=str_replace("? фаски", "Ø фаски", $text);
        $text=str_replace("? отверстия", "Ø отверстия", $text);
        $text=str_replace("рем?нного", "ремённого", $text);
        return $text;
    }
                                    Вот такая заплатка для текстов в фомате UTF-8.
+1009
mExpanded = onExpandClick ? !mExpanded : mExpanded;
                                    
+168
$isHttp = $_tumbpath[0] == 'h' && $_tumbpath[1] == 't' && $_tumbpath[2] == 't' && $_tumbpath[3] == 'p';
if ($isHttp){...}
                                    хорошо еще, что слово - http :)
+164
<script language="JavaScript">
                <!--
                    document.write('<a href="#top" onclick="takeThis(\'<?php echo $PMA_Theme; ?>\'); return false;">');
                    document.write('<img src="<?php echo $screen_directory; ?>/screen.png" border="1" ');
                    if (document.getElementById) {
                        document.write('style="border: 1px solid #000000;" ');
                    }
                    document.write('alt="<?php echo htmlspecialchars(addslashes($theme_name)); ?>" ');
                    document.write('title="<?php echo htmlspecialchars(addslashes($theme_name)); ?>" />');
                    document.write('</a><br />');
                    document.write('[ <b><a href="#top" onclick="takeThis(\'<?php echo $PMA_Theme; ?>\'); return false;">');
                    document.write('<?php echo addslashes($strTakeIt); ?>');
                    document.write('</a></b> ]');
                //-->
                </script>
                                    Чужая самописная CMF. Файл themes в админке.
+155
public function get_included_js () 
 {
     if (count($this->included_js)) {
         return "\r\n".'<script type="text/javascript" src="'
         .implode('"></script>'."\r\n".'<script type="text/javascript" src="', $this->included_js)
         .'"></script>'."\r\n";
     } else {
         return '';
     }
 }
                                    Разгребаю чужой проект. Может быть чего-то не понимаю в этой жизни.
+150
$('.form_gb textarea[name="vopros"]').val(replace_n($('.form_gb textarea[name="vopros"]').val()));//заменяем переводы строк на br
var serialize_mas = $('.form_gb').serializeArray();
$('.form_gb textarea[name="vopros"]').val(replace_br($('.form_gb textarea[name="vopros"]').val()));//заменяем br на переводы строк
                                    
+160
$v2 = str_replace('\"', '"', $v2);
$v2 = str_replace("\'", "'", $v2);
                                    no comments
+145
<span>Выберите тип</span>
<select>
    <option value="" selected="1">Все типы</option>
 </select>
                                    
            эт правда HTML... но тут нет такого раздела.. =(
Чинил сайт, наткнулся на.. это.. О_о