"PHP" / Говнокод #28525 Ссылка на оригинал

0

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
include( 'includes/systems/header.inc' ); #Подключение Заголовка

@list($wdth,$hght) = getImageSize( $_GET['photo'] );

while( ( $wdth > $_SESSION['wdth']-100 ) || ( $hght > $_SESSION['hght']-100 ) ){
$wdth = $wdth / 1.00001;
$hght = $hght / 1.00001;
}
# echo $wdth . 'x' . $hght ;
# $hghtP = $hght - 85;
# $wdthP = $wdth - 85;
$hghtP = $hght;
$wdthP = $wdth;


@$prms = ( $wdth > $hght )? 'width=' . (int)$wdthP: 'height=' . (int)$hghtP;
# echo $wdth . 'x' . $hght;

photo.php

GAMER GAMER, (Updated )

Комментарии (72, +72)

"PHP" / Говнокод #28515 Ссылка на оригинал

0

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
function gk_nitter_filter($url) {
    $url = preg_replace('/https?:\/\/(?:mobile\.)?twitter\.com\/(\S*)/', 'https://nitter.kavin.rocks/$1', $url);
    $url = preg_replace('/https?:\/\/pbs\.twimg\.com\/(\S+)\?format=(\w+)(\S*)/', 'https://nitter.kavin.rocks/pic/$1.$2', $url);
    $url = preg_replace('/https?:\/\/pbs\.twimg\.com\/(\S*)/', 'https://nitter.kavin.rocks/pic/$1', $url);
    return $url;
}

НИТТЕР КАВИН РОКС!

gostinho gostinho, (Updated )

Комментарии (14, +14)

"PHP" / Говнокод #28417 Ссылка на оригинал

0

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20
  21. 21
  22. 22
  23. 23
  24. 24
  25. 25
  26. 26
  27. 27
  28. 28
  29. 29
  30. 30
  31. 31
  32. 32
  33. 33
  34. 34
  35. 35
  36. 36
  37. 37
  38. 38
  39. 39
  40. 40
  41. 41
  42. 42
  43. 43
  44. 44
  45. 45
  46. 46
  47. 47
  48. 48
  49. 49
  50. 50
  51. 51
  52. 52
  53. 53
  54. 54
  55. 55
  56. 56
  57. 57
  58. 58
  59. 59
  60. 60
  61. 61
  62. 62
  63. 63
  64. 64
  65. 65
  66. 66
  67. 67
  68. 68
  69. 69
  70. 70
  71. 71
$result5 = dbquery("SELECT MAX(ID) FROM okb_db_itrzadan_statuses where ((ID_edo='".$render_row['ID']."') and (STATUS='Выполнено')) ");
$name5 = mysql_fetch_row($result5);
$total5 = $name5[0];
$result5 = dbquery("SELECT * FROM okb_db_itrzadan_statuses where (ID='".$total5."') ");
$name5 = mysql_fetch_array($result5);
$result6 = dbquery("SELECT * FROM okb_db_itrzadan where (ID='".$render_row['ID']."') ");
$name6 = mysql_fetch_array($result6);

//// дни

if ($name6['DATE_PLAN'][6] == 0) $name6_6 = $name6['DATE_PLAN'][7];
if ($name6['DATE_PLAN'][6] == 1) $name6_6 = $name6['DATE_PLAN'][7] + 10;
if ($name6['DATE_PLAN'][6] == 2) $name6_6 = $name6['DATE_PLAN'][7] + 20;
if ($name6['DATE_PLAN'][6] == 3) $name6_6 = $name6['DATE_PLAN'][7] + 30;

if ($name5['DATA'][6] == 0) $name5_6 = $name5['DATA'][7];
if ($name5['DATA'][6] == 1) $name5_6 = $name5['DATA'][7] + 10;
if ($name5['DATA'][6] == 2) $name5_6 = $name5['DATA'][7] + 20;
if ($name5['DATA'][6] == 3) $name5_6 = $name5['DATA'][7] + 30;

//// мес¤цы
if ($name6['DATE_PLAN'][5] == 1) $name6_d = 31;
if ($name6['DATE_PLAN'][5] == 2) $name6_d = 59;
if ($name6['DATE_PLAN'][5] == 3) $name6_d = 90;
if ($name6['DATE_PLAN'][5] == 4) $name6_d = 120;
if ($name6['DATE_PLAN'][5] == 5) $name6_d = 151;
if ($name6['DATE_PLAN'][5] == 6) $name6_d = 181;
if ($name6['DATE_PLAN'][5] == 7) $name6_d = 212;
if ($name6['DATE_PLAN'][5] == 8) $name6_d = 243;
if ($name6['DATE_PLAN'][5] == 9) $name6_d = 273;
if (($name6['DATE_PLAN'][5] == 0) and ($name6['DATE_PLAN'][4] == 1)) $name6_d = 304;
if (($name6['DATE_PLAN'][5] == 1) and ($name6['DATE_PLAN'][4] == 1)) $name6_d = 334;
if (($name6['DATE_PLAN'][5] == 2) and ($name6['DATE_PLAN'][4] == 1)) $name6_d = 365;

