- 1
- 2
- 3
- 4
- 5
- 6
if ($src == '') {
...
if ($src =="") {
...
}
}
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+169.8
if ($src == '') {
...
if ($src =="") {
...
}
}
лол
+158.9
if ($category) {$zapros="where category='$category'"; $f[1]=1;}
if ($group) {
//тут $row получает этот индус...
if ($f[1]==1) {$zapros.=" and idu='$row[0]'";}
else {$zapros="where idu='$row[0]'";}
$f[2]=1;
}
if ($type) {
if (($f[1]==1)||($f[2]==1)) {$zapros.=" and type='$type'";}
else {$zapros="where type='$type'";}
$f[3]=1;
}
if ($format) {
if (($f[1]==1)||($f[2]==1)||($f[3]==1)) {$zapros.=" and format='$format'";}
else {$zapros="where format='$format'";}
$f[4]=1;
}
if ($curlang) {
if (($f[1]==1)||($f[2]==1)||($f[3]==1)||($f[4]==1)) {$zapros.=" and (lang='$curlang' or lang='all')";}
else {$zapros="where (lang='$curlang' or lang='all')";}
$f[5]=1;
}
Охеренный способ составления запроса
+157.7
{?$i=0;}
{foreach from=explode(',',$item.tags) item="tag"}
<a href="/{_ LANG}/tv,translations?tag={$tag|escape}">{$tag|escape}</a>{if $i < (count(explode(',',$item.tags)) - 1)}, {/if}
{?$i++}
{/}
No comments.
+169.8
if ( isset($_GET['action']) && !isset($_GET['action']) ) {
die('Не не не, Девид Блейн, не не не!!!!! Сдрысни демон!!!!!');
}
o_O
+151.1
$this->oPostTest->recipients = trim($this->oPostTest->recipients);
$this->oPostTest->recipients = trim($this->oPostTest->recipients, ';');
$this->oPostTest->recipients = str_replace(' ', ';', $this->oPostTest->recipients);
$this->oPostTest->recipients = str_replace(';;', ';', $this->oPostTest->recipients);
такая вот загагулина )
+152.9
if (isset($this->handle) || !isset($this->handle) {
echo "Не правильный тип ресурса... или не тип ресурса не известен..."
}
...
...
...
Проверим дескриптор :D
+143
if ($src_encoding == '')
{
// lame, but we know no better...
$src_encoding = $GLOBALS['xmlrpc_internalencoding'];
}
+160.1
class Company extends BaseCompany {
//...
public function setName($v){
$this->setName(String::mb_ucfirst($v));
}
//...
}
Мегаметодика переопределения сеттеров. Symfony, Propel.
+150
{? if (!isset($edit_style)) ?}
<form action="disp.php?action=style_add" method="post">
{? else ?}
<form action="disp.php?action=style_edit" method="post">
<input type="hidden" name="id" value="{? $edit_style.id ?}">
{? /if ?}
...
...
<td><input type="submit" value="{? if (isset($edit_style)) ?}Save{? else ?}Add{? /if ?}"></td>
Ю
+156.7
<?php
$mov = new ffmpeg_movie ( '1.avi' );
$frame = $mov -> GetFrame ( 26 ):
$gd = ToGd ( $frame );
header ( "Content-type: image/gif" );
imageGif ( $gd );
function ToGd ( $frame )
{
RETURN $frame -> toGDimage ();
}
?>
Говнокод? =)