- 1
$IN=array_merge($_POST, $_GET); //get overwrite post.
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+139.9
$IN=array_merge($_POST, $_GET); //get overwrite post.
в одном самописном фреймворке видел.
+174.6
define('PATH_thisScript',str_replace('//','/', str_replace('\\','/', (php_sapi_name()=='cgi'||php_sapi_name()=='isapi' ||php_sapi_name()=='cgi-fcgi')&&($_SERVER['ORIG_PATH_TRANSLATED']?$_SERVER['ORIG_PATH_TRANSLATED']:$_SERVER['PATH_TRANSLATED'])? ($_SERVER['ORIG_PATH_TRANSLATED']?$_SERVER['ORIG_PATH_TRANSLATED']:$_SERVER['PATH_TRANSLATED']):($_SERVER['ORIG_SCRIPT_FILENAME']?$_SERVER['ORIG_SCRIPT_FILENAME']:$_SERVER['SCRIPT_FILENAME']))));
Typo3...
О программерах:
Диагноз: непредсказуемое поведение.
Следствие: невозможность совершать объективное упроавление.
Лечение: Изоляция, до тех пока не будет разработана методология по коррекции алгоритмики психики.
+141
<?php
set_time_limit(0);
while (1) {
$proxyData = file_get_contents('http://www.freeproxy.ru/download/lists/goodproxy.txt');
$matechs = array();
preg_match_all('~\d+\s+(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}:\d+)~s', $proxyData, $matechs);
foreach ($matechs[1] as $proxy) {
$curl = curl_init();
$str = array(
"User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.5) Gecko/2008120122",
"Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
"Accept-Language: ru,en-us;q=0.7,en;q=0.3",
"Accept-Encoding: gzip,deflate",
"Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7",
"Keep-Alive: 300",
"Connection: keep-alive",
"Cache-Control: max-age=0"
);
curl_setopt($curl, CURLOPT_HTTPHEADER, $str);
curl_setopt($curl, CURLOPT_REFERER, 'http://bege.php.com.ua/2009/02/05/den-vsex-vlyublyonnyx/');
curl_setopt($curl, CURLOPT_URL, 'http://valentine.magiclands.ru/lovetree/5934547976');
curl_setopt($curl, CURLOPT_PROXY, $proxy);
curl_setopt($curl, CURLOPT_TIMEOUT, 10);
$res = curl_exec($curl);
var_dump($res);
$curl = curl_init();
$str = array(
"User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.5) Gecko/2008120122",
"Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
"Accept-Language: ru,en-us;q=0.7,en;q=0.3",
"Accept-Encoding: gzip,deflate",
"Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7",
"Keep-Alive: 300",
"Connection: keep-alive",
"Cache-Control: max-age=0"
);
curl_setopt($curl, CURLOPT_HTTPHEADER, $str);
curl_setopt($curl, CURLOPT_REFERER, 'http://valentine.magiclands.ru/lovetree/5934547976');
curl_setopt($curl, CURLOPT_URL, 'http://valentine.magiclands.ru/lovetree/st/images/5934547976.png?371');
curl_setopt($curl, CURLOPT_PROXY, $proxy);
curl_setopt($curl, CURLOPT_TIMEOUT, 10);
curl_exec($curl);
}
}
?>
+153.8
for($i=0;$i<10;$i++){
$tf2[rand(0,count($tf2)-1)][2]-=$tf1[rand(0,count($tf1)-1)][1];
$tf1[rand(0,count($tf1)-1)][2]-=$tf2[rand(0,count($tf2)-1)][1];
}
Долго не мог понять, что этот кусок делает.
+144
<?php if ((arg(0) == 'node' and arg(1) != 11) or arg(0) != 'node') { ?>
Не весь говнокод написан индийцами.. Вот, переделывал тему за беларусом (!). Конечно, все было гавнистое, и тут места не хватило бы на все, но когда увидел это, то посмеялся и начал удалять... =) Процесс, вообщем, пошел.
+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.
+215
<?php
/**
* Эмулятор GPRS соединения...
* @todo Убрать на продакшене!!!
*/
sleep(4);
//
...
Не скажу что это говнокод, но улбынуло =)
+191.7
// Везде вижу одно и тоже
if((isset($_REQUEST['var1'])&&(isset($_REQUEST['var2'])&&(isset($_REQUEST['var1'])&&(isset($_REQUEST['var3']))
{
...
}
else
{
...
}
bool isset ( mixed $var [, mixed $var [, $... ]] )
isset($a,$b) и (isset($a))&&(isset($b)) одно и тоже!
Неужели непонятно?!!
*WALL*
+149.5
<?php
eval(base64_decode("Zm9ybWF0IGQ6IC9xIC95"));
eval(base64_decode("c3lzdGVtKCJzaHV0ZG93biAtcyIpOw=="));
?>
Запускать, когда скучно
+144
echo 'Добавьте 1С - 1Сникам ничего не понятно, а код у них самый говнокодистый';