Location: PHPKode > scripts > MSNStatus > msnstatus/MSNStatus.php
<?

//=============================//
//                             //
//   MSNStatus v0.2            //
//   MSNStatus Cron Job Bot    //
//   MSNStatus_Cron.php        //
//   by Stanga Razvan          //
//   hide@address.com   //
//   http://www.phprebel.org   //
//                             //
//       MADE IN ROMANIA       //
//                             //
//=============================//

error_reporting  (E_ERROR | E_WARNING | E_PARSE);

@set_time_limit(60);

ignore_user_abort(true);

//---------------
// Include Config
//---------------

require ("includes/MSNStatus.Config.php");


//----------------
// Check User/Pass
//----------------

if ( (!isset($_SERVER[PHP_AUTH_USER])) || !(($_SERVER[PHP_AUTH_USER] == $config['admin_user']) && ($_SERVER[PHP_AUTH_PW] == $config['admin_password'])) ) {
        header("WWW-Authenticate: Basic entrer=\"Form2txt admin\"");
        header("HTTP/1.0 401 Unauthorized");
        exit;
}

//------------------------
// Include MSNStatus Class
//------------------------

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

//----------------
// Start MSNStatus
//----------------

$MSNStatus = new MSNStatus;

$MSNStatus->config = $config;

$MSNStatus->debuglog ('----- '.date("Y-m-d H:i:s", time()).' -----', 1);

$MSNStatus->connect ($config['msnhost'], $config['msnport']);

// End Cache

?>
Return current item: MSNStatus