PHP Classes

File: lib/config.php

Recommend this page to a friend!
  Classes of andreas altendorfer   XML Weblication   lib/config.php   Download  
File: lib/config.php
Role: Configuration script
Content type: text/plain
Description: Configuration File
Class: XML Weblication
XML based content management framework
Author: By
Last change:
Date: 20 years ago
Size: 2,442 bytes
 

Contents

Class file image Download
<?php

/*
** @file config.php
** @project OLC
** @author <andreas@altendorfer.at>
** @created 2003-11-30,<andreas@altendorfer.at>
** @changed 2003-11-30,<andreas@altendrofer.at>,created
*/


//
// Define your rootpath here ...
//

// If it is my testserver
if ( $_SERVER['HTTP_HOST'] == "pb1.dam.altendorfer.at" ) {
 
$cfg["prefix"] = "/Users/aa/Sites/weblication";
}
// or it's the production server
else {
 
$cfg["prefix"] = "/home/aa/var/www/www.copyleft.at/htdocs/weblication";
}

//
// Set runtime flags ...
//
$cfg["remarks"] = false; // Output Remarks true/false
$cfg["remark_init"]= "<!--\n\n";
$cfg["remark_close"]="\n-->";

$cfg["errors"] = true; // Output Errors true/false
$cfg["error_init"]= "\n<blockqoute>";
$cfg["error_close"]="</blockquoute>\n";

$cfg["translation-file"] = $cfg["prefix"] . "/translate.txt";
$translation_table = array();
$translation_loaded = false;

$cfg["download-prefix"] = "<img width=24 src=/weblication/content/articles/img/download.gif
                            border=0 align=middle>&nbsp;<a href=http://www.copyleft.at/weblication/download/"
;
$cfg["download-middle"] = ">";
$cfg["download-suffix"] = "</a>";
$cfg["link-prefix"] = "&raquo;<a href=".$PHP_SELF."?type=article&aid=";
$cfg["link-middle"] = ">";
$cfg["link-suffix"] = "</a>";

//
// Subdirectories (do not change)
//
$cfg["html"] = $cfg["prefix"] . "/";
$cfg["content"] = $cfg["html"] . "/content";
$cfg["menu"] = $cfg["content"] . "/menu";
$cfg["news"] = $cfg["content"] . "/news";
$cfg["articles"] = $cfg["content"] . "/articles";
$cfg["etc"] = $cfg["prefix"] . "/etc";
$cfg["application"] = $cfg["html"] . "/application";
$cfg["templates"] = $cfg["html"] . "/templates";

//
// HTML-Accessfile
//
$cfg["html_access"] = ".htaccess";
$cfg["html_group"] = $cfg["etc"] . "/htaccess.group";
$cfg["html_user"] = $cfg["etc"] . "/htaccess.user";


//
// Layout
//
$cfg["selected_init"]="<b>";
$cfg["selected_close"]="</b>";


//
// load Includes
//

require_once( "lib/translate.php" );
require_once(
"lib/global.php" );
require_once(
"lib/xml.php" );
require_once(
"lib/xmlitem.php" );

// Classes
require_once( "lib/menu.php" );
require_once(
"lib/application.php" );
require_once(
"lib/article.php" );
require_once(
"lib/module.php" );

// Modules
require_once( "modules/article.php" );
require_once(
"modules/news.php" );
?>