/mnt/web601/b3/14/57451114/htdocs/httpdocs/inc/htmlspecialchars_wrapper.inc.php
<?php
/* --------------------------------------------------------------
htmlspecialchars_wrapper.inc.php 2022-08-10 gm
Gambio GmbH
http://www.gambio.de
Copyright (c) 2022 Gambio GmbH
Released under the GNU General Public License (Version 2)
[http://www.gnu.org/licenses/gpl-2.0.html]
--------------------------------------------------------------
*/
function htmlspecialchars_wrapper($p_string, $p_flags = false, $p_encoding = '', $p_double_encode = true)
{
$t_flags = $p_flags;
if($p_flags === false)
{
if(defined('ENT_HTML401'))
{
$t_flags = ENT_COMPAT | ENT_HTML401;
}
else
{
$t_flags = ENT_COMPAT;
}
}
$t_encoding = $p_encoding;
if($p_encoding === '')
{
// search for UTF-8 characters
if(preg_match('//u', (string)$p_string))
{
$t_encoding = 'UTF-8';
}
elseif(isset($_SESSION['language_charset']))
{
$t_allowed_charsets_array = array();
$t_allowed_charsets_array[] = 'ISO-8859-1';
$t_allowed_charsets_array[] = 'ISO8859-1';
$t_allowed_charsets_array[] = 'ISO-8859-15';
$t_allowed_charsets_array[] = 'ISO8859-15';
$t_allowed_charsets_array[] = 'UTF-8';
$t_allowed_charsets_array[] = 'cp866';
$t_allowed_charsets_array[] = 'ibm866';
$t_allowed_charsets_array[] = '866';
$t_allowed_charsets_array[] = 'cp1251';
$t_allowed_charsets_array[] = 'Windows-1251';
$t_allowed_charsets_array[] = 'win-1251';
$t_allowed_charsets_array[] = '1251';
$t_allowed_charsets_array[] = 'cp1252';
$t_allowed_charsets_array[] = 'Windows-1252';
$t_allowed_charsets_array[] = '1252';
$t_allowed_charsets_array[] = 'KOI8-R';
$t_allowed_charsets_array[] = 'koi8-ru';
$t_allowed_charsets_array[] = 'koi8r';
$t_allowed_charsets_array[] = 'BIG5';
$t_allowed_charsets_array[] = '950';
$t_allowed_charsets_array[] = 'GB2312';
$t_allowed_charsets_array[] = '936';
$t_allowed_charsets_array[] = 'BIG5-HKSCS';
$t_allowed_charsets_array[] = 'Shift_JIS';
$t_allowed_charsets_array[] = 'SJIS';
$t_allowed_charsets_array[] = '932';
$t_allowed_charsets_array[] = 'EUC-JP';
$t_allowed_charsets_array[] = 'EUCJP';
$t_key = array_search(strtolower(trim((string)$_SESSION['language_charset'])), array_map('strtolower', $t_allowed_charsets_array));
if($t_key !== false)
{
$t_encoding = $t_allowed_charsets_array[$t_key];
}
}
else
{
$t_encoding = 'ISO-8859-1';
}
}
if(version_compare(PHP_VERSION, '5.2.3', '<'))
{
return htmlspecialchars((string)$p_string, $t_flags, $t_encoding);
}
else
{
return htmlspecialchars((string)$p_string, $t_flags, $t_encoding, $p_double_encode);
}
}

Unexpected error occurred...
Class "main_ORIGIN" not found