PageSourceSearch

https://www.nishikawa-net.com/wp/wp-content/plugins/ajax-login/ajaxlogin.js?ver=20160717

js nishikawa-net.com collected 2026-10-09 03:22:42 UTC 7,349 bytes, 298 lines download raw bytes

1var al_status;
2var al_loginForm, al_registerForm, al_lostPasswordForm;
3var al_loginMessage, al_registerMessage, al_lostPasswordMessage;
4var al_sack = new sack();
5
6var al_otheronload = window.onload;
7window.onload = al_init;
8function al_init() {
9
10	if (al_otheronload) al_otheronload();
11
12	al_status = 0;
13
14	al_loginForm = document.getElementById("al_loginForm");
15	al_registerForm = document.getElementById("al_registerForm");
16	al_lostPasswordForm = document.getElementById("al_lostPasswordForm");
17
18	al_loginMessage = document.getElementById("al_loginMessage");
19	al_registerMessage = document.getElementById("al_registerMessage");
20	al_lostPasswordMessage = document.getElementById("al_lostPasswordMessage");
21}
22
23
24function al_showLogin() {
25
26	document.getElementById("al_login").style.display = "none";
27	document.getElementById("al_register").style.display = "none";
28	document.getElementById("al_lostPassword").style.display = "none";
29
30	if (0 != al_timeout) {
31		document.getElementById("al_loading").style.display = "block";
32		setTimeout('al_showLogin2();', al_timeout);
33	} else {
34		al_showLogin2();
35	}
36}
37
38function al_showLogin2() {
39
40	document.getElementById("al_loading").style.display = "none";
41	document.getElementById("al_login").style.display = "block";
42	al_loginForm.log.focus();
43
44}
45
46function al_showRegister() {
47
48	document.getElementById("al_login").style.display = "none";
49	document.getElementById("al_register").style.display = "none";
50	document.getElementById("al_lostPassword").style.display = "none";
51
52	if (0 != al_timeout) {
53		document.getElementById("al_loading").style.display = "block";
54		setTimeout('al_showRegister2();', al_timeout);
55	} else {
56		al_showRegister2();
57	}
58}
59
60function al_showRegister2() {
61
62	document.getElementById("al_loading").style.display = "none";
63	document.getElementById("al_register").style.display = "block";
64
65	al_registerForm.user_login.focus();
66}
67
68
69function al_showLostPassword() {
70
71	document.getElementById("al_login").style.display = "none";
72	document.getElementById("al_register").style.display = "none";
73	document.getElementById("al_lostPassword").style.display = "none";
74
75	if (0 != al_timeout) {
76		document.getElementById("al_loading").style.display = "block";
77		setTimeout('al_showLostPassword2();', al_timeout);
78	} else {
79		al_showLostPassword2();
80	}
81}
82
83function al_showLostPassword2() {
84
85	document.getElementById("al_loading").style.display = "none";
86	document.getElementById("al_lostPassword").style.display = "block";
87
88	al_lostPasswordForm.user_login.focus();
89}
90
91
92function al_login() {
93
94	if (0 != al_status) {
95		return;
96	}
97
98	if (al_loginForm.log.value == '') {
99		alert("ユーザー名を入力してください。");
100		al_loginForm.log.focus();
101		return;
102	}
103
104	if (al_loginForm.pwd.value == '') {
105		alert("パスワードを入力してください。");
106		al_loginForm.pwd.focus();
107		return;
108	}
109
110	al_sack.setVar("log", al_loginForm.log.value);
111	al_sack.setVar("pwd", al_loginForm.pwd.value);
112	al_sack.setVar("rememberme", al_loginForm.rememberme.value);
113
114	al_sack.requestFile = al_base_uri + "/wp-content/plugins/ajax-login/login.php";
115	al_sack.method = "POST";
116	al_sack.onError = al_ajaxError;
117	al_sack.onCompletion = al_loginHandleResponse;
118	al_sack.runAJAX();
119	al_status = 1;
120
121}
122
123function al_loginHandleResponse() {
124
125	al_status = 0;
126
127	var responselines = al_sack.response.split("\n",2);
128	responselines[0] = responselines[0].replace(/ /g, "");
129
130	if (responselines[0] == al_failure) {
131		alert(responselines[1]);
132		return;
133	}
134	if (responselines[0] == al_success) {
135		
136		if (al_redirectOnLogin == '')
137			window.location.reload(true);
138		else
139			window.location.href = al_redirectOnLogin;
140			
141		return;
142	}
143	alert("ログイン中に予期せぬ問題が発生しました。");
144
145}
146
147function al_register() {
148
149	if (0 != al_status) {
150		return;
151	}
152
153	if (al_registerForm.user_login.value == '') {
154		alert("ユーザー名を入力してください。");
155		al_registerForm.user_login.focus();
156		return;
157	}
158
159	if (al_registerForm.user_email.value == '') {
160		alert("メールアドレスを入力してください。");
161		al_registerForm.user_email.focus();
162		return;
163	}
164
165	al_sack.setVar("user_login", al_registerForm.user_login.value);
166	al_sack.setVar("user_email", al_registerForm.user_email.value);
167
168	al_sack.requestFile = al_base_uri + "/wp-content/plugins/ajax-login/register.php";
169	al_sack.method = "POST";
170	al_sack.onError = al_ajaxError;
171	al_sack.onCompletion = al_registerHandleResponse;
172	al_sack.runAJAX();
173	al_status = 1;
174
175}
176
177function al_registerHandleResponse() {
178
179	al_status = 0;
180
181	var responselines = al_sack.response.split("\n",2);
182	if (responselines[0] == al_failure) {
183		alert(responselines[1]);
184		return;
185	}
186	if (responselines[0] == al_success) {
187		alert("Registration complete. Please check your e-mail.");
188		al_loginMessage.innerHTML = "Your password is in your mail.<br/>";
189		al_loginForm.log.value = al_registerForm.user_login.value;
190		al_registerForm.user_login.value = "";
191		al_registerForm.user_email.value = "";
192		al_showLogin();
193		al_loginForm.pwd.focus();
194		return;
195	}
196
197	alert("Unknown registration response.");
198
199}
200
201function al_retrievePassword() {
202	if (0 != al_status) {
203		return;
204	}
205
206	if (al_lostPasswordForm.user_login.value == '') {
207		alert("ユーザー名を入力してください。");
208		al_lostPasswordForm.user_login.focus();
209		return;
210	}
211
212	if (al_lostPasswordForm.user_email.value == '') {
213		alert("メールアドレスを入力してください。");
214		al_lostPasswordForm.user_email.focus();
215		return;
216	}
217
218	al_sack.setVar("user_login", al_lostPasswordForm.user_login.value);
219	al_sack.setVar("user_email", al_lostPasswordForm.user_email.value);
220
221	al_sack.requestFile = al_base_uri + "/wp-content/plugins/ajax-login/lostpassword.php";
222	al_sack.method = "POST";
223	al_sack.onError = al_ajaxError;
224	al_sack.onCompletion = al_lostPasswordHandleResponse;
225	al_sack.runAJAX();
226	al_status = 1;
227}
228
229function al_lostPasswordHandleResponse() {
230
231	al_status = 0;
232
233	var responselines = al_sack.response.split("\n",2);
234	if (responselines[0] == al_failure) {
235		alert(responselines[1]);
236		return;
237	}
238	if (responselines[0] == al_success) {
239		alert("メールを確認してください。");
240		al_loginMessage.innerHTML = "確認リンクはメールに記載しています。";
241		al_loginForm.log.value = al_lostPasswordForm.user_login.value;
242		al_lostPasswordForm.user_login.value = "";
243		al_lostPasswordForm.user_email.value = "";
244		al_showLogin();
245		al_loginForm.pwd.focus();
246		return;
247	}
248
249	alert("予期せぬ問題が発生しました。");
250
251}
252
253function al_ajaxError() {
254	alert("申し訳ございません。エラーが発生しました。再度試してください。");
255	
256	alert(al_sack.responseStatus[0] + ':\n' + al_sack.response);
257	al_sack = new sack();
258}
259
260function al_loginOnEnter(e) {
261
262	if(window.event) // IE
263		keynum = e.keyCode;
264	else if(e.which) // Netscape/Firefox/Opera
265		keynum = e.which;
266	else
267		keynum = 0;
268
269	if (keynum==13)
270		al_login();
271
272}
273function al_registerOnEnter(e) {
274
275	if(window.event) // IE
276		keynum = e.keyCode;
277	else if(e.which) // Netscape/Firefox/Opera
278		keynum = e.which;
279	else
280		keynum = 0;
281
282	if (keynum==13)
283		al_register();
284
285}
286function al_retrievePasswordOnEnter(e) {
287
288	if(window.event) // IE
289		keynum = e.keyCode;
290	else if(e.which) // Netscape/Firefox/Opera
291		keynum = e.which;
292	else
293		keynum = 0;
294
295	if (keynum==13)
296		al_retrievePassword();
297
298}

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.