Login   Register  
PHP Classes
elePHPant
Icontem

File: config.inc.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2 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);
    }
}

-->