1. Список говнокодов пользователя 7ion

    Всего: 73

  2. Куча / Говнокод #6340

    +134

    1. 1
    2. 2
    <span id="chap">490</span>
    <img src="ch.php" style="margin-left:-5px;"> 23  </div>

    Вебкилловская капча. Это круто.
    В действии: http://webkill.ru/news/index.php?id=1
    Кстати, дизайн нравится, видно, что парень рисовать умеет.

    7ion, 13 Апреля 2011

    Комментарии (11)
  3. Куча / Говнокод #6276

    +133

    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
    <form method="post" action="/" id="aspnetForm">
    <div class="aspNetHidden">
    <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
    <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
    <input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS" value="" />
    <input type="hidden" name="__VIEWSTATEFIELDCOUNT" id="__VIEWSTATEFIELDCOUNT" value="183" />
    <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="kxnnwlmIYAkFHbi9nYZirEieSOb1PCpVbLq7ZaafTOsnyqQCPor05SCrankcwxJ59OGQL5pKxMjoGYdC1iDYHbQUwovpBi5Wmnrv" />
    <input type="hidden" name="__VIEWSTATE1" id="__VIEWSTATE1" value="2gkhHs6YD5YoT69P5SqBvH32s4E3dorqumTtTS6e6/sHPsYuY1fM5ZRmRyJ7P52W3wU2He5cxWasqcESx1oQoZsX62+DP1sXRgm1" />
    <input type="hidden" name="__VIEWSTATE2" id="__VIEWSTATE2" value="LmN1mDiaKVuJzibGxiEKjNjTIp1vUAxCJ9GnL8boNZRoke8zJkksp5HQ/KCyiwRO+aSSo2T8TR74ef5MrpXD8x2XrUQtDRMJMFm6" />
    <input type="hidden" name="__VIEWSTATE3" id="__VIEWSTATE3" value="zCyNfsdm+wo26AS9icob8KoeZliXKduaJ1wLRpmoOQk9IJU+rXE6LUCkN8oW3I0J54puHJoAEcdEJsWNR/ws5RfM2jNr34yCL1Em" />
    // .....
    <input type="hidden" name="__VIEWSTATE81" id="__VIEWSTATE81" value="jH+G7tRrSDd5e0DhVHjOyYdzDf6jIiR/55dOwtrXe98Rijyh733UORH1hDuVogUIOABeBsLeGYJeQbLEdXopR0OIwNfd4SmZR7f5" />
    <input type="hidden" name="__VIEWSTATE82" id="__VIEWSTATE82" value="WK2adY8hUB5Nb9vaPUB+V/eJCLIRDrH+jwhuZrb54XOmSwRf3P5nUPbkNHiB9ea9lypIEOHsU2I8G8sX0DBl74sdDiQX6zWjIJ+M" />
    <input type="hidden" name="__VIEWSTATE83" id="__VIEWSTATE83" value="GpPM/Zb6Ioz0WJjyRI7uI50Sb9uTX8oEFhWfHQd9bnPrpuDsOeAdGjfufEzxYO3f9Et87gZtlOAockDM/k7i0JlKCZjR24hd0C2m" />
    // ................
    <input type="hidden" name="__VIEWSTATE122" id="__VIEWSTATE122" value="lJSD7BkHANWqp/bUAiChwJV82jQUCDzG66aZ+4B09PT7xXZUvRKdNCFAV8J/QZt8bT2Boy2p5yr9rroZ4eRugSWJdGdBLmOXA9Sy" />
    <input type="hidden" name="__VIEWSTATE123" id="__VIEWSTATE123" value="/yawTrz0pNGOQNni+ZZU+Wvu8fbdcgrwANRvKu4c+bE/azptzKm5NfbgmOyXa6RGqpdXitIHFIz6/zYhF4w24Cd0KMbeDtzG4zNo" />
    <input type="hidden" name="__VIEWSTATE124" id="__VIEWSTATE124" value="1xzw9y8cJ1jprrme/LFSWHKgZ80eHz3ITGKDg/DHGYDf6vR+CA0VdeGrLDhVk9Q39Fe1LAVfCV1AYHNxq6oOWE47bY0KCZPp11BN" />
    <input type="hidden" name="__VIEWSTATE125" id="__VIEWSTATE125" value="jcgYkP58EbDgDclyfBxSs0iwPlRd1ZxZUPTjCV0urxt9urpj57avggBRmKE/4z9J9qUH412nlmV5tp4vHQTE51+W979qvRZyepel" />
    <input type="hidden" name="__VIEWSTATE126" id="__VIEWSTATE126" value="XYSiEtx5EYcBJqm9Z+v+pacfreZ42/xGqURJVqZumkp2tvwiZG/E7DIn53MWLU77McCbwee120zde2bXBLW5ZRjnjFe3UebZQQz6" />
    <input type="hidden" name="__VIEWSTATE127" id="__VIEWSTATE127" value="ZQZYGMqhTPOWeEsOqp9MstY/OGWGyRANk6MksuXNP3U0HyDD13sYvjy/Zhc+57AVlWJMCFCzoH5z+Y1Mr48fLqu/uvGx+Ke8xsAg" />
    // .................................
    <input type="hidden" name="__VIEWSTATE153" id="__VIEWSTATE153" value="O40Bli8NqD11+8k245/GJioauizvQ+/VGkIDaH1AioYZ02EuFq372BjplVr8Fvh/vk6sDn26diZO1R/MKKJvLl9qPgN4P/sSCgvz" />

    Сайт факультета информатики.
    Растет смена.
    http://www.faippi.ru/

    7ion, 07 Апреля 2011

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

    +163

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    $soobschenie = <<<ZDESDOCUMENT
    Страйкер, бл� �, поправь уже эту е� �аную кодировку и исправь х� �йню, что html-сущности превращаются в <s>элегантные шор</s> в символы. Вот здесь было написано nbsp: "&nbsp;".
    ZDESDOCUMENT;
    
    for ($i = 0; $i <= 9000; $i++)
           mail('[email protected]', 'Fucking Report', $soobschenie);

    Наболело.

    7ion, 07 Апреля 2011

    Комментарии (60)
  5. JavaScript / Говнокод #6199

    +169

    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
    // И отдельно проработаем кириллицу
        var rusAdditional = {
            '_' : '%5F', 'А' : '%C0', 'Б' : '%C1', 'В' : '%C2', 'Г' : '%C3', 'Д' : '%C4', 'Е' : '%C5',
            'Ж' : '%C6', 'З' : '%C7', 'И' : '%C8', 'Й' : '%C9', 'К' : '%CA', 'Л' : '%CB', 'М' : '%CC',
            'Н' : '%CD', 'О' : '%CE', 'П' : '%CF', 'Р' : '%D0', 'С' : '%D1', 'Т' : '%D2', 'У' : '%D3',
            'Ф' : '%D4', 'Х' : '%D5', 'Ц' : '%D6', 'Ч' : '%D7', 'Ш' : '%D8', 'Щ' : '%D9', 'Ъ' : '%DA',
            'Ы' : '%DB', 'Ь' : '%DC', 'Э' : '%DD', 'Ю' : '%DE', 'Я' : '%DF', 'а' : '%E0', 'б' : '%E1',
            'в' : '%E2', 'г' : '%E3', 'д' : '%E4', 'е' : '%E5', 'ж' : '%E6', 'з' : '%E7', 'и' : '%E8',
            'й' : '%E9', 'к' : '%EA', 'л' : '%EB', 'м' : '%EC', 'н' : '%ED', 'о' : '%EE', 'п' : '%EF',
            'р' : '%F0', 'с' : '%F1', 'т' : '%F2', 'у' : '%F3', 'ф' : '%F4', 'х' : '%F5', 'ц' : '%F6',
            'ч' : '%F7', 'ш' : '%F8', 'щ' : '%F9', 'ъ' : '%FA', 'ы' : '%FB', 'ь' : '%FC', 'э' : '%FD',
            'ю' : '%FE', 'я' : '%FF', 'ё' : '%B8', 'Ё' : '%A8'
        }
        for (i in rusAdditional) utf8Array[i] = rusAdditional[i];
        // Посимвольно заменяем символы на их шестнадцатиречные эквиваленты
        var res = "";
        for(i = 0; i < str.length; i++) {
            var simbol = str.substr(i,1);
            res += typeof utf8Array[simbol] != "undefined" ? utf8Array[simbol] : simbol;
        }

    http://www.1tv.ru/videoarchiver/
    Все тот же главный канал Рассеи.

    7ion, 03 Апреля 2011

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

    +160

    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
    ##### grab the full name of the agent
    		$stmt="SELECT full_name,user_level,hotkeys_active,agent_choose_ingroups,scheduled_callbacks,agentonly_callbacks,agentcall_manual,vicidial_recording,vicidial_transfers,closer_default_blended,user_group,vicidial_recording_override,alter_custphone_override,alert_enabled,agent_shift_enforcement_override,shift_override_flag,allow_alerts,closer_campaigns,agent_choose_territories,custom_one,custom_two,custom_three,custom_four,custom_five from vicidial_users where user='$VD_login' and pass='$VD_pass'";
    		$rslt=mysql_query($stmt, $link);
    			if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01007',$VD_login,$server_ip,$session_name,$one_mysql_log);}
    		$row=mysql_fetch_row($rslt);
    		$LOGfullname =							$row[0];
    		$user_level =							$row[1];
    		$VU_hotkeys_active =					$row[2];
    		$VU_agent_choose_ingroups =				$row[3];
    		$VU_scheduled_callbacks =				$row[4];
    		$agentonly_callbacks =					$row[5];
    		$agentcall_manual =						$row[6];
    		$VU_vicidial_recording =				$row[7];
    		$VU_vicidial_transfers =				$row[8];
    		$VU_closer_default_blended =			$row[9];
    		$VU_user_group =						$row[10];
    		$VU_vicidial_recording_override =		$row[11];
    		$VU_alter_custphone_override =			$row[12];
    		$VU_alert_enabled =						$row[13];
    		$VU_agent_shift_enforcement_override =	$row[14];
    		$VU_shift_override_flag =				$row[15];
    		$VU_allow_alerts =						$row[16];
    		$VU_closer_campaigns =					$row[17];
    		$VU_agent_choose_territories =			$row[18];
    		$VU_custom_one =						$row[19];
    		$VU_custom_two =						$row[20];
    		$VU_custom_three =						$row[21];
    		$VU_custom_four =						$row[22];
    		$VU_custom_five =						$row[23];
    
    		if ( ($VU_alert_enabled > 0) and ($VU_allow_alerts > 0) ) {$VU_alert_enabled = 'ON';}
    		else {$VU_alert_enabled = 'OFF';}
    		$AgentAlert_allowed = $VU_allow_alerts;
    
    		### Gather timeclock and shift enforcement restriction settings
    		$stmt="SELECT forced_timeclock_login,shift_enforcement,group_shifts,agent_status_viewable_groups,agent_status_view_time from vicidial_user_groups where user_group='$VU_user_group';";
    		$rslt=mysql_query($stmt, $link);
    			if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01052',$VD_login,$server_ip,$session_name,$one_mysql_log);}
    		$row=mysql_fetch_row($rslt);
    		$forced_timeclock_login =	$row[0];
    		$shift_enforcement =		$row[1];
    		$LOGgroup_shiftsSQL = eregi_replace('  ','',$row[2]);
    		$LOGgroup_shiftsSQL = eregi_replace(' ',"','",$LOGgroup_shiftsSQL);
    		$LOGgroup_shiftsSQL = "shift_id IN('$LOGgroup_shiftsSQL')";
    		$agent_status_viewable_groups = $row[3];
    		$agent_status_viewable_groupsSQL = eregi_replace('  ','',$agent_status_viewable_groups);
    		$agent_status_viewable_groupsSQL = eregi_replace(' ',"','",$agent_status_viewable_groupsSQL);
    		$agent_status_viewable_groupsSQL = "user_group IN('$agent_status_viewable_groupsSQL')";
    		$agent_status_view = 0;
    		if (strlen($agent_status_viewable_groups) > 2)
    			{$agent_status_view = 1;}
    		$agent_status_view_time=0;
    		if ($row[4] == 'Y')
    			{$agent_status_view_time=1;}

    Оказывается, у меня на работе стоит чуть переделанный VICIdial.
    Это звездец.

    7ion, 20 Марта 2011

    Комментарии (11)
  7. JavaScript / Говнокод #6044

    +160

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    7. 7
    8. 8
    if ( (CheckDEADcall > 0) && (VD_live_customer_call==1) )
    					{
    					if (CheckDEADcallON < 1)
    					{
    					if( document.images ) { document.images['livecall'].src = image_livecall_DEAD.src;}
    						CheckDEADcallON=1;
    					}
    					}

    Оттуда же.

    7ion, 20 Марта 2011

    Комментарии (2)
  8. JavaScript / Говнокод #6041

    +161

    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
    else
    		{
    		fronter = user;
    		LasTCID			= MDnextResponse_array[0];
    		document.vicidial_form.lead_id.value			= MDnextResponse_array[1];
    		LeaDPreVDispO	= MDnextResponse_array[2];
    		document.vicidial_form.vendor_lead_code.value	= MDnextResponse_array[4];
    		document.vicidial_form.list_id.value			= MDnextResponse_array[5];
    		document.vicidial_form.gmt_offset_now.value		= MDnextResponse_array[6];
    		document.vicidial_form.phone_code.value			= MDnextResponse_array[7];
    		if ( (disable_alter_custphone=='Y') || (disable_alter_custphone=='HIDE') )
    			{
    			var tmp_pn = document.getElementById("phone_numberDISP");
    			if (disable_alter_custphone=='Y')
    {
    tmp_pn.innerHTML		= MDnextResponse_array[8];
    }
    			}
    		document.vicidial_form.phone_number.value		= MDnextResponse_array[8];
    		document.vicidial_form.title.value= MDnextResponse_array[9];
    		document.vicidial_form.first_name.value			= MDnextResponse_array[10];
    		document.vicidial_form.middle_initial.value		= MDnextResponse_array[11];
    		document.vicidial_form.last_name.value			= MDnextResponse_array[12];
    		document.vicidial_form.address1.value			= MDnextResponse_array[13];
    		document.vicidial_form.address2.value			= MDnextResponse_array[14];
    		document.vicidial_form.address3.value			= MDnextResponse_array[15];
    		document.vicidial_form.city.value= MDnextResponse_array[16];
    		document.vicidial_form.state.value= MDnextResponse_array[17];
    		document.vicidial_form.province.value			= MDnextResponse_array[18];
    		document.vicidial_form.postal_code.value		= MDnextResponse_array[19];
    		document.vicidial_form.country_code.value		= MDnextResponse_array[20];
    		document.vicidial_form.gender.value= MDnextResponse_array[21];
    		document.vicidial_form.date_of_birth.value		= MDnextResponse_array[22];
    		document.vicidial_form.alt_phone.value			= MDnextResponse_array[23];
    		document.vicidial_form.email.value= MDnextResponse_array[24];
    		document.vicidial_form.security_phrase.value	= MDnextResponse_array[25];
    		var REGcommentsNL = new RegExp("!N","g");
    		MDnextResponse_array[26] = MDnextResponse_array[26].replace(REGcommentsNL, "\n");
    		document.vicidial_form.comments.value			= MDnextResponse_array[26];
    		document.vicidial_form.called_count.value		= MDnextResponse_array[27];
    		previous_called_count			= MDnextResponse_array[27];
    		previous_dispo	= MDnextResponse_array[2];
    		CBentry_time	= MDnextResponse_array[28];
    		CBcallback_time	= MDnextResponse_array[29];
    		CBuser			= MDnextResponse_array[30];
    		CBcomments		= MDnextResponse_array[31];
    		dialed_number	= MDnextResponse_array[32];
    		dialed_label	= MDnextResponse_array[33];
    		source_id		= MDnextResponse_array[34];
    		document.vicidial_form.rank.value= MDnextResponse_array[35];
    		document.vicidial_form.owner.value= MDnextResponse_array[36];
    	//	CalL_ScripT_id	= MDnextResponse_array[37];
    		script_recording_delay			= MDnextResponse_array[38];
    		CalL_XC_a_NuMber= MDnextResponse_array[39];
    		CalL_XC_b_NuMber= MDnextResponse_array[40];
    		CalL_XC_c_NuMber= MDnextResponse_array[41];
    		CalL_XC_d_NuMber= MDnextResponse_array[42];
    		CalL_XC_e_NuMber= MDnextResponse_array[43];
    
    		timer_action = campaign_timer_action;
    		timer_action_message = campaign_timer_action_message;
    		timer_action_seconds = campaign_timer_action_seconds;
    			
    		lead_dial_number = document.vicidial_form.phone_number.value;
    		var dispnum = document.vicidial_form.phone_number.value;
    		var status_display_number = phone_number_format(dispnum);

    7ion, 20 Марта 2011

    Комментарии (2)
  9. JavaScript / Говнокод #6040

    +164

    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
    73. 73
    74. 74
    75. 75
    76. 76
    77. 77
    78. 78
    79. 79
    if (VDIC_web_form_address.match(regWFAcustom))
    	{
    	URLDecode(VDIC_web_form_address,'YES');
    	TEMP_VDIC_web_form_address = decoded;
    	TEMP_VDIC_web_form_address = TEMP_VDIC_web_form_address.replace(regWFAcustom, '');
    	}
    else
    	{
    	web_form_vars = 
    	"&lead_id=" + document.vicidial_form.lead_id.value + 
    	"&vendor_id=" + document.vicidial_form.vendor_lead_code.value + 
    	"&list_id=" + document.vicidial_form.list_id.value + 
    	"&gmt_offset_now=" + document.vicidial_form.gmt_offset_now.value + 
    	"&phone_code=" + document.vicidial_form.phone_code.value + 
    	"&phone_number=" + document.vicidial_form.phone_number.value + 
    	"&title=" + document.vicidial_form.title.value + 
    	"&first_name=" + document.vicidial_form.first_name.value + 
    	"&middle_initial=" + document.vicidial_form.middle_initial.value + 
    	"&last_name=" + document.vicidial_form.last_name.value + 
    	"&address1=" + document.vicidial_form.address1.value + 
    	"&address2=" + document.vicidial_form.address2.value + 
    	"&address3=" + document.vicidial_form.address3.value + 
    	"&city=" + document.vicidial_form.city.value + 
    	"&state=" + document.vicidial_form.state.value + 
    	"&province=" + document.vicidial_form.province.value + 
    	"&postal_code=" + document.vicidial_form.postal_code.value + 
    	"&country_code=" + document.vicidial_form.country_code.value + 
    	"&gender=" + document.vicidial_form.gender.value + 
    	"&date_of_birth=" + document.vicidial_form.date_of_birth.value + 
    	"&alt_phone=" + document.vicidial_form.alt_phone.value + 
    	"&email=" + document.vicidial_form.email.value + 
    	"&security_phrase=" + document.vicidial_form.security_phrase.value + 
    	"&comments=" + document.vicidial_form.comments.value + 
    	"&user=" + user + 
    	"&pass=" + pass + 
    	"&campaign=" + campaign +
    	"&phone_login=" + phone_login + 
    	"&original_phone_login=" + original_phone_login +
    	"&phone_pass=" + phone_pass + 
    	"&fronter=" + fronter + 
    	"&closer=" + user + 
    	"&group=" + group + 
    	"&channel_group=" + group + 
    	"&SQLdate=" + SQLdate + 
    	"&epoch=" + UnixTime + 
    	"&uniqueid=" + document.vicidial_form.uniqueid.value + 
    	"&customer_zap_channel=" + lastcustchannel + 
    	"&customer_server_ip=" + lastcustserverip +
    	"&server_ip=" + server_ip + 
    // ...еще строчек 30...
    	"&user_custom_five=" + VU_custom_five + '' +
    	"&preset_number_a=" + CalL_XC_a_NuMber + '' +
    	"&preset_number_b=" + CalL_XC_b_NuMber + '' +
    	"&preset_number_c=" + CalL_XC_c_NuMber + '' +
    	"&preset_number_d=" + CalL_XC_d_NuMber + '' +
    	"&preset_number_e=" + CalL_XC_e_NuMber + '' +
    	"&preset_dtmf_a=" + CalL_XC_a_Dtmf + '' +
    	"&preset_dtmf_b=" + CalL_XC_b_Dtmf + '' +
    	webform_session;
    	
    	var regWFspace = new RegExp(" ","ig");
    	web_form_vars = web_form_vars.replace(regWF, '');
    	var regWF = new RegExp("\\`|\\~|\\:|\\;|\\#|\\'|\\\"|\\{|\\}|\\(|\\)|\\*|\\^|\\%|\\$|\\!|\\%|\\r|\\t|\\n","ig");
    	web_form_vars = web_form_vars.replace(regWFspace, '+');
    	web_form_vars = web_form_vars.replace(regWF, '');
    
    	var regWFAvars = new RegExp("\\?","ig");
    	if (VDIC_web_form_address.match(regWFAvars))
    		{web_form_vars = '&' + web_form_vars}
    	else
    		{web_form_vars = '?' + web_form_vars}
    
    	TEMP_VDIC_web_form_address = VDIC_web_form_address + "" + web_form_vars;
    
    	var regWFAqavars = new RegExp("\\?&","ig");
    	var regWFAaavars = new RegExp("&&","ig");
    	TEMP_VDIC_web_form_address = TEMP_VDIC_web_form_address.replace(regWFAqavars, '?');
    	TEMP_VDIC_web_form_address = TEMP_VDIC_web_form_address.replace(regWFAaavars, '&');
    	}

    7ion, 20 Марта 2011

    Комментарии (1)
  10. JavaScript / Говнокод #6039

    +162

    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
    if (prepopulate_transfer_preset_enabled > 0)
    									{
    if (prepopulate_transfer_preset == 'PRESET_1')
    										{document.vicidial_form.xfernumber.value = CalL_XC_a_NuMber;}
    if (prepopulate_transfer_preset == 'PRESET_2')
    										{document.vicidial_form.xfernumber.value = CalL_XC_b_NuMber;}
    if (prepopulate_transfer_preset == 'PRESET_3')
    										{document.vicidial_form.xfernumber.value = CalL_XC_c_NuMber;}
    if (prepopulate_transfer_preset == 'PRESET_4')
    										{document.vicidial_form.xfernumber.value = CalL_XC_d_NuMber;}
    if (prepopulate_transfer_preset == 'PRESET_5')
    										{document.vicidial_form.xfernumber.value = CalL_XC_e_NuMber;}
    									}
    if ( (quick_transfer_button == 'PRESET_1') || (quick_transfer_button == 'PRESET_2') || (quick_transfer_button == 'PRESET_3') || (quick_transfer_button == 'PRESET_4') || (quick_transfer_button == 'PRESET_5') )
    									{
    									document.getElementById("QuickXfer").innerHTML = "<a href=\"#\" onclick=\"mainxfer_send_redirect('XfeRBLIND','" + lastcustchannel + "','" + lastcustserverip + "');return false;\"><IMG SRC=\"./images/vdc_LB_quickxfer.gif\" border=0 alt=\"QUICK TRANSFER\"></a>";
    
    									if (quick_transfer_button == 'PRESET_1')
    										{document.vicidial_form.xfernumber.value = CalL_XC_a_NuMber;}
    									if (quick_transfer_button == 'PRESET_2')
    										{document.vicidial_form.xfernumber.value = CalL_XC_b_NuMber;}
    									if (quick_transfer_button == 'PRESET_3')
    										{document.vicidial_form.xfernumber.value = CalL_XC_c_NuMber;}
    									if (quick_transfer_button == 'PRESET_4')
    										{document.vicidial_form.xfernumber.value = CalL_XC_d_NuMber;}
    									if (quick_transfer_button == 'PRESET_5')
    										{document.vicidial_form.xfernumber.value = CalL_XC_e_NuMber;}
    									}

    7ion, 20 Марта 2011

    Комментарии (2)
  11. JavaScript / Говнокод #6038

    +161

    1. 1
    2. 2
    3. 3
    4. 4
    var DiaLControl_auto_HTML = "<IMG SRC=\"./images/vdc_LB_pause_OFF.gif\" border=0 alt=\" Pause \"><a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADready');\"><IMG SRC=\"./images/vdc_LB_resume.gif\" border=0 alt=\"Resume\"></a>";
    	var DiaLControl_auto_HTML_ready = "<a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADpause');\"><IMG SRC=\"./images/vdc_LB_pause.gif\" border=0 alt=\" Pause \"></a><IMG SRC=\"./images/vdc_LB_resume_OFF.gif\" border=0 alt=\"Resume\">";
    	var DiaLControl_auto_HTML_OFF = "<IMG SRC=\"./images/vdc_LB_pause_OFF.gif\" border=0 alt=\" Pause \"><IMG SRC=\"./images/vdc_LB_resume_OFF.gif\" border=0 alt=\"Resume\">";
    	var DiaLControl_manual_HTML = "<a href=\"#\" onclick=\"ManualDialNext('','','','','','0');\"><IMG SRC=\"./images/vdc_LB_dialnextnumber.gif\" border=0 alt=\"Dial Next Number\"></a>";

    Кое-что из тысячестрочного конфига в жс-вставке на странице.

    7ion, 20 Марта 2011

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