PHP Classes

File: settings.php

Recommend this page to a friend!
  Classes of Thiago Arcanjo   FileText   settings.php   Download  
File: settings.php
Role: Configuration script
Content type: text/plain
Description: APP/Site general settings
Class: FileText
Generate Web pages from template files
Author: By
Last change: FileText as updated.
Version 2.0.0
Change file languages place and format.
Added PHPDoc tags.
Date: 9 years ago
Size: 793 bytes
 

Contents

Class file image Download
<?php
/**
 * FileText
 *
 * @package FileText
 * @subpackage Settings
 *
 * @author Thiago Arcanjo <thiago@thiagoarcanjo.com.br>
 * @version 2.0.0
 *
 * @ignore Config file
 */
 
// Modo DEBUG - umcomment rows below
//ini_set('error_reporting', E_ALL);
//ini_set('display_errors',1);

// LANGUAGE
defined('LANGUAGE') || define('LANGUAGE','pt-br');

// PATHS
defined('PAGES_TPL') || define('PAGES_TPL','view/');
defined('FOLDER_LANGUAGES') || define('FOLDER_LANGUAGES','languages/');
defined('FOLDER_CLASS') || define('FOLDER_CLASS','classes/');


// AUTOLOAD Function - Load functions
function __autoload($className){
   
$file_name = $className.'.class.php';
    if(
file_exists(FOLDER_CLASS.$file_name))
        require_once(
FOLDER_CLASS.$file_name);
    else
        exit(
'Class '.$className.' not found!');
}
?>