PHP Classes

File: MSNStatus.php

Recommend this page to a friend!
  Classes of Stanga Razvan   MSNStatus   MSNStatus.php   Download  
File: MSNStatus.php
Role: Example script
Content type: text/plain
Description: Example
Class: MSNStatus
Retrieve the status of MSN account
Author: By
Last change: minor updates
Date: 20 years ago
Size: 1,413 bytes
 

Contents

Class file image Download
<?

//=============================//
// //
// MSNStatus v0.2 //
// MSNStatus Cron Job Bot //
// MSNStatus_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);

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

?>