1. PHP / Говнокод #28525

    0

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    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, 26 Декабря 2022

    Комментарии (70)
  2. PHP / Говнокод #28515

    +1

    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, 20 Декабря 2022

    Комментарии (12)
  3. PHP / Говнокод #28487

    −1

    1. 1
    Eb!

    Хрюк-хрюк-хрюк-хрюк

    CBuHOKYP, 12 Декабря 2022

    Комментарии (0)
  4. PHP / Говнокод #28459

    −2

    1. 1
    А ведь были времена.

    rotoeb, 25 Ноября 2022

    Комментарии (2)
  5. PHP / Говнокод #28417

    0

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    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, 13 Октября 2022

    Комментарии (10)
  6. PHP / Говнокод #28414

    0

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    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>&nbsp;</td><td></td></tr>\
    <tr><td colspan=2>Срок хранения заказа : до  включительно</td><td>Осталось дней :  </td></tr>\
    <tr><td>Текущий статус : Передан курьеру для доставки на сортировочный центр\
    <div style="padding:5px 0">Дата доставки : </div>\
    </td>\
    <td>&nbsp;</td><td>SMS сообщение:<br/> Доставлено<div></div></tr>\
    <tr><td>Терминал доставки : Постамат: PickPoint: [данные удалены]…</form>' );

    https://pickpoint.ru/monitoring/

    3_dar, 11 Октября 2022

    Комментарии (4)
  7. PHP / Говнокод #28369

    +1

    1. 1
    С днём программиста, питухи!

    И курицы.

    3_dar, 13 Сентября 2022

    Комментарии (17)
  8. PHP / Говнокод #28336

    +1

    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, 16 Августа 2022

    Комментарии (4)
  9. PHP / Говнокод #28314

    −1

    1. 1
    За "PHP".

    DECAHTHblu_nemyx, 02 Августа 2022

    Комментарии (13)
  10. PHP / Говнокод #28262

    0

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    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
    72. 72
    function IntToDate2($x) {
    		$dd = $x*1;
    		$dd_Y = floor($dd/10000);
    		$dd_M = floor(($dd-($dd_Y*10000))/100);
    		$dd_D = $dd-($dd_Y*10000)-($dd_M*100);
    		if ($dd_M<10) $dd_M = "0".$dd_M;
    		if ($dd_D<10) $dd_D = "0".$dd_D;
    		$res = $dd_D.".".$dd_M.".".$dd_Y;
    		if ($dd == 0) $res = "";
    		return $res;
    	}
    
    	
    	function IntToDate($x) {
    		$year = substr( $x, 0, 4 );
    		$month = substr( $x, 4, 2 );    
    		$day = substr( $x, 6, 2 );
    		return $x == 0 ? '' : "$day.$month.$year";
    	}
    
    	
    	function DateToInt2($x) {
    		$dd = explode(".",$x);
    		if (count($dd)>2) {
    			$dd = $dd[0]*1+$dd[1]*100+$dd[2]*10000;
    		} else {
    			$dd = 0;
    		}
    		return $dd;
    	}
    
    	
    		function DateToInt($x) 
    	{
    	  $dd = explode('.',$x);
    	  if (count($dd)>2) 
    		$result = $dd[2].$dd[1].$dd[0];
    		else 
    		  $result = 0;
    
    	  return $result ;
    	}
    		
    		
    	function StrDate($x) {
    		global $MM_Name2;
    
    		$dd = $x*1;
    		$dd_Y = floor($dd/10000);
    		$dd_M = floor(($dd-($dd_Y*10000))/100);
    		$dd_D = $dd-($dd_Y*10000)-($dd_M*100);
    		if ($dd_D<10) $dd_D = "0".$dd_D;
    
    		return $dd_D." ".$MM_Name2[$dd_M]." ".$dd_Y;
    	}
    
    	function StrMonth($x) {
    		global $MM_Name;
    
    		$dd = $x*1;
    		$dd_Y = floor($dd/10000);
    		$dd_M = floor(($dd-($dd_Y*10000))/100);
    		$dd_D = $dd-($dd_Y*10000)-($dd_M*100);
    		if ($dd_D<10) $dd_D = "0".$dd_D;
    
    		return $MM_Name[$dd_M]." ".$dd_Y;
    	}
    
    	$theday = mktime (0,0,0,date("m") ,date("d") ,date("Y"));
    	$today_0=date("d.m.Y",$theday);
    	$today_1=date("d.m.Y",$theday+(1*86400));
    	$today_7=date("d.m.Y",$theday+(7*86400));

    kib0rg, 30 Июня 2022

    Комментарии (0)