<?

//=============================//
//                             //
//   pingStatus v0.1           //
//   pingStatus Cron Job Bot   //
//   pingStatus_Cron.php       //
//   by Stanga Razvan          //
//   razvan_stanga@yahoo.com   //
//   http://www.phprebel.org   //
//                             //
//       MADE IN ROMANIA       //
//                             //
//=============================//

error_reporting  (E_ERROR E_WARNING E_PARSE);

@
set_time_limit (60);

$ip "80.97.82.159";

//-------------------------
// Include pingStatus Class
//-------------------------

require ("includes/pingStatus.Class.php");

//-----------------
// Start pingStatus
//-----------------

$pingStatus = new pingStatus ($ip);

$pingStatus->ip $ip;

//-----------------------
// Include pingClass Cron
//-----------------------

require ("includes/pingStatus.Cron.php");

//---------------------
// Start pingStatusCron
//---------------------

$pingStatusCron = new pingStatusCron;

//-----------------
// Start Time Cache
//-----------------

$time_cache = array ();

if (
file_exists ("includes/_time/".$ip.".php")) {
  require (
"includes/_time/".$ip.".php");
}

if ( 
$time_cache$ip ] <= $time_temp ) {

$time_temp time ();

$time_cache$ip ] = $time_temp $pingStatus->config['cronjob'];

//-----------------
// Writing new time
//-----------------

$pingStatusCron->do_write ($time_cache$ip);

//---------------
// Do the pinging
//---------------

$pingStatus->pingIP ();

}

// End Cache

?>