PageSourceSearch

https://imagejournal.org/wp-content/themes/bb-theme-child/js/fulco.js?ver=6.8.10

js imagejournal.org collected 2026-10-01 10:36:02 UTC 2,060 bytes, 84 lines download raw bytes

1var login,
2	loggedIn,
3	auth;
4
5(function ($) {
6	login = function(usr,  pass) {
7		$.ajax({
8		 	method: "POST",
9			url: "/fulco.php",
10			data: { login_name: usr, passwd: pass, B1: 'Login' }
11		}).done(function( response, textStatus, xhr ) {
12			var resp = JSON.parse(response);
13			if( resp.status == 0 ) {
14				$('body').removeClass('closingtime');
15				$('body').addClass('loggedIn');
16				$('.loginsubscribe a[href=#login]').html(function(index,html){
17				    return html.replace('ogin','ogged In');
18				}).attr('href', '#');
19
20				clearInputs();
21
22			} else {
23				$('.login-form input[type="submit"]').after('<p class="loginMsg error">' + resp.reason + '</p>');
24			}
25		});
26	}
27	logout = function(usr,  pass) {
28		$.ajax({
29		 	method: "POST",
30			url: "/fulcox.php",
31			data: { login_name: usr, passwd: pass, B1: 'Logout' }
32		}).done(function( response, textStatus, xhr ) {
33			$('body').removeClass('loggedIn');
34		});
35	}
36	auth = function(usr_uid) {
37		$.ajax({
38		  method: "POST",
39		  url: "/fulco.php",
40		  data: { uid: usr_uid, B1: 'Auth' }
41		})
42		.done(function( response ) {
43			if( parseInt($.cookie('image_auth')) > 0 ) {
44				return true;
45			} else { 
46				return false;
47			}
48		});
49	}
50	loggedIn = function() {
51		if ( $.cookie('image_auth') > 0 ) {
52			return true;
53		} else if ( $.cookie('image_uid') ) {
54			return auth( $.cookie('image_uid') );
55		} else {
56			return false;
57		}
58	}
59	clearInputs = function() {
60		var username = $("#login-name").val('');
61		var pass = $("#login-pass").val('');
62		$('.loginMsg').remove();
63	}
64	$('.logincontainer').click(function(e) {
65		e.preventDefault();
66		clearInputs();
67	});
68
69	$('.login-form input.btn-block').click(function(e){
70		e.preventDefault();
71		var username = $("#login-name").val();
72		var pass = $("#login-pass").val();
73		$('.loginMsg').remove();
74		login( username , pass );
75	});
76	
77	$('.logout-cust a, .logout_ico img, .logout_ico').click(function(e){
78		e.preventDefault();
79		var username = '';
80		var pass = '';
81		logout();
82	});
83
84})(jQuery);		

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.