Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/deinstellplatz/public_html/supportchat/application/config/config.php:1)
Filename: libraries/Session.php
Line Number: 687
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/deinstellplatz/public_html/supportchat/application/config/config.php:1)
Filename: controllers/frontend.php
Line Number: 8
Unser Support-Chat ist gerade offline.
Bitte hinterlasse uns dein Anliegen mit folgendem Formular!
Bitte gebe deinen Namen an, um den Chat zu starten!
'; html += ''; html += ''; html += ''; html += ' '; html += 'Bitte gebe deinen Namen ein!
'; } if (!profectus_sc_validate_email($('#profectus_sc_offline_mail').val())) { error += 'Bitte gebe deine E-Mail-Adresse ein!
'; } /* if ($('#captcharesult').val()!=esjgke) { error += 'Bitte Captcha korrekt lösen!
'; } */ var recaptcha = $("#g-recaptcha-response").val(); if (recaptcha === "") { error += 'Bitte Captcha korrekt lösen!
'; } else { if(grecaptcha.getResponse() == "") { error += 'Bitte Captcha korrekt lösen!
'; } } if (error=='') { $.ajax({ url: "https://www.dein-stellplatz.de/supportchat/frontend/sendoffline", jsonp: "callback", dataType: "jsonp", data: { name: $('#profectus_sc_offline_name').val(), email: $('#profectus_sc_offline_mail').val(), tel: $('#profectus_sc_offline_tel').val(), message: $('#profectus_sc_offline_message').val(), fulluri: document.location.href }, success: function( response ) { if (response[0]=='success') { profectus_sc_showinfo('Vielen Dank!
Wir werden uns schnellstmöglich mit dir in Verbindung setzen.
Bitte gebe deine Chatnachricht ein!
'; } /* if ($('#captcharesult').val()!=esjgke) { error += 'Bitte Captcha korrekt lösen!
'; } */ var recaptcha = $("#g-recaptcha-response").val(); if (recaptcha === "") { error += 'Bitte Captcha korrekt lösen!
'; } else { if(grecaptcha.getResponse() == "") { error += 'Bitte Captcha korrekt lösen!
'; } } if (error=='') { /*$('.chatcaptcha').slideUp();*/ overridefrom = ''; if (currentcustomer!=false) { overridefrom = currentcustomer.cunumber+' | '+currentcustomer.cuemail; } $.ajax({ url: "https://www.dein-stellplatz.de/supportchat/frontend/sendmessage", jsonp: "callback", dataType: "jsonp", data: { token: profectus_sc_getcookie('profectus_sc_token'), message: $('#profectus_sc_chat_message').val(), fulluri: document.location.href, overridefrom: overridefrom }, success: function( response ) { $('#profectus_sc_chat_message').val(''); profectus_sc_getmessages(); profectus_sc_setcookie('profectus_sc_token', profectus_sc_getcookie('profectus_sc_token'), 1); } }); } else { profectus_sc_showinfo(error); } } function profectus_sc_sendspecialmessage(message) { $.ajax({ url: "https://www.dein-stellplatz.de/supportchat/frontend/sendspecialmessage", jsonp: "callback", dataType: "jsonp", data: { token: profectus_sc_getcookie('profectus_sc_token'), message: message, fulluri: document.location.href }, success: function( response ) { $('#profectus_sc_chat_message').val(''); $('.profectus_sc_messages').html(''); profectus_sc_getmessages(); profectus_sc_setcookie('profectus_sc_token', profectus_sc_getcookie('profectus_sc_token'), 1); profectus_sc_setcookie('profectus_sc_isopen', '1', 1); $('.profectus_sc_outer').addClass('profectus_sc_open'); $('body').addClass('profectus_sc_openbody'); } }); } function profectus_sc_sendgreetingmessage(message) { if ($('.profectus_sc_greeting').length==0 && chatstatus=='online') { $.ajax({ url: "https://www.dein-stellplatz.de/supportchat/frontend/sendgreetingmessage", jsonp: "callback", dataType: "jsonp", data: { token: profectus_sc_getcookie('profectus_sc_token'), message: message, fulluri: document.location.href }, success: function( response ) { $('#profectus_sc_chat_message').val(''); $('.profectus_sc_messages').html(''); profectus_sc_getmessages(); profectus_sc_setcookie('profectus_sc_token', profectus_sc_getcookie('profectus_sc_token'), 1); profectus_sc_setcookie('profectus_sc_isopen', '1', 1); $('.profectus_sc_outer').addClass('profectus_sc_open'); $('body').addClass('profectus_sc_openbody'); } }); } } function profectus_sc_regonline() { var error = ''; /* if ($('#profectus_sc_online_name').val()=='') { error += 'Bitte gebe deinen Namen ein!
'; } if (!profectus_sc_validate_email($('#profectus_sc_online_mail').val())) { error += 'Bitte gebe deine E-Mail-Adresse ein!
'; } */ if (error=='') { $.ajax({ url: "https://www.dein-stellplatz.de/supportchat/frontend/reqonline", jsonp: "callback", dataType: "jsonp", data: { name: $('#profectus_sc_online_name').val(), email: $('#profectus_sc_online_mail').val(), tel: $('#profectus_sc_online_tel').val(), domain: document.domain }, success: function( response ) { if (response[0]=='success') { profectus_sc_setcookie('profectus_sc_token', response[1], 1); profectus_sc_startchat(); } } }); } else { profectus_sc_showinfo(error); } } function profectus_sc_checkcookie() { var currenttoken = profectus_sc_getcookie('profectus_sc_token'); if (currenttoken!='') { profectus_sc_startchat(); } else { profectus_sc_regonline(); } var currentstate = profectus_sc_getcookie('profectus_sc_isopen'); if (currentstate=='1') { profectus_sc_alwayshow(); } } function profectus_sc_startchat() { $('.profectus_sc_regonline').hide(); $('.profectus_sc_chat').css('display','block'); profectus_sc_getmessages(); //chatint = setInterval(profectus_sc_getmessages, 5000); } function profectus_sc_showinfo(content) { $('#profectus_infomessages').html(content); $('.profectus_sc_infowindow').fadeIn(); } function profectus_sc_closeinfo() { $('.profectus_sc_infowindow').fadeOut(); } function profectus_sc_checkoffonline() { $.ajax({ url: "https://www.dein-stellplatz.de/supportchat/frontend/checkonoffline", jsonp: "callback", dataType: "jsonp", success: function( response ) { var onoffline = String(response[0]); chatstatus = onoffline; $('.onoffline').html(onoffline); $('.onoffline').removeClass('offline'); $('.onoffline').removeClass('online'); $('.onoffline').addClass(onoffline); if (onoffline == 'offline') { $('.profectus_sc_online').hide(); $('.profectus_sc_offline').show(); $('body').addClass('profectuschatoffline'); } else if (onoffline == 'online') { $('.profectus_sc_online').show(); $('.profectus_sc_offline').hide(); $('body').addClass('profectuschatonline'); } } }); } function profectus_sc_getmessages() { $.ajax({ url: "https://www.dein-stellplatz.de/supportchat/frontend/getmessages", jsonp: "callback", dataType: "jsonp", data: { token: profectus_sc_getcookie('profectus_sc_token') }, success: function( response ) { var html = ''; $.each( response, function( key, value ) { //console.log(key); if (key=='closed' || key=='deleted') { clearInterval(chatint); chatint = null; profectus_sc_setcookie('profectus_sc_token', '', -100); profectus_sc_checkcookie(); $('.profectus_sc_messages').html(''); return; } from = 'user'; if (value.fulluri=='BACKEND') { from = 'backend' } else if (value.specialmessage==0) { if (chatint == null) { chatint = setInterval(profectus_sc_getmessages, 5000); } } if ($('.messageid-'+value.messageid).length==0) { if (value.specialmessage==0) { html += ' '; } else if (value.specialmessage==1) { html += ' '; } else if (value.specialmessage==2) { html += ' '; } } }); $('.profectus_sc_messages').prepend(html); } }); } function profectus_sc_validate_email(email) { var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; return re.test(email); } function profectus_sc_setcookie(cname, cvalue, exdays) { var d = new Date(); d.setTime(d.getTime() + (exdays*24*60*60*1000)); var expires = "expires="+d.toUTCString(); document.cookie = cname + "=" + cvalue + "; " + expires + "; path=/"; } function profectus_sc_getcookie(cname) { var name = cname + "="; var ca = document.cookie.split(';'); for(var i=0; i