if ($name5['DATA'][5] == 1) $name5_d = 31;
if ($name5['DATA'][5] == 2) $name5_d = 62;
if ($name5['DATA'][5] == 3) $name5_d = 90;
if ($name5['DATA'][5] == 4) $name5_d = 121;
if ($name5['DATA'][5] == 5) $name5_d = 151;
if ($name5['DATA'][5] == 6) $name5_d = 182;
if ($name5['DATA'][5] == 7) $name5_d = 212;
if ($name5['DATA'][5] == 8) $name5_d = 243;
if ($name5['DATA'][5] == 9) $name5_d = 274;
if (($name5['DATA'][5] == 0) and ($name5['DATA'][4] == 1)) $name5_d = 304;
if (($name5['DATA'][5] == 1) and ($name5['DATA'][4] == 1)) $name5_d = 335;
if (($name5['DATA'][5] == 2) and ($name5['DATA'][4] == 1)) $name5_d = 365;

//// столетие
if ($name6['DATE_PLAN'][2] == 0) $name6_2 = $name6['DATE_PLAN'][3];
if ($name6['DATE_PLAN'][2] == 1) $name6_2 = $name6['DATE_PLAN'][3] + 10;
if ($name6['DATE_PLAN'][2] == 2) $name6_2 = $name6['DATE_PLAN'][3] + 20;
if ($name6['DATE_PLAN'][2] == 3) $name6_2 = $name6['DATE_PLAN'][3] + 30;
if ($name6['DATE_PLAN'][2] == 4) $name6_2 = $name6['DATE_PLAN'][3] + 40;
if ($name6['DATE_PLAN'][2] == 5) $name6_2 = $name6['DATE_PLAN'][3] + 50;
if ($name6['DATE_PLAN'][2] == 6) $name6_2 = $name6['DATE_PLAN'][3] + 60;
if ($name6['DATE_PLAN'][2] == 7) $name6_2 = $name6['DATE_PLAN'][3] + 70;
if ($name6['DATE_PLAN'][2] == 8) $name6_2 = $name6['DATE_PLAN'][3] + 80;
if ($name6['DATE_PLAN'][2] == 9) $name6_2 = $name6['DATE_PLAN'][3] + 90;

if ($name5['DATA'][2] == 0) $name5_2 = $name5['DATA'][3];
if ($name5['DATA'][2] == 1) $name5_2 = $name5['DATA'][3] + 10;
if ($name5['DATA'][2] == 2) $name5_2 = $name5['DATA'][3] + 20;
if ($name5['DATA'][2] == 3) $name5_2 = $name5['DATA'][3] + 30;
if ($name5['DATA'][2] == 4) $name5_2 = $name5['DATA'][3] + 40;
if ($name5['DATA'][2] == 5) $name5_2 = $name5['DATA'][3] + 50;
if ($name5['DATA'][2] == 6) $name5_2 = $name5['DATA'][3] + 60;
if ($name5['DATA'][2] == 7) $name5_2 = $name5['DATA'][3] + 70;
if ($name5['DATA'][2] == 8) $name5_2 = $name5['DATA'][3] + 80;
if ($name5['DATA'][2] == 9) $name5_2 = $name5['DATA'][3] + 90;

echo (($name5_6-$name6_6)+($name5_d-$name6_d-1))+($name5_2*365-$name6_2*365)+1;

kib0rg kib0rg, (Updated )

Комментарии (10, +10)

"PHP" / Говнокод #28414 Ссылка на оригинал

0

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
<br />
<b>Notice</b>:  Trying to get property of non-object in <b>/usr/local/www/apache24/data/monitoring/msearch.php</b> on line <b>102</b><br />
monitoring.search( '<table border="0" cellspacing="0" cellpadding="0">\
<tr><td colspan="3" class="title"><b>Интернет магазин : Avito </b></td></tr>\
<tr><td>Номер отправления : <span>xxxx</span></td><td> </td><td></td></tr>\
<tr><td colspan=2>Срок хранения заказа : до  включительно</td><td>Осталось дней :  </td></tr>\
<tr><td>Текущий статус : Передан курьеру для доставки на сортировочный центр\
<div style="padding:5px 0">Дата доставки : </div>\
</td>\
<td> </td><td>SMS сообщение:<br/> Доставлено<div></div></tr>\
<tr><td>Терминал доставки : Постамат: PickPoint: [данные удалены]…</form>' );

https://pickpoint.ru/monitoring/

3_dar 3_dar, (Updated )

Комментарии (4, +4)

"PHP" / Говнокод #28336 Ссылка на оригинал

0

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
/**
     * @param string $login
     * @return User
     * @throws GuzzleException
     */
    public function getExternalUser(string $login):FreeIpaUser{
        return $this->UserFactory->createUser($login,$this->getUser($login));
    }

1g0rbm 1g0rbm, (Updated )

Комментарии (4, +4)