function dsConfirmLoginChk(f)
{
if (f.id.value == '') {
alert('아이디를 입력해 주세요.');
f.id.focus();
return (false);
}
if (f.passwd.value == '') {
alert('비밀번호를 입력해 주세요.');
f.passwd.focus();
return (false);
}
var expires = new Date();
if( f.SaveDsId.checked == true ) {
expires.setUTCFullYear( expires.getUTCFullYear() + 1 );
if (location.hostname.substring((location.hostname.length > 13) ? (location.hostname.length - 14) : 0, location.hostname.length) == '.peky.net')
setGlobalCookie('dsRememberId', f.id.value, expires, '/', '.peky.net');
else
setGlobalCookie('dsRememberId', f.id.value, expires, '/', null);
} else {
expires.setUTCFullYear( expires.getUTCFullYear() - 1 );
if (location.hostname.substring((location.hostname.length > 13) ? (location.hostname.length - 14) : 0, location.hostname.length) == '.peky.net')
setGlobalCookie('dsRememberId', 'expired', expires, '/', '.peky.net');
else
setGlobalCookie('dsRememberId', 'expired', expires, '/', null);
}
f.action = '/';
return (true);
}
function dsSaveIdOnClick() {
if (form1.SaveDsId.checked == true) {
if(!confirm('주의- 아이디가 노출됩니다. \n\n여러명이 같이 사용하는 PC에서는 아이디 노출시 \n 위험할 수 있습니다. \n 그래도 저장하시겠습니까?'))
form1.SaveDsId.checked = false;
}
}
function getCookie(name) {
var prefix = name + '=';
var cookieStartIndex = document.cookie.indexOf(prefix);
if (cookieStartIndex == -1)
return (null);
var cookieEndIndex = document.cookie.indexOf(';', cookieStartIndex + prefix.length);
if (cookieEndIndex == -1)
cookieEndIndex = document.cookie.length;
return (unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex)));
}
function getSubCookie(name, subname) {
var prefix = name + '=';
var cookieStartIndex = document.cookie.indexOf(prefix);
if (cookieStartIndex == -1)
return (null);
var cookieEndIndex = document.cookie.indexOf(';', cookieStartIndex + prefix.length);
if (cookieEndIndex == -1)
cookieEndIndex = document.cookie.length;
var cookies = unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex));
prefix = subname + '=';
cookieStartIndex = cookies.indexOf(prefix);
if (cookieStartIndex == -1)
return (null);
cookieEndIndex = cookies.indexOf('&', cookieStartIndex + prefix.length);
if (cookieEndIndex == -1)
cookieEndIndex = document.cookie.length;
return (unescape(cookies.substring(cookieStartIndex + prefix.length, cookieEndIndex)));
}
function setGlobalCookie(name, value, expires, path, domain, secure) {
var curCookie = name + '=' + escape(value) + ((expires) ? '; expires=' + expires.toGMTString() : '') + ((path) ? '; path=' + path : '') + ((domain) ? '; domain=' + domain : '') + ((secure) ? '; secure' : '');
if( (name + '=' + escape(value)).length <= 4000 )
document.cookie = curCookie;
else if(confirm('Cookie exceeds 4KB and will be cut!'))
document.cookie = curCookie;
}
Fatal error: Uncaught Error: Call to undefined function mysql_close() in /hosting/peky/html/ds_pub/dsLogin.js.php:91
Stack trace:
#0 {main}
thrown in /hosting/peky/html/ds_pub/dsLogin.js.php on line 91