Konfiguration eines Projektes

Aus MAXcms

Wechseln zu: Navigation, Suche

[bearbeiten] die Konfigurationsdatei

Die Datei zum Konfigurieren eines einzelnen Projektes, auch bei zentraler Installation von MAXcms für mehrere Projekte, liegt im Hauptordner der Projektinstallation und hat den Namen: inc.thcms.php

Im Projektordner befindet sich außerdem die Datei inc.thcms_var.php, welche die Zugangsdaten zur Datenbank beinhaltet.

[bearbeiten] Konfigurationsvariablen in inc.thcms.php

<?php
$thCMS_config["thCMS_root"]             = "/home/ay/public_html/maxcms";
$thCMS_config["thCMS_project"]          = dirname(__FILE__);             
$thCMS_config["thCMS_project_includes"] = dirname(__FILE__)."/cms_includes";    
$thCMS_config["thCMS_mediaRoot"]        = dirname(__FILE__)."/media";           
$thCMS_config["thCMS_mediaUrl"]         = "/media";                             
$thCMS_config["thCMS_archiv"]           = dirname(__FILE__)."/archiv";          
$thCMS_config["thCMS_logEnabled"]       = false;                                
$thCMS_config["ajax"] = false;											
$thCMS_config["thCMS_multilanguagePrimary"] = "";								
$thCMS_config["thCMS_hardcache"] = false;									
$thCMS_config["visitortrack_disablepage"] = ",";								
$thCMS_config["useFunctionForMail"] = "";									
$thCMS_config["useUTF8"] = false;										
$GLOBALS["thCMS_config"]["httpsForConfig"] = false;
$GLOBALS["thCMS_config"]["httpsForFrontend"] = false;
$GLOBALS["thCMS_config"]["dbcharset"] = ""; // latin1
$GLOBALS["thCMS_config"]["mailserver"] = ""; 
$GLOBALS["thCMS_config"]["mailehlo"] = "";
$GLOBALS["thCMS_config"]["disableCache"] = false;
$thCMS_config["fixTpl"] = false;
$GLOBALS["thCMS_config"]["cmsLayerMenu"] = false;
// FTP-Export
$thCMS_config["exportftp"] = false;
$thCMS_config["exportftp_server"] = "";
$thCMS_config["exportftp_user"] = "";
$thCMS_config["exportftp_pass"]	 = "";
$thCMS_config["exportftp_path"] = "";
$thCMS_config["ExtUserAuthFunc"] = "";										
$thCMS_config["multi_db"] = "";										
$thCMS_config["realFilesExtension"]     = ".html";                               
$thCMS_config["workWithRealFiles"]      = false;                                 
include_once($thCMS_config["thCMS_root"]."/inc.init.php");
?>

[bearbeiten] Datenbankzugang in inc.thcms_var.php einrichten

Die Datei inc.thcms_var.php umfaßt nur folgende wenige Zeilen:

<?php
$DB_DRIVER = "mysql";
$DB_HOST = "localhost";
$DB_NAME = "DATABASENAME";
$DB_USER = "USERNAME";
$DB_PASS = "PASSWORD";
?>
Persönliche Werkzeuge