PHP Classes

File: PHPDc.php

Recommend this page to a friend!
  Classes of Stanga Razvan   PHPDc   PHPDc.php   Download  
File: PHPDc.php
Role: Example script
Content type: text/plain
Description: example
Class: PHPDc
Direct connect statistics retrieval
Author: By
Last change:
Date: 20 years ago
Size: 1,491 bytes
 

Contents

Class file image Download
<?php

//=============================//
// //
// PHPDc v0.2 //
// PHPDc Manual Bot //
// PHPDc.php //
// by [RO]VeNoM //
// razvan_stanga@yahoo.com //
// //
// MADE IN ROMANIA //
// //
//=============================//

error_reporting (E_ERROR | E_WARNING | E_PARSE);

@
set_time_limit(0);

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

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

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

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

//--------------------
// Include PHPDc Class
//--------------------

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

foreach (
$hub as $k => $v) {

//------------
// Start PHPDc
//------------

$PHPDc = new PHPDc;

$config['hub'] = $v['hub'];
$config['port'] = $v['port'];
$config['name'] = $v['name'];
$config['desc'] = $v['desc'];
$config['template'] = $v['template'];
$config['time'] = time ();

$PHPDc->config = $config;

$PHPDc->hub = $hub;

$PHPDc->debuglog ('----- '.date("Y-m-d H:i:s").' -----');

$PHPDc->connect($config['hub'], $config['port']);

$PHPDc->listen ();

}

?>