Quote:
Originally Posted by Phogo
Nice,
i want to see whats inside
functions_ts_remote_connect.php
|
PHP Code:
<?php
function TS_Clean_String ($imputString)
{
$whatToCleanArray = array (chr (13), chr (10), chr (13) . chr (10), chr (10) . chr (13), '
', ' ', ' ', ' ', '
', '
', '<br>', '<br/>', '<br />');
$cleanWithArray = array ('', '', '', '', '', '', '', '', '', '', '', '', '');
$cleaned = str_replace ($whatToCleanArray, $cleanWithArray, $imputString);
$cleaned = trim ($cleaned);
return $cleaned;
}
function TS_Fetch_Data ($url, $cleantext = true)
{
@ini_set ('user_agent', 'TS_SE via cURL/PHP');
$data = false;
if ((function_exists ('curl_init') AND $ch = curl_init ()))
{
$timeout = 5;
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$data = curl_exec ($ch);
curl_close ($ch);
}
if ((!$data AND !ini_get ('allow_url_fopen') == 0))
{
$contents = '';
if ($handle = @fopen ($url, 'rb'))
{
while (!feof ($handle))
{
$contents .= fread ($handle, 8192);
}
fclose ($handle);
$data = $contents;
}
}
if (!$data)
{
$data = file_get_contents ($url);
}
return ($cleantext == true ? TS_Clean_String ($data) : $data);
}
if (!defined ('IN_TRACKER'))
{
exit ('<font face=\'verdana\' size=\'2\' color=\'darkred\'><b>Error!</b> Direct initialization of this file is not allowed.</font>');
}
?>
thanks again to ps2gamer for decoding functions_ts_remote_connect.php