| | 307 | <script type="text/javascript"> |
| | 308 | function changehost(packedhost) |
| | 309 | { |
| | 310 | var h = packedhost.split( ':' ); |
| | 311 | document.forms['editor-form']['pop3host'].value = h[0]; |
| | 312 | document.forms['editor-form']['pop3port'].value = h[1]; |
| | 313 | document.forms['editor-form']['pop3ssl'].checked = !!parseInt(h[2]); |
| | 314 | } |
| | 315 | function renderhosts() |
| | 316 | { |
| | 317 | var hosts = "<?php echo _t('PREDEFINED POP3 HOSTS') ?>"; |
| | 318 | if( hosts == 'PREDEFINED POP3 HOSTS' ) { |
| | 319 | hosts = "gmail:pop.gmail.com:995:1/hanmail:pop.hanmail.net:995:1/naver:pop.naver.com:110:0"; |
| | 320 | } |
| | 321 | hosts = "Localhost:localhost:110:0/" + hosts; |
| | 322 | hosts = hosts.split('/'); |
| | 323 | for( var i=0; i<hosts.length; i++ ) { |
| | 324 | var h = hosts[i]; |
| | 325 | var n = h.split(':')[0]; |
| | 326 | var v = h.substr(n.length+1); |
| | 327 | document.write( "<option value=\""+v+"\">"+n+"</option>" ); |
| | 328 | } |
| | 329 | |
| | 330 | } |
| | 331 | </script> |