- 1
- 2
- 3
- 4
if((5<a).toString() == "true")
{
ля-ля
}
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+141
if((5<a).toString() == "true")
{
ля-ля
}
+141
if ($_POST['form_submit'] == 'update_plugins') {
$this->con->db_nofetch('DELETE FROM `blog_plugins_status` WHERE `blog_id`=\''.$this->getState('blog_id').'\' AND ( `state`=\'none\');');
$q2 = 'UPDATE `blog_plugins_status` SET `status`=\'cancelled\' WHERE `blog_id`=\''.intval($this->blog_id).'\' AND `status`=\'semicancelled\';';
$this->con->db_nofetch($q2);
$q2 = 'UPDATE `blog_plugins_status` SET `status`=\'completed\' WHERE `blog_id`=\''.intval($this->blog_id).'\' AND `status`=\'semicompleted\';';
$this->con->db_nofetch($q2);
// updating saved versions to latest
$update_plug_ids = implode('\', \'', $this->plugins_list_update);
$q2 = 'UPDATE `blog_plugins_status` AS `bps` JOIN `blog_plugins` AS `bp` ON `bp`.`id` = `bps`.`plugin_id` SET `bps`.`plugin_version` = `bp`.`plugin_version` WHERE `bps`.`blog_id`=\''.intval($this->blog_id).'\' AND `bp`.`id` IN (\''.$update_plug_ids.'\');';
$this->con->db_nofetch($q2);
}
sdf gsdf gsdfg
+141
chdir("D:/Inetpub/ozresort/admin");
chdir("../");
Модно, да?
+141
function arr2xml($data, $rootNodeName = 'response', $xml = null) {
if ($xml == null) {
$xml = simplexml_load_string("<$rootNodeName />");
}
// loop through the data passed in.
foreach($data as $key => $value) {
// no numeric keys in our xml please!
if (is_numeric($key)) {
// make string key...
$key = "unknownNode_". (string) $key;
}
// replace anything not alpha numeric
$key = preg_replace('/[^a-z_0-9]/i', '', $key);
// if there is another array found recrusively call this function
if (is_array($value)) {
$node = $xml->addChild($key);
// recrusive call.
arr2xml($value, $rootNodeName, $node);
} else {
// add single node.
$value = $value;
$xml->addChild($key,$value);
}
}
// pass back as string. or simple xml object if you want!
$res = substr($xml->asXML(), 22);
return $res;
}
ХУЙПИЗДА ЗУМЛЬ
+141
<?php
echo 'I love antichat (:';
?>
:)
+141
<?
class
/*...*/
public function TestForwardCatKeys($keys){
$db=Loader::ClassLoad("DataBase");
$Config=Loader::ClassLoad("Configer");
$dodle=Loader::ClassLoad("Dodles_MainDodle");
/*...*/
?>
Чел не знаком в global...
+141
{ Units of time }
HoursPerDay = 24;
MinsPerDay = HoursPerDay * 60;
SecsPerDay = MinsPerDay * 60;
MSecsPerDay = SecsPerDay * 1000;
SysUtils.pas из delphi 6
+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);
}
}
?>
+140.9
Товарищ,верь,взойдёт она
Звезда пленительного счвстья...
И на обломках говнокода
Напишут наши имена...
+140.9
XElement rootNode = XDocument.Load("hospital.xml").Descendants().Descendants("mainform").Single(x => x.Attribute("value").Value.Split("\\".ToCharArray()).Contains(splitted[1]));
Весь проект в подобном говне, дебажить невозможно