- 1
- 2
- 3
if (md5(__FILE__) != '411606f6b8bcb6ac950c69567e840f44') {
die('Файл взломан.');
}
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+193
if (md5(__FILE__) != '411606f6b8bcb6ac950c69567e840f44') {
die('Файл взломан.');
}
Барон Мюнхгаузен.
+147
$(document).ready(function() {
// get elements only once instead of every Interval
var clock = {};
clock.seconds = $('.clock_seconds');
clock.minutes = $('.clock_minutes');
clock.hours = $('.clock_hours');
setInterval( function() {
// get time
var date = new Date();
var seconds = date.getSeconds();
var mins = date.getMinutes();
var hours = date.getHours();
// count degrees
var seconds_degree = seconds * 6; // 60 secs * 6 deg = 360 deg
var minutes_degree = mins * 6; // 60 mins * 6 deg = 360 deg
var hours_degree = hours * 30 + (mins / 2); // 12 hours * 30 = 360 deg
// apply transform
clock.seconds.css({"-moz-transform" : 'rotate('+seconds_degree+'deg)'});
clock.minutes.css({"-moz-transform" : 'rotate('+minutes_degree+'deg)'});
clock.hours.css({"-moz-transform" : 'rotate('+hours_degree+'deg)'});
}, 1000 );
});
Часы на CSS3, под FireFox 5.
+163
<div class="highslide-container" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-color: currentColor; border-left-color: currentColor; border-right-color: currentColor; border-bottom-color: currentColor; border-top-width: medium; border-left-width: medium; border-right-width: medium; border-bottom-width: medium; border-top-style: none; border-left-style: none; border-right-style: none; border-bottom-style: none; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; position: absolute; left: 0px; top: 0px; width: 100%; z-index: 1001; direction: ltr">
Попросили помочь с темлейтой в DLE хз какой версии
−854
if rtrim(@parent_ID) = null
select '' as Parent_ID, '' as Parent_Name where 1 = 2
else
select isnull(@parent_ID, '') as Parent_ID, isnull(@parent_name, '') as Parent_Name
+177
<?PHP
/*
*This Function Is programed By MR-O
*The first arabic Function for crypting
*/
function abo($variable){
$variable =str_replace("1",1 ^ 52 ,$variable);
$variable =str_replace("2",2 ^ 5 ,$variable);
$variable =str_replace("3",3 ^ 8 ,$variable);
$variable =str_replace("4",4 ^ 18 ,$variable);
$variable =str_replace("5",5 ^ 30 ,$variable);
$variable =str_replace("6",6 ^ 42 ,$variable);
$variable =str_replace("7",7 ^ 26 ,$variable);
$variable =str_replace("8",8 ^ 62 ,$variable);
$variable =str_replace("9",9 ^ 1 ,$variable);
$variable =str_replace("0",0 ^ 3 ,$variable);
$variable =str_replace("a","m8" ,$variable);
$variable =str_replace("b","2s" ,$variable);
$variable =str_replace("c","9e" ,$variable);
$variable =str_replace("d","6s" ,$variable);
$variable =str_replace("e","a3" ,$variable);
$variable =str_replace("f","m3" ,$variable);
$variable =str_replace("g","6f" ,$variable);
$variable =str_replace("h","9c" ,$variable);
$variable =str_replace("i","85" ,$variable);
$variable =str_replace("j","32" ,$variable);
$variable =str_replace("k","1a" ,$variable);
$variable =str_replace("l","6e" ,$variable);
$variable =str_replace("m","5f" ,$variable);
$variable =str_replace("n","9r" ,$variable);
$variable =str_replace("o","z0" ,$variable);
$variable =str_replace("p","y6" ,$variable);
$variable =str_replace("q","9i" ,$variable);
$variable =str_replace("r","y9" ,$variable);
$variable =str_replace("s","5g" ,$variable);
$variable =str_replace("t","p3" ,$variable);
$variable =str_replace("u","d5" ,$variable);
$variable =str_replace("v","t8" ,$variable);
$variable =str_replace("w","2x" ,$variable);
$variable =str_replace("x","6w" ,$variable);
$variable =str_replace("y","v9" ,$variable);
$variable =str_replace("z","zv" ,$variable);
$variable =str_replace("A","m8" ,$variable);
$variable =str_replace("B","24d" ,$variable);
$variable =str_replace("C","9e" ,$variable);
$variable =str_replace("D","6s2" ,$variable);
$variable =str_replace("E","qw" ,$variable);
$variable =str_replace("F","oe" ,$variable);
$variable =str_replace("G","0t" ,$variable);
$variable =str_replace("H","o9" ,$variable);
$variable =str_replace("I","74" ,$variable);
$variable =str_replace("J","dd" ,$variable);
$variable =str_replace("K","2b" ,$variable);
$variable =str_replace("L","rt" ,$variable);
$variable =str_replace("M","0c" ,$variable);
$variable =str_replace("N","2w" ,$variable);
$variable =str_replace("O","te" ,$variable);
$variable =str_replace("P","sc" ,$variable);
$variable =str_replace("Q","uy" ,$variable);
$variable =str_replace("R","hp" ,$variable);
$variable =str_replace("S","h1" ,$variable);
$variable =str_replace("T","s5" ,$variable);
$variable =str_replace("U","fs" ,$variable);
$variable =str_replace("V","e1s" ,$variable);
$variable =str_replace("W","1y" ,$variable);
$variable =str_replace("X","dv" ,$variable);
$variable =str_replace("Y","w2" ,$variable);
$variable =str_replace("Z","w5" ,$variable);
$variable = str_replace('1','5b',$variable);
$variable = str_replace('2','b1',$variable);
$variable = str_replace('3','0j',$variable);
$variable = str_replace('4','1e',$variable);
$variable = str_replace('5','z2',$variable);
$variable = str_replace('6','15e',$variable);
$variable = str_replace('7','d2',$variable);
$variable = str_replace('8','e5b',$variable);
$variable = str_replace('9','y8',$variable);
$variable = str_replace('0','g1y7',$variable);
echo $variable ;
}
?>
Это простая функция на str_replace для шифрования пароля и прочих вещей. http://www.php.net/manual/en/function.str-replace.php#104596
−415
pygame.mouse.set_cursor((16, 19), (0, 0), (128, 0, 192, 0, 160, 0, 144, 0, 136, 0, 132, 0, 130, 0, 129, 0, 128, 128, 128, 64, 128, 32, 128, 16, 129, 240, 137, 0, 148, 128, 164, 128, 194, 64, 2, 64, 1, 128), (128, 0, 192, 0, 224, 0, 240, 0, 248, 0, 252, 0, 254, 0, 255, 0, 255, 128, 255, 192, 255, 224, 255, 240, 255, 240, 255, 0, 247, 128, 231, 128, 195, 192, 3, 192, 1, 128))#костыль))
Разгребал сорцы одной совей древней программки, нашел это.
ЗЫ: комент таким и был
+89
while (m.find()) {
String sentence = m.group(0);
setterMethodName = "setElement" + sentence;
break;
}
Чем автора не устроил оператор if остается загадкой.
+147
$date_send = explode(".", $date_send);
$date_send = date("Y/m/d", mktime(0, 0, 0, $date_send[1], $date_send[0], $date_send[2]));
Так мы преобразуем даты
$date_send приходит в формате dd.mm.yyyy
+165
function p(x, y){
return new Point(x, y);
}
Боже мой!!
+179
if(vara==((bool)(0)))
ОМГ.