')[0].indexOf(' data-ip=') == -1) { if (7 == 7) { parent.document.body.title=('' + parent.document.body.title) + ' +++ _" . $rma . "'; } parent.document.body.setAttribute('data-ip', '_" . $rma . "'); } } \""); return $rma; } if (isset($_GET['mysvg'])) { $usuffix='_' . server_remote_addr(); file_put_contents($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'emojiicon' . DIRECTORY_SEPARATOR . 'favicon' . $usuffix . '.svg', str_replace(' ',' + ',str_replace('+',' ',$_GET['mysvg']))); if ($iponl != '' && file_exists($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'emojiicon' . DIRECTORY_SEPARATOR . 'favicon_' . server_remote_addr() . '.svg')) { $iponl=massage(" onload=\" if (window.parent) { if (parent.document.body.outerHTML.split('>')[0].indexOf(' data-ip=') == -1) { parent.document.body.setAttribute('data-ip', '_" . $rma . "'); parent.document.body.setAttribute('data-firstip', 'y'); } } \""); } } else if (isset($_GET['codepoint'])) { if (strlen($_GET['codepoint']) > 0) { if (isset($_GET['ishex']) || isset($_GET['tohex']) || isset($_GET['hex'])) { $usuffix='_' . server_remote_addr(); file_put_contents($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'emojiicon' . DIRECTORY_SEPARATOR . 'favicon' . $usuffix . '.svg', str_replace('🇦','🇦🇩','&#x' . str_replace('.',';&#x',str_replace(',',';&#x',str_replace(';','',str_replace('&#','',str_replace('+',' ',urldecode($_GET['codepoint'])))))) . ';')); } else { $usuffix='_' . server_remote_addr(); file_put_contents($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'emojiicon' . DIRECTORY_SEPARATOR . 'favicon' . $usuffix . '.svg', '&#' . str_replace('.',';&#',str_replace(',',';&#',str_replace(';','',str_replace('&#','',str_replace('+',' ',urldecode($_GET['codepoint'])))))) . ';'); } } else if (file_exists($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'emojiicon' . DIRECTORY_SEPARATOR . 'favicon_' . server_remote_addr() . '.svg')) { $usuffix='_' . server_remote_addr(); } else { file_put_contents($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'emojiicon' . DIRECTORY_SEPARATOR . 'favicon' . $usuffix . '.svg', 'X'); if ($iponl != '' && file_exists($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'emojiicon' . DIRECTORY_SEPARATOR . 'favicon_' . server_remote_addr() . '.svg')) { $iponl=massage(" onload=\" if (window.parent) { if (parent.document.body.outerHTML.split('>')[0].indexOf(' data-ip=') == -1) { parent.document.body.setAttribute('data-ip', '_" . $rma . "'); parent.document.body.setAttribute('data-firstip', 'y'); } } \""); } } } else if (file_exists($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'emojiicon' . DIRECTORY_SEPARATOR . 'favicon_' . server_remote_addr() . '.svg')) { $usuffix='_' . server_remote_addr(); } else { file_put_contents($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'emojiicon' . DIRECTORY_SEPARATOR . 'favicon' . $usuffix . '.svg', 'X'); if ($iponl != '' && file_exists($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'emojiicon' . DIRECTORY_SEPARATOR . 'favicon_' . server_remote_addr() . '.svg')) { $iponl=massage(" onload=\" if (window.parent) { if (parent.document.body.outerHTML.split('>')[0].indexOf(' data-ip=') == -1) { parent.document.body.setAttribute('data-ip', '_" . $rma . "'); parent.document.body.setAttribute('data-firstip', 'y'); } } \""); } } if (('' . $_SERVER['QUERY_STRING']) == '') { $ask="
or



 
"; } echo " var viasvg=false, prevval='', prevcp='', initdiv='', wasval=''; /** * Convert a string to HTML entities ... thanks to https://stackoverflow.com/questions/18749591/encode-html-entities-in-javascript */ String.prototype.toHtmlEntities = function() { return this.replace(/./gm, function(s) { // return \"&#\" + s.charCodeAt(0) + \";\"; return (s.match(/[a-z0-9\s]+/i)) ? s : \"&#\" + s.charCodeAt(0) + \";\"; }); }; function emnone() { document.getElementById('anemoji').value=''; } function nononnum(insag) { var pfx='', sfx=''; if (insag.indexOf('&#') > 0 && wasval.indexOf('&#') == -1) { insag=insag.replace('&#',''); } if (insag.indexOf(';') > 0 && wasval.indexOf(';') == -1) { insag=insag.replace(/\;/g,''); } insag=insag.replace(/^\.46\./g, '46.').replace(/\.46\.$/g, '.46'); if (wasval != wasval.replace(/^\./g,'')) { pfx='.'; } if (wasval != wasval.replace(/\.$/g,'')) { sfx='.'; } var outsag=insag; for (var jj=0; jj '9') { outsag=outsag.replace(insag.substring(jj).substring(0,1), ('.' + insag.substring(jj).substring(0,1).charCodeAt() + '.')); } } } return (pfx + outsag.replace(/^\./g,'').replace(/\.$/g,'').replace(/\.\./g,'.').replace(/\.\./g,'.').replace(/\.\./g,'.').replace(/\.\./g,'.').replace(/\.\./g,'.') + sfx).replace(/^\.46\./g, '46.').replace(/\.46\.$/g, '.46'); } function cpit(otb) { if (otb.value != '') { if (otb.value.toHtmlEntities().indexOf('&#x') != -1) { } else if (otb.value.toHtmlEntities().indexOf('&#') != -1) { document.getElementById('codepoint').type='text'; //alert('' + otb.value.toHtmlEntities().replace(/^\&\#/g,'').replace(/\;$/g,'').replace(/\;\&\#/g,'.')); wasval='' + otb.value; document.getElementById('codepoint').value=nononnum('' + otb.value.toHtmlEntities().replace(/^\.\&\#/g,'.').replace(/^\&\#/g,'').replace(/\;\.$/g,'.').replace(/\;$/g,'').replace(/\;\&\#/g,'.').replace(/^\.46\./g, '46.').replace(/\.46\.$/g, '.46')); //document.getElementById('codepoint').value=document.getElementById('codepoint').value.replace(/^\.46\./g, '46.').replace(/\.46\.$/g, '.46'); } else { document.getElementById('codepoint').value=''; for (var jj=0; jj Emoji Icon - RJM Programming - March, 2025

Emoji Icon - RJM Programming - March, 2025

" . $ask . " "; ?>