<?
//=============================// // // // YahooStatus v0.1 // // YahooStatus Cron Job Bot // // YahooStatus_Cron.php // // by Stanga Razvan // // razvan_stanga@yahoo.com // // http://venom.gent00.org // // // // MADE IN ROMANIA // // // //=============================//
error_reporting (E_ERROR | E_WARNING | E_PARSE);
@set_time_limit(0);
ignore_user_abort(true);
//--------------- // Include Config //---------------
require ("includes/YahooStatus.Config.php");
//-------------------------- // Include YahooStatus Class //--------------------------
require ("includes/YahooStatus.Class.php");
//----------------------- // Include Cron Job Class //-----------------------
require ("includes/YahooStatus.Cron.php");
//---------------------- // Start YahooStatusCron //----------------------
$YahooStatusCron = new YahooStatusCron;
//----------------- // Start Time Cache //-----------------
$time_cache = array ();
if (file_exists ("includes/_time/".$config['screenname'].".php")) { require ("includes/_time/".$config['screenname'].".php"); }
$time_temp = time ();
if ( $time_cache[ $config['screenname'] ] <= $time_temp ) {
$time_cache[ $config['screenname'] ] = $time_temp + $config['cronjob'];
//----------------- // Writing new time //-----------------
$YahooStatusCron->do_write ($time_cache, $config['screenname']);
//---------------- // Start YahooStatus //----------------
$YahooStatus = new YahooStatus;
$YahooStatus->config = $config;
$YahooStatus->debuglog ('----- '.date("Y-m-d H:i:s", time()).' -----');
$YahooStatus->getImage ();
}
// End Cache
?>
|