1/* AhnLab Safe Keypad 2.0 | (C) Copyright AhnLab, Inc. | $Revision: 18031 $ */ 2 3var $ASKD2_CUST = 4{ 5 // Customer option 6 /* 7 THEME_FNAME_PADS: 'pads.png', 8 THEME_FNAME_LOGO: 'logo.png', 9 10 KEYPAD_IDNAME: '_askd_keypad', 11 12 ASKDFORM_TAIL: true, 13 ASKDFORM_INIT: '_askd_forminit', 14 ASKDFORM_TAG1: '_askd_1__', 15 ASKDFORM_TAG1_PWD: '_askd_1_pwd__', 16 ASKDFORM_TAG2: '_askd_2__', 17 ASKDFORM_TAG2_PWD: '_askd_2_pwd__', 18 */ 19 20 // ASKD2_CUST defined values 21 URL_THEME : 101, 22 URL_CRYPTO : 102, 23 URL_GET_INIT : 103, 24 URL_GET_PADS : 104, 25 26 getURL: function(type) 27 { 28 var result = ''; 29 30 //<protocol>//<hostname>:<port> 31 var url = window.location.protocol+'//'+window.location.hostname; 32 url += (window.location.port ? ':'+window.location.port : ''); 33 34 switch(type) 35 { 36 case this.URL_THEME : 37 result = url+'/cxo/ahnlab/ASKD2/theme'; 38 break; 39 case this.URL_CRYPTO : 40 result = url+'/cxo/ahnlab/ASKD2/crypto'; 41 break; 42 case this.URL_GET_INIT : 43 result = url+'/cxo/ahnlab/ASKD2/do_get_init.jsp'; 44 //result = url+'/cxo/ahnlab/ASKD2_servlet/get_init'; 45 break; 46 case this.URL_GET_PADS : 47 result = url+'/cxo/ahnlab/ASKD2/do_get_pads.jsp'; 48 //result = url+'/cxo/ahnlab/ASKD2_servlet/get_pads'; 49 break; 50 } // end of switch 51 52 return result; 53 }, 54 55 TEXT_MSG1 : 110, 56 TEXT_MSG2 : 111, 57 TEXT_END1 : 112, 58 TEXT_END2 : 113, 59 TEXT_CERTWARN : 114, 60 61 getText: function(type) 62 { 63 var text = ''; 64 65 switch(type) 66 { 67 // for qwerty, letter 68 case this.TEXT_MSG1 : 69 text = 'ÀÔ·Â Çã¿ë ½Ã°£ÀÌ %dÃÊ ÈÄ¿¡ ¸¸·áµË´Ï´Ù.'; 70 break; 71 case this.TEXT_END1 : 72 text = 'ÀÔ·Â Çã¿ë ½Ã°£ÀÌ ¸¸·áµÇ¾ú½À´Ï´Ù. ŰÆÐµå¸¦ °»½ÅÇϼ¼¿ä.'; 73 break; 74 75 // for number 76 case this.TEXT_MSG2 : 77 text = '%dÃÊ À̳»¿¡ ÀÔ·ÂÇÏ¿© Áֽʽÿä.'; 78 break; 79 case this.TEXT_END2 : 80 text = '¸¸·áµÇ¾ú½À´Ï´Ù. ŰÆÐµå¸¦ °»½ÅÇϼ¼¿ä.'; 81 break; 82 // certificate to expire 83 case this.TEXT_CERTWARN : 84 text = 'Safe Keypad ÀÎÁõ¼°¡ ÇÑ ´Þ À̳»¿¡ ¸¸·áµÉ ¿¹Á¤ÀÔ´Ï´Ù.'; 85 break; 86 } // end of switch 87 88 return text; 89 }, 90 91 getErrorMessage: function(errno) 92 { 93 var message = '[ASKD] '; 94 95 switch(errno) 96 { 97 case $ASKD2_CONST.ERROR_FAILED: 98 message += "³»ºÎ ¿À·ù°¡ ¹ß»ýÇÏ¿´½À´Ï´Ù."; 99 break; 100 case $ASKD2_CONST.ERROR_NOINIT: 101 message += "ÃʱâȰ¡ ÇÊ¿äÇÕ´Ï´Ù."; 102 break; 103 case $ASKD2_CONST.ERROR_PARAM: 104 message += "ÃʱâȰ¡ ÇÊ¿äÇÕ´Ï´Ù."; 105 break; 106 case $ASKD2_CONST.ERROR_NOCONNECT: 107 message += "¼¹ö Åë½Å ½ÇÆÐÀÔ´Ï´Ù."; 108 break; 109 case $ASKD2_CONST.ERROR_NCK: 110 message += "¼¹ö ÀÀ´ä ½ÇÆÐÀÔ´Ï´Ù."; 111 break; 112 case $ASKD2_CONST.ERROR_INVALID: 113 message += "À¯È¿ÇÏÁö ¾Ê½À´Ï´Ù."; 114 break; 115 default: 116 message += 'errno='+errno; 117 break; 118 } // end of switch 119 120 return message; 121 } 122}; 123
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.