- 1
- 2
- 3
- 4
- application = webapp.WSGIApplication(foo)
+ if 0==1:
+ application = webapp.WSGIApplication(foo)
+ application = webapp.WSGIApplication(bar)
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
−182
- application = webapp.WSGIApplication(foo)
+ if 0==1:
+ application = webapp.WSGIApplication(foo)
+ application = webapp.WSGIApplication(bar)
пакистанский юноша знает толк в комментариях.
−91
if ((m_window.popupBox_mc.popupBox_tf.text == "Пожалуйста обратитесь в службу поддержки и опишите действия после которых возникла ошибка. Затем обновите страницу.")||(m_window.popupBox_mc.popupBox_tf.text == "Ошибка ресурсов сервера. Пожалуйста обратитесь в службу поддержки и опишите действия после которых возникла ошибка. Затем обновите страницу.")||(m_window.popupBox_mc.popupBox_tf.text == "Ты запустил игру в двух браузерах или окнах одновременно. Закрой одно из окон и обнови страницу!")||(m_window.popupBox_mc.popupBox_tf.text == GlobalEngine.quickLocalize("FarmGame", "ServerError"))||(m_window.popupBox_mc.popupBox_tf.text == GlobalEngine.quickLocalize("FarmGame", "RefreshGame")))
{
m_window.popupBox_mc.accept_bt.visible = false;
}
+158
<?php
include("db.php");
$query = "SELECT * FROM dbtest";
$result = mysql_query($query);
$fp = fopen("~/.ihmiheiha.conf", "w");
if (!$fp)
die("Ты намутил что-то не то... ведь всё работало");
while ($row = mysql_fetch_array($result, MYSQL_NUM)) {
$ihm=$row[0];
$ihe=$row[1];
$iha=$row[2];
$filed = "tnkf: $ihm, tnkd: $ihe, tnka: $iha";
fwrite($fp, $filed);
}
mysql_close ( $db );
fclose($fp);
?>
<html>
<body>
<form action='del.php' method='post'>
<?php
include("db.php");
$query = "SELECT * FROM dhcpd";
$result = mysql_query ( $query );
$n = mysql_num_rows ( $result );
for ( $i=0; $i<$n; $i++ )
{
$row = mysql_fetch_array($result);
echo "<p><b><input type='checkbox' name='".($i+1)."' value='1'>";
echo " ".($i+1).". Host: $row[ihm]</b></br>";
echo "<b>MAC адрес:</b> $row[ihe]<br>";
echo "<b>IP адрес:</b> $row[iha]</p>";
}
if ( $n == 0 ) echo "Никого нет.";
mysql_close ( $db );
?>
</form>
<center>
<div style="float:left">
<FORM ACTION="add.php">
<INPUT TYPE="submit" VALUE="Добавить">
</FORM></div>
<div style="float:left">
<FORM ACTION="del.php">
<INPUT TYPE="submit" VALUE="Удалить">
</FORM>
</div>
<div style="float:left">
<FORM ACTION="<?php echo $PHP_SELF?>">
<INPUT TYPE="submit" VALUE="Применить изменения">
</FORM>
</div>
</center>
</body>
</html>
+162
$i = 0;
while ($recup[$i] || $stop != 1){
if ($recup[$i] == 'u' && $recup[$i + 1] == 's' && $recup[$i + 2] == 'e' && $recup[$i + 3] == 'r' && $recup[$i + 4] == '/'){
$k = $i;
$stop = 1;
}
$i++;
}
$k += 5;
$j = 0;
while ($recup[$k] != '/'){
$uid_friend[$j] = $recup[$k];
$k++;
$j++;
}
$l = 0;
while ($uid_friend[$l]){
$final_uid = $final_uid.$uid_friend[$l];
$l++;
}
выборка из html кода строки вида .../user/123123/...
+161
var CURRENCY = {$company_info|@json_encode}.currency;
Вот такой код встретился в проекте в одном из Smarty шаблонов
$company_info - некий ассоциативный массив.
+167
function my_sql_query($query){
return mysql_query($query);
}
−107
try
{
compressedData.uncompress();
}
catch (e:Error)
{
throw e;
}
−860
SELECT i.id AS i__id, i.title AS i__title, i.description AS i__description, i.meta_title AS i__meta_title, i.meta_keywords AS i__meta_keywords, i.meta_description AS i__meta_description, i.lang AS i__lang FROM item_translation i WHERE (i.id IN ('8845'))
0.00s, "doctrine" connection
#
SELECT t.id AS t__id, t.source AS t__source, t.target AS t__target, t.lang AS t__lang FROM translation t WHERE (t.source = 'Акция' AND t.lang = 'ru') LIMIT 1
0.00s, "doctrine" connection
#
SELECT t.id AS t__id, t.source AS t__source, t.target AS t__target, t.lang AS t__lang FROM translation t WHERE (t.source = 'Акция' AND t.lang = 'ru') LIMIT 1
0.00s, "doctrine" connection
#
SELECT t.id AS t__id, t.source AS t__source, t.target AS t__target, t.lang AS t__lang FROM translation t WHERE (t.source = 'Розница' AND t.lang = 'ru') LIMIT 1
0.00s, "doctrine" connection
#
SELECT t.id AS t__id, t.source AS t__source, t.target AS t__target, t.lang AS t__lang FROM translation t WHERE (t.source = 'Оптом' AND t.lang = 'ru') LIMIT 1
0.00s, "doctrine" connection
#
SELECT t.id AS t__id, t.source AS t__source, t.target AS t__target, t.lang AS t__lang FROM translation t WHERE (t.source = 'Безнал' AND t.lang = 'ru') LIMIT 1
0.00s, "doctrine" connection
#
SELECT t.id AS t__id, t.source AS t__source, t.target AS t__target, t.lang AS t__lang FROM translation t WHERE (t.source = 'Дилер' AND t.lang = 'ru') LIMIT 1
0.00s, "doctrine" connection
#
SELECT t.id AS t__id, t.source AS t__source, t.target AS t__target, t.lang AS t__lang FROM translation t WHERE (t.source = 'Кредит' AND t.lang = 'ru') LIMIT 1
0.00s, "doctrine" connection
#
SELECT p.id AS p__id, p.item_id AS p__item_id, p.type AS p__type, p.currency AS p__currency, p.value AS p__value, p.date AS p__date FROM price p WHERE (p.item_id = '8845' AND p.type = 'A') ORDER BY p.date DESC LIMIT 1
0.00s, "doctrine" connection
#
SELECT t.id AS t__id, t.source AS t__source, t.target AS t__target, t.lang AS t__lang FROM translation t WHERE (t.source = 'В корзину' AND t.lang = 'ru') LIMIT 1
0.00s, "doctrine" connection
#
SELECT t.id AS t__id, t.source AS t__source, t.target AS t__target, t.lang AS t__lang FROM translation t WHERE (t.source = 'В корзину' AND t.lang = 'ru') LIMIT 1
0.00s, "doctrine" connection
Это часть запросов которые выполняются для генерации главной страницы для одного интернет магазина. И таких запросов: 360 :-)
+146
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td id="menu"><a id="1" href="javascript:void(0);">Link 1</a></td>
<td id="menu"><a id="2" href="javascript:void(0);">Link 2</a></td>
<td id="menu"><a id="3" href="javascript:void(0);">Link 3</a></td>
</tr>
</table>
ну вкладки html тут нет
−117
Если пФорма<>1 Тогда
СтрокаСФ="№";
Иначе
СтрокаСФ="№";
КонецЕсли;
Загадочное условие в печатной форме ветеринарного свидетельства :)