PHP Classes

File: YahooStatus_Cron.php

Recommend this page to a friend!
  Classes of Stanga Razvan   YahooStatus   YahooStatus_Cron.php   Download  
File: YahooStatus_Cron.php
Role: Example script
Content type: text/plain
Description: cron example
Class: YahooStatus
Retrieve the status of Yahoo account
Author: By
Last change:
Date: 21 years ago
Size: 1,733 bytes
 

Contents

Class file image Download
<?

//=============================//
// //
// 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

?>