- 1
http://picomot.ru/
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+146
http://picomot.ru/
Наговнокодили тут новый проект
+170
function load_class($module, $class) {
$class_inc = strtoupper($class) . "_INC";
$file_inc = $class . ".inc";
if (!file_exists(MODROOT.$module."/lib/".$class.".inc")) {
echo "ERROR Loading Class: $class<BR>";
echo " Loading Module: $module<BR>";
// echo MODROOT.$module."/lib/".$class.".inc";
exit;
}
else {
$load_class = "if (!defined(\"".$class_inc."\")) {";
$load_class .= "include(\"".MODROOT.$module."/lib/". $file_inc ."\");";
$load_class .= "define(\"".$class_inc."\",\"1\");";
$load_class .= "}";
}
return $load_class;
}
// вызов
eval(load_class("module", "className"));
Fffuf
−98
amount = ('-' + batch['settleAmount'].to_s).to_i
работа с платежными системами требует вдумчивости и оригинальности.
+962
bool isVisible = Convert.ToBoolean(Convert.ToBoolean(paramsArr[3]));
чтоб наверняка :)
+163
WCHAR *qStringToWideChar(const QString &str) {
if (str.isNull())
return 0;
WCHAR *result = new WCHAR[str.length() + 1];
for (unsigned int i = 0; i < str.length(); ++i)
result[i] = str[i].unicode();
result[str.length()] = 0;
return result;
}
Опять неосиляторы ассистента издеваются над Qt.
+961
//МегаДекодер)
_word = HttpUtility.UrlEncode(HttpUtility.UrlDecode(SearchDataHelper.RemoveSpecialCharacters(word, true)));
+151
<?
if(!defined('Hacking')) { die('Hacking attempt!'); exit;}
$database_user_name="demo";
$database_password="demo";
$database_name="demo";
$display_errors = false;
$AdminEmail="[email protected]";
$bpref="demo";
$domenname="demo";
function connect_db()
{
global $database_user_name, $database_password;
$db=mysql_connect("localhost",$database_user_name,$database_password) or die ("Could not connect");
mysql_query("SET NAMES cp1251") or die("Invalid query: " .mysql_error());
return $db;
}
function db_name()
{
global $database_name;
$db_name=$database_name;
return $db_name;
}
function get_now()
{
$db=connect_db();
$db_name=db_name();
mysql_select_db($db_name,$db);
$sql="select now() as now";
$result=mysql_query($sql,$db);
$myrow=mysql_fetch_array($result);
$now=$myrow["now"];
return $now;
}
function puterror($message)
{
echo("<p>$message</p>");
exit();
}
foreach($_GET as $chexss) {
if((eregi("<[^>]*script[^>]*>", $chexss)) || (eregi("<[^>]*object[^>]*>", $chexss)) ||
(eregi("<[^>]*iframe[^>]*>", $chexss)) || (eregi("<[^>]*applet[^>]*>", $chexss)) ||
(eregi("<[^>]*meta[^>]*>", $chexss)) || (eregi("<[^>]*style[^>]*>", $chexss)) ||
(eregi("<[^>]*form[^>]*>", $chexss)) || (eregi("\([^>][^)]*\)", $chexss)) ||
(eregi("<[^>]*frameset[^>]*>", $chexss)) || (eregi("<[^>]*onmouseover[^>]*>", $chexss)) ||
(eregi("<[^>]*img[^>]*>", $chexss)) || (eregi("\"", $chexss)) || (eregi("'", $chexss))){
die("Попытка ХАКА !");
}
}
$zzzz = html_entity_decode(urldecode($_SERVER['QUERY_STRING']));
if ($zzzz) {
if ((strpos($zzzz, '<') !== false) ||
(strpos($zzzz, '>') !== false) ||
(strpos($zzzz, '"') !== false) ||
(strpos($zzzz, './') !== false) ||
(strpos($zzzz, '../') !== false) ||
(strpos($zzzz, '\'') !== false) ||
(strpos($zzzz, '.pl') !== false) ||
(strpos($zzzz, '.php') !== false))
{
die("Попытка ХАКА !");
}
}
$zamena_b = array( "\x27", "\x22", "\x60", "\t",'\n','\r', '\\', "'","¬","#",";","~","[","]","{","}","=","-","+",")","(","*","&","^","%","$","<",">","?","!",".pl", ".php",'"' );
$_GET = str_replace($zamena_b, '', $_GET);
$_POST = str_replace($zamena_b, '', $_POST);
$_SESSION = str_replace($zamena_b, '', $_SESSION);
$_COOKIE = str_replace($zamena_b, '', $_COOKIE);
$_ENV = str_replace($zamena_b, '', $_ENV);
$_FILES = str_replace($zamena_b, '', $_FILES);
$_REQUEST = str_replace($zamena_b, '', $_REQUEST);
$_SERVER = str_replace($zamena_b, '', $_SERVER);
?>
Просторы интернета богаты... Так вот люди работают с СУБД
+139
bool aiccu_os_install(void)
{
/* Check if IPv6 support is available */
if (access("/proc/net/if_inet6", F_OK))
{
/* Doing the modprobe doesn't guarantee success unfortunately */
(void)system("modprobe -q ipv6 2>/dev/null >/dev/null");
/* Thus test it again */
if (access("/proc/net/if_inet6", F_OK))
{
dolog(LOG_ERR, "No IPv6 Stack found! Please check your kernel and module configuration\n");
return false;
}
}
/* Try to load modules (SIT tunnel, TUN/TAP)
* They can be kernel builtins and there is no easy
* way to check if they are loaded/built except for
* trying to use them and fail at that point
*/
(void)system("modprobe -q sit 2>/dev/null >/dev/null");
(void)system("modprobe -q tun 2>/dev/null >/dev/null");
return true;
}
+154
function getDateFromTime($dataTime){
$strDate = date('d-m-Y', $dataTime);
$arrDate = explode('-', $strDate);
return mktime(0, 0, 0, $arrDate[1], $arrDate[0], $arrDate[2]);
}
руки-жопа-голова%)
+159
#include <math.h>
#include <iostream>
using namespace std;
void main()
{ int month,day;
cin>>month,day;
int den=1;
switch(month)
{ case 1: cout<<"month: "<<month<<endl<<"day: "<<day+1;
if(day==31){cout<<"month: "<<month+1<<endl<<den;}
break;
case 2: cout<<"month: "<<month<<endl<<"day: "<<day+1;
if(day==28){cout<<"month: "<<month+1<<endl<<"day: "<<den;}
break;
case 3:cout<<"month: "<<month<<endl<<"day: "<<day+1;
if(day==31){cout<<"month: "<<month+1<<endl<<"day: "<<den;}
break;
case 4:cout<<"month: "<<month<<endl<<"day: "<<day+1;
if(day==30){cout<<"month: "<<month+1<<endl<<"day: "<<den;}
break;
case 5: cout<<"month: "<<month<<endl<<"day: "<<day+1;
if(day==31){cout<<"month: "<<month+1<<endl<<"day: "<<den;}
break;
case 6: cout<<"month: "<<month<<endl<<"day: "<<day+1;
if(day==30){cout<<"month: "<<month+1<<endl<<"day: "<<den;}
break;
case 7: cout<<"month: "<<month<<endl<<"day: "<<day+1;
if(day==31){cout<<"month: "<<month+1<<endl<<"day: "<<den;}
break;
case 8: cout<<"month: "<<month<<endl<<"day: "<<day+1;
if(day==31){cout<<"month: "<<month+1<<endl<<"day: "<<den;}
break;
case 9: cout<<"month: "<<month<<endl<<"day: "<<day+1;
if(day==30){cout<<"month: "<<month+1<<endl<<"day: "<<den;}
break;
case 10: cout<<"month: "<<month<<endl<<"day: "<<day+1;
if(day==31){cout<<"month: "<<month+1<<endl<<"day: "<<den;}
break;
case 11: cout<<"month: "<<month<<endl<<"day: "<<day+1;
if(day==30){cout<<"month: "<<month+1<<endl<<"day: "<<den;}
break;
case 12: cout<<"month: "<<month<<endl<<"day: "<<day+1;
if(day==31){cout<<"month: "<<month+1<<endl<<"day: "<<den;}
}
cin.get();
cin.get();
}