CODE
Warning: html_entity_decode(): charset `iso-8859-2' not supported, assuming iso-8859-1 in /srv/www/htdocs/html/addcomments.php on line 44
natomiast kod mam taki:
czesc kodu, ktora powoduje blad, tka mi sie wydaje.
CODE
$_REQUEST['skin'] = end (explode (DIRECTORY_SEPARATOR, $_REQUEST['skin']));
if (!@is_dir(ROOT_DIR.'/templates/'.$_REQUEST['skin']))
{
die ("Hacking attempt!");
}
function convert_unicode($t, $to = 'iso-8859-2')
{
$t = preg_replace( '#%u([0-9A-F]{1,4})#ie', "'&#' . hexdec('\\1') . ';'", $t );
$t = urldecode ($t);
$t = html_entity_decode($t, ENT_NOQUOTES, $to);
return $t;
}
if (!@is_dir(ROOT_DIR.'/templates/'.$_REQUEST['skin']))
{
die ("Hacking attempt!");
}
function convert_unicode($t, $to = 'iso-8859-2')
{
$t = preg_replace( '#%u([0-9A-F]{1,4})#ie', "'&#' . hexdec('\\1') . ';'", $t );
$t = urldecode ($t);
$t = html_entity_decode($t, ENT_NOQUOTES, $to);
return $t;
}
Dzieki za odp.