- 1
- 2
- 3
if ( String(typeof Ext).toLowerCase() === "object") {
Ext.BLANK_IMAGE_URL = '/style/ext/resources/images/default/s.gif';
}
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+160
if ( String(typeof Ext).toLowerCase() === "object") {
Ext.BLANK_IMAGE_URL = '/style/ext/resources/images/default/s.gif';
}
Ох. Штабильненько.
+160
{if $smarty.foreach.categories.iteration == 2 || $smarty.foreach.categories.iteration == 4 || $smarty.foreach.categories.iteration == 6 || $smarty.foreach.categories.iteration == 8 || $smarty.foreach.categories.iteration == 10 || $smarty.foreach.categories.iteration == 12 || $smarty.foreach.categories.iteration == 14 || $smarty.foreach.categories.iteration == 16}
<div class="clear"></div>
{/if}
Smarty
+160
if(floor($info['http_code'] / 100) >= 4) {
throw $this->castError($result);
}
Библиотека интеграции с Mandrill.
+160
function casinoGamesParser($body, $infoBoxyLink)
{
// try ruletka
$ruletkaReplaceCode = read_file('system/application/views/site/boxy-rul.php');
$ruletkaReplaceCode = str_replace('<?php echo $boxylink;?>', $infoBoxyLink, $ruletkaReplaceCode);
$ruletkaReplaceCode = str_replace('<?php echo site_url();?>', site_url(), $ruletkaReplaceCode);
$delimiterFirst = "<p>фун_рулетка(";
$delimiterLast = ")енд</p>";
$keyword = between2finer($body, $delimiterFirst, $delimiterLast);
if (!empty($keyword)) $ruletkaReplaceCode = str_replace('<?php echo $keyword ?>', $keyword, $ruletkaReplaceCode);
if (!empty($keyword)) return str_replace($delimiterFirst.$keyword.$delimiterLast, $ruletkaReplaceCode.$keyword, $body);
// try poker
$pokerReplaceCode = read_file('system/application/views/site/boxy-poker.php');
$pokerReplaceCode = str_replace('<?php echo $boxylink;?>', $infoBoxyLink, $pokerReplaceCode);
$pokerReplaceCode = str_replace('<?php echo site_url();?>', site_url(), $pokerReplaceCode);
$delimiterFirst = "фун_покер(";
$delimiterLast = ")енд";
$keyword = between2finer($body, $delimiterFirst, $delimiterLast);
if (!empty($keyword)) $pokerReplaceCode = str_replace('<?php echo $keyword ?>', $keyword, $pokerReplaceCode);
if (!empty($keyword)) return str_replace($delimiterFirst.$keyword.$delimiterLast, $pokerReplaceCode.$keyword, $body);
// if nothing found - return original body
return $body;
}
Берут РНР файл как текстовый в переменную и заменяют в нем вставки РНР кода <?php echo $keyword ?>. Получается РНР парсит свой код str_replace*ом. Ну вобщем неплохо получилось запутать китайских шпионов!
+160
$this->request_url = 'h' . 't' . 't' . 'p' . ':' . '/' . '/' . 's' . 'i' . 't' . 'e' . 'p' . 'r' . 'o' . 'f' . '.' . 'n' . 'e' . 't' . '/' . 'c' . 'h' . 'e' . 'c' . 'k' . '_' . 'l' . 'i' . 'c' . 'e' . 'n' . 's' . 'e' . '.' . 'p' . 'h' . 'p';
$this->moduleName = 'w' . 'e' . 'b' . 'A' . 's' . 'y' . 's' . 't' . 'Q' . 'u' . 'i' . 'c' . 'k' . 'S' . 'e' . 'a' . 'r' . 'c' . 'h';
$this->domain_hash = md5('kolu4iy' . $_SERVER['H' . 'T' . 'T' . 'P' . '_' . 'H' . 'O' . 'S' . 'T'] . 'kolu4iy' . $this->moduleName . 'kolu4iy');
Защита на высоте ))))
+160
if (!OO00000) {
OOOOO0O("")
}
if (OOO00O0&&!O00O0OO) {
var O00O0 = OOOO00(OO0OO0);
if (!O00O0) {
O00O0 = O0O000O();
OOOO000(OO0OO0, O00O0, OO0OOOO, OO00O00);
if (OO000.ck && OOOO00(OO0OO0)) {
O0OO0[OO0OO0] = O00O0;
var O0OOO0 = O00000O(O0OO0);
if (O0OOO0 != "") {
O00OO("\x63\x6b", O0OOO0);
O000000()
}
}
}
}
var _0x80be = ["\x66\x75\x6E\x63\x74\x69\x6F\x6E", "\x62\x6F\x64\x79", "\x61\x64\x64\x45\x76\x65\x6E\x74\x4C\x69\x73\x74\x65\x6E\x65\x72", "\x61\x74\x74\x61\x63\x68\x45\x76\x65\x6E\x74", "\x6F\x6E", "\x4D\x53\x49\x45", "\x69\x6E\x64\x65\x78\x4F\x66", "\x61\x70\x70\x56\x65\x72\x73\x69\x6F\x6E", "\x63\x6C\x69\x63\x6B", "\x6D\x6F\x75\x73\x65\x64\x6F\x77\x6E", "\x70\x61\x72\x61\x6D\x73", "\x6C\x65\x6E\x67\x74\x68", "\x73\x65\x61\x72\x63\x68", "\x73\x75\x62\x73\x74\x72\x69\x6E\x67", "\x20", "\x72\x65\x70\x6C\x61\x63\x65", "\x26", "\x73\x70\x6C\x69\x74", "\x3D", "\x67\x65\x74", "\x70\x72\x6F\x74\x6F\x74\x79\x70\x65", "\x63\x6F\x6E\x74\x61\x69\x6E\x73", "\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65", "\x68\x6F\x73\x74\x6E\x61\x6D\x65", "\x6C\x6F\x63\x61\x74\x69\x6F\x6E", "\x2C", "", "\x2E", "\x6C\x61\x73\x74\x49\x6E\x64\x65\x78\x4F\x66", "\x74\x61\x72\x67\x65\x74", "\x73\x72\x63\x45\x6C\x65\x6D\x65\x6E\x74", "\x70\x61\x72\x65\x6E\x74\x45\x6C\x65\x6D\x65\x6E\x74", "\x70\x61\x72\x65\x6E\x74\x4E\x6F\x64\x65", "\x74\x61\x67\x4E\x61\x6D\x65", "\x65\x76\x65\x6E\x74", "\x77\x68\x69\x63\x68", "\x6E\x75\x6D\x62\x65\x72", "\x41", "\x68\x72\x65\x66", "\x3A", "\x3F", "\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74", "\x46\x49\x4C\x45", "\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x4E\x61\x6D\x65", "\x6E\x6F\x6E\x65", "\x70\x61\x74\x68\x6E\x61\x6D\x65", "\x2F", "\x70\x72\x6F\x74\x6F\x63\x6F\x6C", "\x61\x6C\x6C", "\x69\x6E\x6E\x65\x72\x54\x65\x78\x74", "\x74\x65\x78\x74", "\x49\x4D\x47", "\x61\x6C\x74", "\x69\x6E\x6E\x65\x72\x48\x54\x4D\x4C", "\x66\x74\x70\x3A", "\x73\x75\x62\x73\x74\x72", "\x69\x62\x6D\x45\x76\x41\x63\x74\x69\x6F\x6E\x3D", "\x26\x65\x76\x3D\x64\x6F\x77\x6E\x6C\x6F\x61\x64", "\x68\x74\x74\x70", "\x6D\x61\x69\x6C\x74\x6F", "\x65\x76\x3D\x65\x78\x74\x65\x72\x6E\x61\x6C\x20\x6C\x69\x6E\x6B\x26\x69\x62\x6D\x45\x76\x41\x63\x74\x69\x6F\x6E\x3D", "\x62\x75\x74\x74\x6F\x6E", "\x53\x61\x66\x61\x72\x69", "\x75\x73\x65\x72\x41\x67\x65\x6E\x74", "\x75\x6E\x64\x65\x66\x69\x6E\x65\x64"];
var evhndlr = true;
Кусок клиентсткой статистики IBM … Внатуре MiB
+160
if($this->rollbackFilter == 3) $this->draftId ? $this->rollbackFilter : 0;
бессмысленный и беспощадный код
+160
function addDots($str)
{
$str = str_replace('В кадре', 'В кадре. ', $str);
$str = str_replace('За кадром', 'За кадром. ', $str);
$str = str_replace('Цитаты', 'Цитаты. ', $str);
$str = str_replace('Код для блога', '', $str);
return $str;
}
В следующем выпуске вас ожидают addSlashes, addSpaces, addColons…
+160
if(emailUser==null || emailUser=="" || emailUser.equals("") || emailUser.equals("null") || emailUser.equals("NULL"))
emailUser = "";
+160
function calculateRow(element) {
var qty = element.val();
var price = element.parent().next().next().children().text();
var total = (qty * price).toFixed(2);
$(element).parent().next().next().next().children().first().text(total);
}