1;",urldecode($str));
return html_entity_decode_utf8($str);
}
function html_entity_decode_utf8($string)
{
static $trans_tbl;
// replace numeric entities
$string = preg_replace('~([0-9a-f]+);~ei', 'code2utf(hexdec("\\1"))', $string);
$string = preg_replace('~([0-9]+);~e', 'code2utf(\\1)', $string);
// replace literal entities
if (!isset($trans_tbl))
{
$trans_tbl = array();
foreach (get_html_translation_table(HTML_ENTITIES) as $val=>$key)
$trans_tbl[$key] = utf8_encode($val);
}
return strtr($string, $trans_tbl);
}
// Returns the utf string corresponding to the unicode value (from php.net, courtesy - romans@void.lv)
function code2utf($num)
{
if ($num < 128) return chr($num);
if ($num < 2048) return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
if ($num < 65536) return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
if ($num < 2097152) return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
return '';
}
?>
).")";
$kunena_db->setQuery($sql);
}
$kunena_db->query();
echo $kunena_db->getErrorMsg();
?>
![]() |
|
Welcome, Guest
Please Login or Register. Lost Password? |
|
Support Group Leaders
|
|---|
|
09/19/2009 11:19
We are looking to expand our support network. Do you share our passion and vision?
Read More...
|
|
Global ConcernsIf you have a general concern or something to share which does not fit the other topics, post it here.
|
||||
|---|---|---|---|---|
| Forum | Topics | Replies | Last Post | |
|
|
This forum is where you can post and discuss health and safety issues relating to HIV and AIDS. Nothing is too trivial. We all nead to learn, support and educate eachother.
|
2 | 0 |
by teddy | 09/19/2009 22:29
|
|
ShareHere you can share some good news, encourage others, get it off your chest if you are going through a bad patch, or remember someone dear to you.
|
||||
|---|---|---|---|---|
| Forum | Topics | Replies | Last Post | |
|
|
Lost someone special to HIV? A friend, partner, child, parent or colleague? This space is reserved for you to write something in their memory.
|
1 | 1 |
by admin | 09/19/2009 01:40
|
|
|---|
|
Total Users: 37
Latest Member: ProffessorEva
Total Messages: 17 Total Subjects: 10 Total Sections: 5 Total Categories: 10 Today Open: 0 Yesterday Open: 0 Today Total Answer: 0 Yesterday Total Answer: 0 » View Recent Posts » More About Stats » User List |
Community Forum