(function() { if (!window.FAE) { window.FAE = new Object(); } FAE.maintenance = false; FAE.cp_rev = '1.4.1'; FAE.raw = 'https://raw.githubusercontent.com/SethClydesdale/forumactif-edge/master/'; FAE.eGIF = 'https://illiweb.com/fa/empty.gif'; FAE.delay = 1000; FAE.cp_lang = {}; // check for [type="color"] support FAE.colorSupport = document.createElement('INPUT'); try { FAE.colorSupport.type = 'color'; FAE.colorSupport = true; } catch (error) { FAE.colorSupport.type = false; } // language list FAE.lang_list = ''; // encode form data to send over AJAX for non-utf8 forums FAE.UTF8 = /UTF-8/i.test(document.characterSet); FAE.Encode = function (object) { if (!FAE.UTF8) { var data = '', val = ['edit_code', 'content', 'template'], match = false, j = val.length, i, k; for (k in object) { match = false; // find and encode the necessary values for (i = 0; i < j; i++) { if (k == val[i]) { object[k] = encodeURIComponent(escape(object[k]).replace(/%u[A-F0-9]{4}/g, function(match) { return '' + parseInt(match.substr(2), 16) + ';' })).replace(/%25/g, '%'); match = true; break; } } data += encodeURIComponent(k) + '=' + (match ? object[k] : encodeURIComponent(object[k])) + '&'; } return data.slice(0, data.length - 1); } else { return object; } }; // parse variables in strings for translations FAE.parse_vars = function(str, o) { var i; for (i in o) { str = str.replace(new RegExp(i, 'gm'), o[i]); } return str; }; // function to execute when the DOC is ready FAE.ready = function (fn) { try { var initialized = false, documentReady = function () { if (!initialized && /interactive|complete/.test(document.readyState)) { fn(); initialized = true; } }; documentReady(); if (!initialized) { document.onreadystatechange = documentReady; } } catch (error) { $(fn); } }; // log messages to the logger so the user knows what's going on FAE.logger = document.getElementById('fae_log'); FAE.log = function(str, css) { FAE.logger.insertAdjacentHTML('beforeend', '
This section allows you to manage the general settings of Forumactif Edge.
'+ 'Use the options below to configure the installation of Forumactif Edge.
'+ '