- 1
string k = Convert.ToString(s_kto.Text);
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+965.2
string k = Convert.ToString(s_kto.Text);
s_kto - TextBox
+167.6
function BOOK_list() {
document.getElementById('rbLoadedId_list').style.display='block';
document.getElementById('rbLoadedId_blogs').style.display='none';
document.getElementById('rbLoadedId_free').style.display='none';
document.getElementById('rbLoadedId_add').style.display='none';
document.getElementById('rbLoadedId_friend').style.display='none';
document.getElementById('rbLoadedId_award').style.display='none';
document.getElementById('0rbLoadedId_list').className='act';
document.getElementById('0rbLoadedId_blogs').className='book';
document.getElementById('0rbLoadedId_free').className='book';
document.getElementById('0rbLoadedId_add').className='book';
document.getElementById('0rbLoadedId_friend').className='book';
document.getElementById('0rbLoadedId_award').className='book';
}
function BOOK_blogs() {
document.getElementById('rbLoadedId_list').style.display='none';
document.getElementById('rbLoadedId_blogs').style.display='block';
document.getElementById('rbLoadedId_free').style.display='none';
document.getElementById('rbLoadedId_add').style.display='none';
document.getElementById('rbLoadedId_friend').style.display='none';
document.getElementById('rbLoadedId_award').style.display='none';
document.getElementById('0rbLoadedId_list').className='book';
document.getElementById('0rbLoadedId_blogs').className='act';
document.getElementById('0rbLoadedId_free').className='book';
document.getElementById('0rbLoadedId_add').className='book';
document.getElementById('0rbLoadedId_friend').className='book';
document.getElementById('0rbLoadedId_award').className='book';
}
JS-табы по-китайски. Взято отсюда — http://vkurse.net.ru/js/info.js
Это только первые 2 функции, в источнике ещё больше
+166.8
function trim(text) {
if (text.length == 0) {
return text;
}
if (text.charAt(0) == ' ') {
return '';
}
if (text.charAt(text.length-1) == ' ') {
text = text.substring(0, text.length-1);
}
return text;
}
суровый китайский trim...
+145.7
<?php
do{
$id=$test['id'];
?>
...
<?php
}while($test = mysql_fetch_array($temp));
?>
+151.2
<body onload="blinkAfterSearch();setTimeout('loadDummyImg()', 590000);var ex; try { startUpTasks(); } catch(ex) {}" />
Недавно отрыл в недрах нашего проекта! Try catch в onload!! :D
+150.7
var Scroller = function (scroll_left,scroll_right,visible_part,scroll_part) {
this.scroll_right = jQuery(scroll_left); //scroll to left
this.scroll_left = jQuery(scroll_right); //scroll to right
this.slider = jQuery(scroll_part); //scroll element
this.visible_part = jQuery(visible_part);
this.width_slider_elements = this.slider.width();
this.width_slider_element = this.slider.find('li:eq(0)').width();
this.width_visible_part = this.visible_part.width();
this.temp_process = true;
if(this.width_slider_elements < this.width_visible_part) {temp_process = false;}
var self = this;
this.scroll_left.click(function()
{
if (self.temp_process) {
self.temp_process = false;
self.slide(true);
}
return false;
});
this.scroll_right.click(function()
{
if (self.temp_process) {
self.temp_process = false;
self.slide(false);
}
return false;
});
return this;
};
Scroller.prototype.slide = function (side) {
var self = this;
var shift = (self.width_visible_part - self.width_slider_element)/2;
var current_shift = Math.abs(self.slider.css('left').replace('px',''));
if (side) { //left
shift = (current_shift+shift+self.width_visible_part) > self.width_slider_elements ? self.width_slider_elements - current_shift - self.width_visible_part : shift;
self.slider.animate({left: '-='+shift+'px'}, 1000, function(){ self.temp_process = true;});
} else { //right
shift = shift > current_shift ? current_shift : shift;
self.slider.animate({left: '+='+shift+'px'}, 1000, function(){ self.temp_process = true;});
}
return shift;
};
+156.5
<?
function antimat ($string = "", $replace = "")
{
if (!$replace) $replace="[beep]";
$slovar = "уроды мудаки скоты чмо манда /* ...и много чего еще в том же духе*/ ";
$ar_slovar = explode(" ", $slovar);
$ar_string = explode(" ", $string);
$result = "";
foreach ($ar_string as $string) {
foreach ($ar_slovar as $slovar) {
if ($string==$slovar) $string = str_replace($slovar, $replace, $string);
}
$result.= $string." ";
}
return $result;
}//function
?>
Гениальная реализация антимата. Стояла на одном весьма солидном сайте, забавляя юзеров гостевой.
А вы не знали, что слова "команда" и "подстрахуй" - ужасно нецензурные?
+166.5
$now=mktime(date("H"),date("i"),date("s"),date("m"),date("d"),date("Y"));
+169.3
<?if($arResult["MORE_PHOTO"]["0"]):?>
<a href="<?=$arResult["MORE_PHOTO"]["1"]["SRC"]?>">
<img src="<?=$arResult["MORE_PHOTO"]["0"]["SRC"]?>" alt="" width="<?=$arResult["MORE_PHOTO"]["0"]["WIDTH"]?>" height="<?=$arResult["MORE_PHOTO"]["0"]["HEIGHT"]?>" />
</a><?endif;?>
<?if($arResult["MORE_PHOTO"]["2"]):?>
<a href="<?=$arResult["MORE_PHOTO"]["3"]["SRC"]?>">
<img src="<?=$arResult["MORE_PHOTO"]["2"]["SRC"]?>" alt="" width="<?=$arResult["MORE_PHOTO"]["2"]["WIDTH"]?>" height="<?=$arResult["MORE_PHOTO"]["2"]["HEIGHT"]?>" />
</a><?endif;?>
<?if($arResult["MORE_PHOTO"]["4"]):?>
<a href="<?=$arResult["MORE_PHOTO"]["5"]["SRC"]?>">
<img src="<?=$arResult["MORE_PHOTO"]["4"]["SRC"]?>" alt="" width="<?=$arResult["MORE_PHOTO"]["4"]["WIDTH"]?>" height="<?=$arResult["MORE_PHOTO"]["4"]["HEIGHT"]?>" />
</a><?endif;?>
.............
/* и так далее*/
.............
<?if($arResult["MORE_PHOTO"]["26"]):?>
<a href="<?=$arResult["MORE_PHOTO"]["27"]["SRC"]?>">
<img src="<?=$arResult["MORE_PHOTO"]["26"]["SRC"]?>" alt="" width="<?=$arResult["MORE_PHOTO"]["26"]["WIDTH"]?>" height="<?=$arResult["MORE_PHOTO"]["26"]["HEIGHT"]?>" />
</a><?endif;?>
Вот он чудо код написанный говнокодерами фирмы РазработкаСайтов.su так держать :) молодцы.
Еще в коде замечено такое условие... если есть первая фотография, то ссылка ставится на вторую фотографию, если есть вторая фотография, то ссылка на третью ))) Порадовали ребята :)
PS в коде коммент "/* и так далее */" это мой... там просто было тоже самое, только менялось ID фотки :)))))
−169
SELECT NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
type_table_of_name_tag_value ()
FROM DUAL
WHERE dummy = 'Z'