Location: PHPKode > projects > XmlWeblication > weblication/lib/config.php
<?php

/*
**   @file config.php
**   @project OLC
**   @author <hide@address.com>
**   @created 2003-11-30,<hide@address.com>
**   @changed 2003-11-30,<hide@address.com>,created
*/


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

// If it is my testserver
if ( $_SERVER['HTTP_HOST'] == "localhost" ) {
  $cfg["prefix"]      = "/Users/aa/Sites/weblication";
	$cfg["logfile"]     = "";
}
// or it's the production server
else {
  $cfg["logfile"]     = "/home/aa/var/log/www.copyleft.at";
  $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" );
require_once( "modules/logdisplay.php" );
require_once( "modules/downloadcounter.php");
require_once( "modules/season.php");
?>
Return current item: XmlWeblication