PHP Classes

File: config.inc.php

Recommend this page to a friend!
  Classes of Tom Schaefer   QBaseClass   config.inc.php   Download  
File: config.inc.php
Role: Configuration script
Content type: text/plain
Description: configuration
Class: QBaseClass
Add variable management functions to sub-classes
Author: By
Last change: <b>asdasda</b>
Date: 12 years ago
Size: 510 bytes
 

Contents

Class file image Download
<!--?php

define("DS", DIRECTORY_SEPARATOR);

include_once(dirname(__FILE__).DS."core".DS."QConfig.class.php");

QConfig::set("root", dirname(__FILE__));
QConfig::set("classes", QConfig::get('root').DS."core");

function __autoload($className){
    $check=false;

    $strClassFileName = $className.'.class.php';
    if(is_file(QConfig::get('classes').DS.$strClassFileName)){
        $check=true;
        $path = QConfig::get('classes').DS.$strClassFileName;
    }

    if($check){
        include_once($path);
    }
}

-->