- 1
memmove(&*_Dest, &*_First, _Count * sizeof (*_First));
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+991
memmove(&*_Dest, &*_First, _Count * sizeof (*_First));
в библиотеке memory, может я чего-то не понял, но выглядит как операция "подёргивание-2" (&*_Dest)
+157
$comment_msg=$row['comm'];
$comment_msg=cuthtml($comment_msg);
$comment_msg=cutbb($comment_msg);
$comment_msg=wordwrap($comment_msg, 10, " ", 1);
$comment_msg=viewworld($comment_msg,4).$massparam['lastend'];
Один фрагмент из кучки говнокода, относительно популярного скрипта комментариев commentit
+120
' Program DISKRIMINANT
CLS
DO
PRINT "Vvedite peremennye"
INPUT "A"; A
INPUT "B"; B
INPUT "C"; C
D = B ^ 2 - 4 * A * C
CLS
PRINT "A ="; A
PRINT "B ="; B
PRINT "C ="; C
IF A = 0 THEN
CLS
WRITE "Urovnenie ne kvadratnoe"
WRITE "Ekstrenaja ostanovka programmy"
WRITE "Zavershenie raboty"
SLEEP 3
SYSTEM
END
END IF
PRINT "DISKRIMINANT ="; D
Dx = SQR(D)
P$ = "Pechal"
IF D > 0 THEN PRINT "x1 ="; ((0 - B) + Dx) / (2 * A), "x2="; ((0 - B) - Dx) / (2 * A)
IF D = 0 THEN PRINT "x ="; (0 - B) / (2 * A)
IF D < 0 THEN PRINT P$
INPUT "Rerty(YES = 1; NO = 2)"; CLr
IF CLr = 1 THEN CLS
LOOP WHILE CLr = 1
IF CLr = 2 THEN SYSTEM
END
Один из согруппников накодиль :D
Ну я свиснул тихонька. Удивлению не была границ :D
+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 '';
}
}
Разгребаю чужой проект. Может быть чего-то не понимаю в этой жизни.