A PHP Error was encountered

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

A PHP Error was encountered

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

if(typeof jQuery=='undefined') { var headTag = document.getElementsByTagName("head")[0]; var jqTag = document.createElement('script'); jqTag.type = 'text/javascript'; jqTag.src = 'https://www.dein-stellplatz.de/supportchat/public/js/jquery.min.js'; jqTag.onload = init_profectus_sc; headTag.appendChild(jqTag); } else { init_profectus_sc(); } //var onoffline = 'offline'; var chatstatus = ''; var onofflineint = null; var chatint = null; var messint = null; var manuallyclicked = false; var lang = 'de'; var esjgke = '14'; var chatgreetings = { 'de': 'Willkommen bei Dein Stellplatz! Wie kann ich dir behilflich sein?', 'en': 'Welcome to Dein Stellplatz! How can I help you?', 'pl': 'Witamy u Dein Stellplatz! Jak możemy Ci pomóc?' } function init_profectus_sc() { $("head").append($("")); var html = ''; html += '
'; html += '
offline
'; html += '
'; html += '
'; html += '

Unser Support-Chat ist gerade offline.
Bitte hinterlasse uns dein Anliegen mit folgendem Formular!

'; html += '

'; html += '

'; html += '

'; html += '

'; html += '

Senden

'; html += '
'; html += '
'; html += '
'; html += '

Bitte gebe deinen Namen an, um den Chat zu starten!

'; html += '

'; html += '

'; html += '

'; html += '

Chat starten

'; html += '
'; html += '
'; html += '
'; html += '
'; html += '

'; html += '

Senden

'; //html += '

Beenden

'; html += '

Beenden

'; html += '
'; html += '
'; html += '
'; html+= '
'; /* html += 'Spamschutz
bitte löse die Rechenaufgabe
'; html += '10 + 4 = '; */ html += '
'; html += '
'; html+= '
'; html+= '
'; html+= '
'; html+= '
'; html += '
Okay
'; html+= '
'; html+= '
'; $('body').append(html); profectus_sc_checkoffonline(); profectus_sc_checkcookie(); //onofflineint = setInterval(profectus_sc_checkoffonline, 5000); $('.profectus_exopenwidget').click(function() { profectus_sc_alwayshow(); }); $('.profectus_sc_outer').click(function() { profectus_sc_checkoffonline(); }); setTimeout(function(){ /* if (!$('.profectus_sc_outer').hasClass('profectus_sc_open') && $('.profectus_sc_online').is(':visible') && !manuallyclicked && $(window).width()>600) { profectus_sc_showchat(); } */ if (!$('.profectus_sc_outer').hasClass('profectus_sc_open') && $('.profectus_sc_online').is(':visible') && $(window).width()>600) { profectus_sc_sendgreetingmessage(chatgreetings.de); } }, 10000); } function profectus_sc_closechat() { if (confirm('Chat wirklich beenden?')) { $.ajax({ url: "https://www.dein-stellplatz.de/supportchat/frontend/closechat", jsonp: "callback", dataType: "jsonp", data: { token: profectus_sc_getcookie('profectus_sc_token') }, success: function( response ) { $('.profectus_sc_regonline').show(); $('.profectus_sc_chat').css('display','none'); clearInterval(chatint); chatint = null; profectus_sc_setcookie('profectus_sc_token', '', -100); } }); } } function profectus_sc_maximizechat(event) { if ($('body').hasClass('chatmaximized')) { $('body').removeClass('chatmaximized'); } else { $('body').addClass('chatmaximized'); } event.stopPropagation(); } function profectus_sc_alwayshow() { profectus_sc_setcookie('profectus_sc_isopen', '1', 1); $('.profectus_sc_outer').addClass('profectus_sc_open'); $('body').addClass('profectus_sc_openbody'); } function profectus_sc_showchat() { manuallyclicked = true; if ($('.profectus_sc_outer').hasClass('profectus_sc_open')) { profectus_sc_setcookie('profectus_sc_isopen', '0', 1); $('.profectus_sc_outer').removeClass('profectus_sc_open'); $('body').removeClass('profectus_sc_openbody'); } else { profectus_sc_setcookie('profectus_sc_isopen', '1', 1); $('.profectus_sc_outer').addClass('profectus_sc_open'); $('body').addClass('profectus_sc_openbody'); } } function profectus_sc_clearofflineform() { $('#profectus_sc_offline_name').val(''); $('#profectus_sc_offline_mail').val(''); $('#profectus_sc_offline_tel').val(''); $('#profectus_sc_offline_message').val(''); } function profectus_sc_sendoffline() { var error = ''; if ($('#profectus_sc_offline_name').val()=='') { error += '

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.

'); profectus_sc_clearofflineform(); } } }); } else { profectus_sc_showinfo(error); } } function profectus_sc_sendmessage() { var error = ''; if ($('#profectus_sc_chat_message').val()=='') { error += '

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 += '
'; if (value.usermessage==0) { html += '

'+value.sendby+'

'; } html += '

'+nl2br(value.message,true)+'

'; html += '

'+value.senttime+'

'; html += '
'; } else if (value.specialmessage==1) { html += '
'; html += value.message; html += '
'; } else if (value.specialmessage==2) { html += '
'; html += '

'+value.sendby+'

'; html += '

'+nl2br(value.message,true)+'

'; html += '

'+value.senttime+'

'; 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' : '
'; // Adjust comment to avoid issue on phpjs.org display return (str + '') .replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1' + breakTag + '$2'); }