- 1
- 2
- 3
float F(){
return F0() - mu() + Fs() + Fa()+3;
}//
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+170.5
float F(){
return F0() - mu() + Fs() + Fa()+3;
}//
Говнокод "по-студенчески": Ответ не сходился на тройку... :)
Мультикасса.
+108
return ((int)(Counter / 2) != Counter / 2.00 && Counter != 0);
Не садил, так не ломай - у нас сегодня первомай :D
Оставили в продакшене, чисто для музейной ценности :D
+150.1
$var=((string)$var==(string)(int)$var)?$var:"'{$var}'";
в php подготавливался массив который затем сливался в .js файл,
и вот что бы значения различить какие в кавычках выдавать (строки), а какие без кавычек (были только целые числа) появилась на свет эта конструкция
+144.5
while (true.ToString().Length < 5)
{
}
индусы рулят!!!
+137
$users_count = count($this->db->exe('select * from px_users'));
$users = $this->db->exe('select * from px_users order by name limit ' . $from . ',' . $perpage);
−349
def MappingRights(i, s, u, d):
INS=i.split(":")
SEL=s.split(":")
UPD=u.split(":")
DEL=d.split(":")
id_group=INS[0];
right=str(int(bool(INS[1].capitalize()))) + \
str(int(bool(SEL[1].capitalize()))) + \
str(int(bool(UPD[1].capitalize()))) + \
str(int(bool(DEL[1].capitalize())))
return id_group, right;
Парсим массив с правами переданный из JavaScript.
нужно из "true" получить "1", соответственно из "false" "0"
+146
callable Malkovich() as Malkovich
def malkovich() as Malkovich:
print("Malkovich!")
return malkovich
malkovich()()()
из Boo manifest. Не говнокод конечно же.
+165.9
//Shop-Script PREMIUM
// -------------------------INITIALIZATION-----------------------------//
//include core files
include("./cfg/connect.inc.php");
include("./includes/database/".DBMS.".php");
include("./cfg/language_list.php");
include("./core_functions/functions.php");
include("./core_functions/category_functions.php");
include("./core_functions/cart_functions.php");
include("./core_functions/product_functions.php");
include("./core_functions/statistic_functions.php");
include("./core_functions/reg_fields_functions.php" );
include("./core_functions/registration_functions.php" );
include("./core_functions/country_functions.php" );
include("./core_functions/zone_functions.php" );
include("./core_functions/datetime_functions.php" );
include("./core_functions/order_status_functions.php" );
include("./core_functions/order_functions.php" );
include("./core_functions/aux_pages_functions.php" );
include("./core_functions/picture_functions.php" );
include("./core_functions/configurator_functions.php" );
include("./core_functions/option_functions.php" );
include("./core_functions/search_function.php" );
include("./core_functions/discount_functions.php" );
include("./core_functions/custgroup_functions.php" );
include("./core_functions/shipping_functions.php" );
include("./core_functions/payment_functions.php" );
include("./core_functions/tax_function.php" );
include("./core_functions/currency_functions.php" );
include("./core_functions/module_function.php" );
include("./core_functions/crypto/crypto_functions.php");
include("./core_functions/quick_order_function.php" );
include("./core_functions/setting_functions.php" );
include("./core_functions/subscribers_functions.php" );
include("./core_functions/version_function.php" );
include("./core_functions/discussion_functions.php" );
include("./core_functions/order_amount_functions.php" );
include("./core_functions/linkexchange_functions.php" );
include("./core_functions/affiliate_functions.php" );
include('./classes/xml2array.php');
include('./classes/class.virtual.shippingratecalculator.php');
include('./classes/class.virtual.paymentmodule.php');
include('./classes/class.virtual.smsmail.php');
include('./modules/smsmail/class.smsnotify.php');
MagicQuotesRuntimeSetting();
//init Smarty
require 'smarty/smarty.class.php';
500!
Весь сайт работает только на index.php. И грузит систему это безбожно.
Взято из Shop-Script PREMIUM.
+169.8
if ( isset($_GET['action']) && !isset($_GET['action']) ) {
die('Не не не, Девид Блейн, не не не!!!!! Сдрысни демон!!!!!');
}
o_O
+32
/**
* Сабж: Проверка формы
* Для каждого поля в форме было понаколбашено по отдельной(!) функции для проверки
* Но и это цветочки...
*/
// Поехали!(С)
// запуск проверки всех полей формы <- это древний комент
function checkAll()
{
var elements = new Array('avto', 'duration', 'start_adress', 'end_adress', 'orderer_name', 'orderer_phone', 'orderer_mail');
for (i = 0; i < 7; i++)
{
var curEl = document.getElementById(elements[i]);
curEl.focus(); // тут, suka, особенно жестоко!
curEl.blur(); //
}
var StatSum = "";
for (j = 0; j < 7; j++)
{
// в форме сделаны были ккрытые инпупуты, куда
// проверяющая функция писала 0 или 1 в зависимости от результата проверки
var curStat = document.getElementById(elements[j]+"Status");
if (curStat.value == "1")
{StatSum = StatSum + "1";}
if (curStat.value == "0" || curStat.value == "")
{StatSum = StatSum + "";}
}
// ну тут ваще пиздец)))
// семь нулей - это семь удачно проверенных полей формы
if (StatSum == "" || StatSum == "0000000")
{
// щёлкаем, suka, по самбмиту..
var btn = document.getElementById("submit");
btn.click();
}
return (false);
}
// занавес...
/************************************************************/
Блин, попёрло сейчас покурить свои извращения на JS двухлетней давности...
У меня истерика = )