- 1
- 2
- 3
- 4
if (Auth_OpenID_noMathSupport()) {
$null = null;
return $null;
}
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+159.4
if (Auth_OpenID_noMathSupport()) {
$null = null;
return $null;
}
взято в PHP OpenID, модуль BigMath.php, function Auth_OpenID_getMathLib
+61.8
(*(((void*)*)(pData))=p;
думал о чем-то постороннем)))
+60
//метод некоего класса
IMission * startMission_ScenarioMission(tID mission_name,bool isChannelImmediate,tID P1,tID P2,tID P3,double coef_time_pickup,double coef_time_complete,double coef_reward_money,double coef_reward_rate,double coef_reward_rank,double coef_forfeit_money,double coef_forfeit_rate,double coef_forfeit_rank,double time_on_mission,bool move_time,bool needFinishPointactivator);
//вызов этого же метода
mission = startMission_ScenarioMission(CONSTANTSTRING->regString(mission_name),isStartChannelImmediate,CONSTANTSTRING->regString(p1),CONSTANTSTRING->regString(p2),CONSTANTSTRING->regStrinп(p3),coef_time_pickup,coef_time_complete,coef_reward_money,coef_reward_rate,coef_reward_rank,coef_forfeit_money,coef_forfeit_rate,coef_forfeit_rank,time_on_mission,move_time,needFinishPointactivator);
Неслабый такой метод :)
+158.6
<script type="text/javascript">
var pointsH =
[
<?php
$aPointsH = JRequest::getVar('aPoint');
if(is_array($aPointsH) && count($aPointsH) > 0){
.........
}else{
?>
[
<?php echo 0 ?>,
<?php echo 0 ?>,
'<?php echo 0 ?>',
<?php echo 0 ?>,
'<?php echo 0 ?>',
'<?php echo 0 ?>',
'<?php echo 0 ?>'
],
<?php
}
.....................
?>
....................
</script>
+141
$query =
'SELECT * ' .
'FROM `requests` ' .
'WHERE `requests`.`uid` = \'' . mysql_escape_string($uid) . '\' ' .
'AND `requests`.`status` = 0 ' .
'';
$requests = $this->execQuery($query);
if ( !$requests) {
$this->lastError = 'Error getting user\'s data. ';
return false;
} else {
$questions = $this->findAllQuestions();
foreach ($requests as $n => $request) {
$requests[$n]['quiz'] = unserialize(
unserialize($request['quiz'])
);
foreach ($requests[$n]['quiz'] as $qid => $answer) {
$currentQuestion = &$requests[$n]['quiz'][$qid];
$currentQuestion = array();
$currentQuestion['qid'] = $qid;
if (is_array($questions[$qid]['answers'])) {
$currentQuestion['question'] = $questions[$qid]['question'];
$currentQuestion['aid'] = $answer;
$currentQuestion['answer'] = $questions[$qid]['answers'][$answer]['answer'];;
} else {
$currentQuestion['question'] = $questions[$qid]['question'];
$currentQuestion['aid'] = null;
$currentQuestion['answer'] = $answer;
}
}
}
}
return $requests;
}
Я, честно говоря, так и не разобрался что "это" делает...
+141.4
function findRequest($id) {
$query =
'SELECT * ' .
'FROM `requests` ' .
'WHERE `requests`.`id` = \'' . mysql_escape_string($id) . '\' ' .
'LIMIT 0,1 ' .
'';
$request = $this->execQuery($query);
if ( !$request) {
$this->lastError = 'Error getting user\'s data. ';
return false;
} else {
$request[0]['quiz'] = unserialize(
unserialize($request[0]['quiz'])
);
}
return $request;
}
Оригинальная пунктуация сохранена
+158
<?if($addrs):?>
<?$i=0?>
<?foreach($addrs as $item):?>
<? $f = GetFields('slon_text', 43, $item['Id']) ?>
<address class="vcard">
<span class='org hidd'><?=$MG['Site_name']?></span>
<span class="adr work">
<?if(!empty($f['Город'])):?><span class="locality<?if($i!=0):?> hidd<?endif?>"><?=$f['Город']?></span><br/><?endif?>
<?if(!empty($f['Адрес'])):?><span class="street-address"><?=$f['Адрес']?></span><?endif?>
<?if(!empty($f['Страна'])):?><span class="country-name hidd"><?=$f['Страна']?></span><?endif?>
</span><br/>
<?if(!empty($f['Телефон 1'])):?>
<span class="tel">
Тел.: <span title="+38044<?=str_replace('-','',$f['Телефон 1'])?>" class="value"><?=$f['Телефон 1']?></span><?if(!empty($f['Телефон 2'])):?>, <span title="+38044<?=str_replace('-','',$f['Телефон 2'])?>" class="value"><?=$f['Телефон 2']?></span><?endif?>
</span><br/>
<?endif?>
<?if(!empty($f['E-mail'])):?><a class="email" href="mailto:<?=$f['E-mail']?>"><?=$f['E-mail']?></a><?endif?>
</address>
<?$i++?>
<?endforeach?>
<?endif?>
Говно-синтаксис
+188
<noscript>
<script language="Javascript">
alert('Что бы пользоваться всеми возможностями сайта включите JavaScript!');
</script>
<noscript>
Вот такое встретил на одном сайте xD.
+56.4
if (tlb[i].VPN2 == 0x70000000) return; //uh uhh right ...
Из исходника pcsx2 (эмулятор PS2):
http://code.google.com/p/pcsx2/source/browse/trunk/pcsx2/COP0.cpp?r=1970
+98.4
/* ,*/
#include <time.h>
#include/* _ ,o*/ <stdlib.h>
#define c(C)/* - . */return ( C); /* 2004*/
#include <stdio.h>/*. Moekan "' `\b-' */
typedef/* */char p;p* u ,w [9
][128] ,*v;typedef int _;_ R,i,N,I,A ,m,o,e
[9], a[256],k [9], n[ 256];FILE*f ;_ x (_ K,_ r
,_ q){; for(; r< q ; K =((
0xffffff) &(K>>8))^ n[255 & ( K
^u[0 + r ++ ] )]);c (K
)} _ E (p*r, p*q ){ c( f =
fopen (r ,q))}_ B(_ q){c( fseek (f, 0
,q))}_ D(){c( fclose(f ))}_ C( p *q){c( 0- puts(q ) )}_/* /
*/main(_ t,p**z){if(t<4)c( C("<in" "file>" "\40<l" "a" "yout> "
/*b9213272*/"<outfile>" ) )u=0;i=I=(E(z[1],"rb")) ?B(2)?0 : (((o =ftell
(f))>=8)?(u =(p*)malloc(o))?B(0)?0:!fread(u,o,1,f):0:0)?0: D():0 ;if(
!u)c(C(" bad\40input "));if(E(z[2],"rb" )){for(N=-1;256> i;n[i++] =-1 )a[
i]=0; for(i=I=0; i<o&&(R =fgetc( f))>-1;i++)++a[R] ?(R==N)?( ++I>7)?(n[
N]+1 )?0:(n [N ]=i-7):0: (N=R) |(I=1):0;A =-1;N=o+1;for(i=33;i<127;i++
)( n[i ]+ 1&&N>a[i])? N= a [A=i] :0;B(i=I=0);if(A+1)for(N=n[A];
I< 8&& (R =fgetc(f ))> -1&& i <o ;i++)(i<N||i>N+7)?(R==A)?((*w[I
] =u [i])?1:(*w[I]= 46))?(a [I++]=i):0:0:0;D();}if(I<1)c(C(
" bad\40la" "yout "))for(i =0;256>(R= i);n[i++]=R)for(A=8;
A >0;A --) R = ( (R&1)==0) ?(unsigned int)R>>(01):((unsigned
/*kero Q' ,KSS */)R>> 1)^ 0xedb88320;m=a[I-1];a[I
]=(m <N)?(m= N+8): ++ m;for(i=00;i<I;e[i++]=0){
v=w [i]+1;for(R =33;127 >R;R++)if(R-47&&R-92
&& R-(_)* w[i])*( v++)= (p)R;*v=0;}for(sprintf
/*'_ G*/ (*w+1, "%0" "8x",x(R=time(i=0),m,o)^~
0) ;i< 8;++ i)u [N+ i]=*(*w+i+1);for(*k=x(~
0,i=0 ,*a);i>- 1; ){for (A=i;A<I;A++){u[+a [ A]
]=w[A ][e[A]] ; k [A+1]=x (k[A],a[A],a[A+1]
);}if (R==k[I]) c( (E(z[3 ],"wb+"))?fwrite(
/* */ u,o,1,f)?D ()|C(" \n OK."):0 :C(
" \n WriteError" )) for (i =+I-
1 ;i >-1?!w[i][++ e[+ i]]:0;
) for( A=+i--; A<I;e[A++]
=0); (i <I-4 )?putchar
((_ ) 46) | fflush
/*' ,*/ ( stdout
): 0& 0;}c(C
(" \n fail")
) /* dP' /
dP pd '
' zc
*/
}