- 1
Папка, создаваемая USB Disk Antivirus в корне всех дисков предотвращает заражение компьютера через Autorun. Пожалуйста не изменяйте и не удаляйте ее.
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
−127
Папка, создаваемая USB Disk Antivirus в корне всех дисков предотвращает заражение компьютера через Autorun. Пожалуйста не изменяйте и не удаляйте ее.
Напомнило кое-что.
+169
/*
Функция раскодирования символов кириллицы.
Исходные данные должны содержаться в строке $ToDecode.
Символы кириллицы раскодируются из: ^NN, где NN - номер символа (по очереди на клавиатуре, вначале заглавные буквы).
01 - Й, 02 - Ц, ... 31 - Б, 32 - Ю, 33 - Ё, 34 - й, 35 - ц, ..., 64 - б, 65 - ю, 66 - ё
Все символы, кроме раскодируемых данным образом остаются неизменными.
Добавлены украинские символы.
*/
function decoding (ToDecode)
{
var Result = ''
var len = ToDecode.length
var ch=''
var i = 0
while (i<len)
{
ch = ToDecode.charAt(i)
if (ch == '^')
{
ch=ch+ToDecode.charAt(i+1)+ToDecode.charAt(i+2)
if (ch=='^01') {ch = 'Й';} if (ch=='^02') {ch = 'Ц';} if (ch=='^03') {ch = 'У';}
if (ch=='^04') {ch = 'К';} if (ch=='^05') {ch = 'Е';} if (ch=='^06') {ch = 'Н';}
if (ch=='^07') {ch = 'Г';} if (ch=='^08') {ch = 'Ш';} if (ch=='^09') {ch = 'Щ';}
if (ch=='^10') {ch = 'З';} if (ch=='^11') {ch = 'Х';} if (ch=='^12') {ch = 'Ъ';}
if (ch=='^13') {ch = 'Ф';} if (ch=='^14') {ch = 'Ы';} if (ch=='^15') {ch = 'В';}
if (ch=='^16') {ch = 'А';} if (ch=='^17') {ch = 'П';} if (ch=='^18') {ch = 'Р';}
if (ch=='^19') {ch = 'О';} if (ch=='^20') {ch = 'Л';} if (ch=='^21') {ch = 'Д';}
if (ch=='^22') {ch = 'Ж';} if (ch=='^23') {ch = 'Э';} if (ch=='^24') {ch = 'Я';}
if (ch=='^25') {ch = 'Ч';} if (ch=='^26') {ch = 'С';} if (ch=='^27') {ch = 'М';}
if (ch=='^28') {ch = 'И';} if (ch=='^29') {ch = 'Т';} if (ch=='^30') {ch = 'Ь';}
if (ch=='^31') {ch = 'Б';} if (ch=='^32') {ch = 'Ю';} if (ch=='^33') {ch = 'Ё';}
if (ch=='^34') {ch = 'й';} if (ch=='^35') {ch = 'ц';} if (ch=='^36') {ch = 'у';}
if (ch=='^37') {ch = 'к';} if (ch=='^38') {ch = 'е';} if (ch=='^39') {ch = 'н';}
if (ch=='^40') {ch = 'г';} if (ch=='^41') {ch = 'ш';} if (ch=='^42') {ch = 'щ';}
if (ch=='^43') {ch = 'з';} if (ch=='^44') {ch = 'х';} if (ch=='^45') {ch = 'ъ';}
if (ch=='^46') {ch = 'ф';} if (ch=='^47') {ch = 'ы';} if (ch=='^48') {ch = 'в';}
if (ch=='^49') {ch = 'а';} if (ch=='^50') {ch = 'п';} if (ch=='^51') {ch = 'р';}
if (ch=='^52') {ch = 'о';} if (ch=='^53') {ch = 'л';} if (ch=='^54') {ch = 'д';}
if (ch=='^55') {ch = 'ж';} if (ch=='^56') {ch = 'э';} if (ch=='^57') {ch = 'я';}
if (ch=='^58') {ch = 'ч';} if (ch=='^59') {ch = 'с';} if (ch=='^60') {ch = 'м';}
if (ch=='^61') {ch = 'и';} if (ch=='^62') {ch = 'т';} if (ch=='^63') {ch = 'ь';}
if (ch=='^64') {ch = 'б';} if (ch=='^65') {ch = 'ю';} if (ch=='^66') {ch = 'ё';}
// украинские символы
if (ch=='^67') {ch = 'Ї';} if (ch=='^68') {ch = 'І';} if (ch=='^69') {ch = 'Є';}
if (ch=='^70') {ch = 'Ґ';} if (ch=='^71') {ch = 'ї';} if (ch=='^72') {ch = 'і';}
if (ch=='^73') {ch = 'є';} if (ch=='^74') {ch = 'ґ';}
i=i+2
}
i=i+1
Result=Result+ch
}
return Result
}
А я минут 10 ковырялся думая в каком виде они кириллицу пересылают.
+111
for(x = 1; x; x += x)
if(!(((e*x)%m)/t))
{ x = d; break; }
Недавно прислали с вопросом: "Тут что-то поломалось, надо исправить... Поможешь?"
+164
if (!isset ($_POST['filter']['state'])) $_POST['filter']['state'] = 0;
.....
$state = @$_POST['filter']['state'] ? $_POST['filter']['state'] : 0;
не, ну а вдруг потеряется
−122
sub GenRandomHash()
{
my $self=shift;
my $number=shift||10;
my $plain='';
my @chars=('0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z');
for (my $i=0;$i<$number;$i++)
{
$plain.=$chars[rand(59)+2];
}
return $plain;
}
Мне бы было лень вбить столько символов :)
+147
http://www.microsoft.com/ru-ru/events/html5camp/
+144
http://www.microsoft.com/ru-ru/events/html5camp/
+161
public function selectItems( $id, $withStrictment = 'no' /* $withStrictment = no, retail, discount */ ) {
if( $withStrictment == 'discount' ) $onlyWithRetailPriceSql = " and items.articul in ( select articul from items_discount ) ";
if( $withStrictment == 'retail' ) $onlyWithRetailPriceSql = " and items.articul in ( select articul from retailPrice ) ";
$a = database::select(" SELECT items.* FROM items WHERE items.id = '$id' and items.deleted = 'no' ");
$a = $a[0];
$this->data = database::select("SELECT items.*,
IF(DATEDIFF(now(),created) <= 30, 'Новинка! ', '') as fresh,
( items.quantity - coalesce(view_pendeditemsquantity.sum,0) ) as quantity,
items_comments.comment as dopDescr, items_comments.comment as comment, items_discount.priceAsUSD as discountPrice,
items_packing.packing,
concat(items.name, ' - ', items.quantity) as name
FROM items
LEFT JOIN view_pendeditemsquantity ON items.articul = view_pendeditemsquantity.articul
LEFT JOIN items_comments ON items.articul = items_comments.articul
left join items_discount on items.articul = items_discount.articul
left join items_packing on items.articul = items_packing.articul
WHERE items.group_id in ( select articul from items where is_group = '1' and name = '{$a['name']}' and group_id = '' )
and items.deleted = 'no'
$onlyWithRetailPriceSql
order by items.quantity desc, items.name asc
");
}
+186
$__language = ($__language == 'en')?'ru':'lv';
мозговынос
+147
[color=red]Обратите внимание:[/color]
http://govnokod.ru/user/4847