Jump to content

Need help adding something to this script


BRADERY

Recommended Posts

I need to make it to where I could add more then one iRepeatHeader and then have an option to tell that header how many time to repeat before going on to the next header in the script and then telling that header how many time to repeat and ETC

 

I would need it to print out the xml in CLI as it is running also

 

<?PHP
$iRepeatHeader = "HEADER"; // Header to repeat...
$iTimePause = 0; // Seconds to pause between each repetition.
$iRepeatTimes = -1; // Repeat header how many times? -1 for unlimited...
//////////////////////////////////////////////////////////////////////////
$iXMLPrint = "MESSAGE"; // XML section to print. MESSAGE works for most things.
//////////////////////////////////////////////////////////////////////////
/////////////// DON'T EDIT BELOW THIS LINE ///////////////////////////////
//////////////////////////////////////////////////////////////////////////
$iRepeatHeader = explode("&opensocial_authtype", str_replace("GET /proxy/relay.proxy?opensocial_url=", "", urldecode($iRepeatHeader)));
for($i=1; $i!=$iRepeatTimes+1; $i++)
{
  if(stristr($iFile=@file_get_contents($iRepeatHeader[0]), "fails security check"))
  {
    echo "Failed Security Check... Get a new link.";
    sleep(45324532);
  }
  else if(stristr($iFile, "CAPTCHA") || stristr($iFile, "terms"))
  {
    echo "You've got captcha... Wait a few days?";
    sleep(45324532);
  }
  xml_parse_into_struct($iP=xml_parser_create(), $iFile, $iS, $iX);xml_parser_free($iP);
  echo "$i ::: ".strip_tags($iS[$iX[$iXMLPrint][0]]['value'])."\n\n";
  sleep($iTimePause);
}
echo "Repeated approximately $iRepeatTimes times...\nYou can close this at any time.";
sleep(45324532);
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.