mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
parent
f029df8445
commit
3f53d327e9
13
common.php
13
common.php
@ -82,19 +82,6 @@ function sqlite3_escape_string ($str)
|
||||
return SQLite3::escapeString($str);
|
||||
}
|
||||
|
||||
/**
|
||||
* html_entity_decode replacement (from php manual)
|
||||
*/
|
||||
if (!function_exists('html_entity_decode'))
|
||||
{
|
||||
function html_entity_decode($given_html, $quote_style = ENT_QUOTES)
|
||||
{
|
||||
$trans_table = array_flip(get_html_translation_table(HTML_SPECIALCHARS, $quote_style));
|
||||
$trans_table['''] = "'";
|
||||
return (strtr($given_html, $trans_table));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Database
|
||||
*/
|
||||
|
@ -4,6 +4,19 @@
|
||||
* All Attachment Functions needed everywhere
|
||||
*/
|
||||
|
||||
/**
|
||||
* html_entity_decode replacement (from php manual)
|
||||
*/
|
||||
if (!function_exists('html_entity_decode'))
|
||||
{
|
||||
function html_entity_decode($given_html, $quote_style = ENT_QUOTES)
|
||||
{
|
||||
$trans_table = array_flip(get_html_translation_table(HTML_SPECIALCHARS, $quote_style));
|
||||
$trans_table['''] = "'";
|
||||
return (strtr($given_html, $trans_table));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A simple dectobase64 function
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user