View Single Post
  #7  
Old 19th October 2010, 18:51
fireman fireman is offline
IonCube-R
 
Join Date: Oct 2008
Posts: 99
Smile
Quote:
Originally Posted by Phogo View Post
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 ($chCURLOPT_URL$url);
      
curl_setopt ($chCURLOPT_RETURNTRANSFER1);
      
curl_setopt ($chCURLOPT_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 ($handle8192);
        }

        
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
Reply With Quote
The Following 2 Users Say Thank You to fireman For This Useful Post:
Daz (31st October 2010), Marco (20th October 2010)