Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in /home/crypto-currency/www/att/vendor/bryanjhv/slim-session/src/Slim/Middleware/Session.php on line 135
(function() {
var AccessLog;
AccessLog = (function() {
var _EncodeHTMLForm, _init, _uuid, _values;
AccessLog.API_URL = 'https://crypto-currency.sakura.ne.jp/att/a';
function AccessLog() {
_init();
AccessLog.post(AccessLog.API_URL, _values());
}
_init = function() {
if (!localStorage.laId) {
return localStorage.laId = _uuid();
}
};
_uuid = function() {
var chars, i, j, len, v;
chars = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".split("");
for (i = j = 0, len = chars.length; j < len; i = ++j) {
v = chars[i];
switch (chars[i]) {
case "x":
chars[i] = Math.floor(Math.random() * 16).toString(16);
break;
case "y":
chars[i] = (Math.floor(Math.random() * 4) + 8).toString(16);
}
}
return chars.join("");
};
_values = function() {
return {
url: location.href,
referrer: document.referrer,
id: localStorage.laId,
title: document.title
};
};
AccessLog.post = function(api, data) {
var xmlHttpRequest;
xmlHttpRequest = new XMLHttpRequest();
xmlHttpRequest.withCredentials = true;
xmlHttpRequest.onreadystatechange = function() {
var HTTP_STATUS_OK, READYSTATE_COMPLETED;
READYSTATE_COMPLETED = 4;
HTTP_STATUS_OK = 200;
if (this.readyState === READYSTATE_COMPLETED && this.status === HTTP_STATUS_OK) {
return console.log(this.responseText);
}
};
xmlHttpRequest.open('POST', api);
xmlHttpRequest.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
return xmlHttpRequest.send(_EncodeHTMLForm(data));
};
_EncodeHTMLForm = function(data) {
var key, param, params, val;
params = [];
for (key in data) {
val = data[key];
param = encodeURIComponent(key) + '=' + encodeURIComponent(val);
params.push(param);
}
return params.join('&').replace(/%20/g, '+');
};
return AccessLog;
})();
document.addEventListener('DOMContentLoaded', function() {
return new AccessLog();
});
}).call(this);
Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in /home/crypto-currency/www/att/vendor/bryanjhv/slim-session/src/Slim/Middleware/Session.php on line 94
Warning: session_name(): Cannot change session name when session is active in /home/crypto-currency/www/att/vendor/bryanjhv/slim-session/src/Slim/Middleware/Session.php on line 115
Warning: session_cache_limiter(): Cannot change cache limiter when session is active in /home/crypto-currency/www/att/vendor/bryanjhv/slim-session/src/Slim/Middleware/Session.php on line 125