[27-Feb-2017 21:37:15 Europe/Berlin] HTTP 500 (GET /form-send.php)
[27-Feb-2017 21:37:15 Europe/Berlin] [lib/smtp.php:201] Base->error()
[27-Feb-2017 21:37:15 Europe/Berlin] [form-send.php:32] SMTP->send()
function createCookie(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else {var expires = ""; }
document.cookie = name+"="+value+expires+"; path=/";
}
function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
function eraseCookie(name) {
createCookie(name,"",-1);
}
http://190.210.215.224/cookies-test.html -> working
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.js"></script> <script> $( document ).ready(function() {
function setLang(name,value,days) { if (days) { $.cookie(name, value, { expires: days }, { path: '/' }); showLang(name); // reload page or whatever is needed to change your lang } else { $.cookie(name, value, { expires: '365' }); } }
// if you like to inform the user about the current code ... function showLang(name) { $('#output').html( '<p class="alert alert-info" >Idioma >> '+$.cookie(name)+'</p>' ); }
// in case you need to fire it from somewhere function eraseCookie(name) { $.removeCookie(name); }
/* SET LANGUAGE EN */ $('#botEn').click(function(){ setLang('idioma','en', 7); });
/* SET LANGUAGE ES */ $('#botEs').click(function(){ setLang('idioma','es', 7); }); });</script>