openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 9a3ebf0e8c73b33804bd80d48779a783c8c58306
parent 75ddaa93ed53609e709b327fb83aa0b5d9293069
Author: dankert <devnull@localhost>
Date:   Thu, 16 Dec 2004 00:20:55 +0100

*** empty log message ***

Diffstat:
doc/examples/config/config.ini.php | 20++------------------
doc/examples/config/config.ini.php.example.de | 81+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
doc/examples/config/db/config-mysql.ini.php | 18++++++++++++++++++
doc/examples/content-negotiation/about.txt | 8++++++++
doc/examples/content-negotiation/default-lang.sh | 59+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
doc/examples/htaccess/php-settings-example.htaccess | 3+--
doc/examples/htaccess/url-example.htaccess | 8++++++++
7 files changed, 177 insertions(+), 20 deletions(-)

diff --git a/doc/examples/config/config.ini.php b/doc/examples/config/config.ini.php @@ -209,25 +209,13 @@ format = "%time %level %host %user %action %text" ; --------------------------------------------------------------------- ; GD Image Library ; --------------------------------------------------------------------- -[gd] - -; ------------------------------------------------------------------- -; is GD installed (with GD you can use dynamic resizing of images) -; ------------------------------------------------------------------- -gd = yes -; ------------------------------------------------------------------- +[image] ; ------------------------------------------------------------------- ; Version of GD ( set to 1 or 2 ) ; GD version 2 allows you to use TrueColor Images ; ------------------------------------------------------------------- -version2 = true -; ------------------------------------------------------------------- - -; ------------------------------------------------------------------- -; if using GD, which Image-Types are supported (seperated by commas) -; ------------------------------------------------------------------- -extension = jpeg,jpg,png +truecolor = true ; ------------------------------------------------------------------- @@ -241,10 +229,6 @@ extension = jpeg,jpg,png ; ------------------------------------------------------------------- ; File separator is an character, which seperates directory and ; file names, f.e. " / " or " &raquo; "; -; - debug: Show all messages -; - info: Show informational messages -; - warn: Show warnings -; - error: Show only errors ; ------------------------------------------------------------------- file_separator = " &raquo; " ; ------------------------------------------------------------------- diff --git a/doc/examples/config/config.ini.php.example.de b/doc/examples/config/config.ini.php.example.de @@ -0,0 +1,80 @@ +; <!-- $Id: config.ini.php,v 1.6 2004/11/24 21:29:16 dankert Exp $ --> +; <?php exit ?> + +; Konfigurationsdatei fuer das OpenRat Content Management System +; Kommentarzeilen beginnen mit einem Semikolon. Leere Zeile werden ignoriert. + +; Schnellstart: +; Normalerweise aendern Sie nur die Datenbankparameter unter [database_DB] + + + +[database] + +databases = DB +default = DB + + +[database_DB] + +comment = "OpenRat Datenbank" ; beliebiger Text der diese Datenbank beschreibt +type = mysql ; moegliche Werte: 'mysql' oder 'postgresql' +user = dbuser ; Datenbank-Benutzer +password = dbpass ; Datenbank-Kennwort +host = localhost ; Adresse desDatenbank-Servers +;port ; TCP/IP-Port (optional) +database = cms ; Logischer Name der Datenbank +base64 = false ; Binaerdateien als BASE64 speichern (in Mysql=true, in Postgresql=false) +prefix = or_ ; Praefix der Tabellen +persistent = yes ; Persistene Datenbankverbindungen (schneller) + + +[ldap] ; optinaler LDAP-Server zur Kennwortauthentifizierung +host = "10.1.2.3" ; LDAP-Hostname +port = "389" ; LDAP-Port + + +[ftp] + +asciimode = html,htm,php + + +[global] + +default_language = de ; Spracheinstellung, wenn keine gueltige vom Browser angefordert +title = "OpenRat" ; Name der Anwendung im Titel des Browserfensters +version = "0.3" ; Version +ext = php ; nur aendern, wenn notwendig +tree_width = "25%" ; Breite des Auswahlbaumes (Angabe in Pixel oder Prozent) + + +[directories] + +datadir = "./data" +incldir = "./functions" +themedir = "./themes/default" +languagedir = "./language" +tmpdir = "./tmp" + + +[log] + +file = "" ; Wenn leer, wird nichts geloggt. Sonst Dateinamen angeben +level = "info" ; Level, eines von trace,debug,info,warn,error +date_format = "M j H:i:s" ; Format des Datums in der Logdatei +dns_lookup = false ; IP-Adressen der Clients aufloesen (langsamer) +format = "%time %level %host %user %action %text" ; Format der Logdatei + + +[image] + +truecolor = true ; Unterstuetzt die installierde GD-Bibliothek Truecolor-Operationen? + + +[interface] + +file_separator = " &raquo; " ; Trennzeichen von Ordnern +fake_urls = true ; Kurze Urls (erfordert RewriteRegel in .htaccess-Datei!) + + +; ................................... ; Ende+ \ No newline at end of file diff --git a/doc/examples/config/db/config-mysql.ini.php b/doc/examples/config/db/config-mysql.ini.php @@ -0,0 +1,17 @@ +; <!-- $Id$ --> +; <?php exit ?> + +; Konfigurationsdatei fuer Datenbankverbindung + +comment = "OpenRat Datenbank" ; beliebiger Text der diese Datenbank beschreibt +type = mysql ; moegliche Werte: 'mysql' oder 'postgresql' +user = dbuser ; Datenbank-Benutzer +password = dbpass ; Datenbank-Kennwort +host = localhost ; Adresse desDatenbank-Servers +;port ; TCP/IP-Port (optional) +database = cms ; Logischer Name der Datenbank +base64 = false ; Binaerdateien als BASE64 speichern (in Mysql=false, in Postgresql=true) +prefix = or_ ; Praefix der Tabellen +persistent = yes ; Persistene Datenbankverbindungen (schneller) + +; ................................ ;+ \ No newline at end of file diff --git a/doc/examples/content-negotiation/about.txt b/doc/examples/content-negotiation/about.txt @@ -0,0 +1,7 @@ + +$Id$ + +See the following URLs to learn more about content negotiation: + +- http://httpd.apache.org/docs-2.0/content-negotiation.html +- http://www.apacheweek.com/features/negotiation+ \ No newline at end of file diff --git a/doc/examples/content-negotiation/default-lang.sh b/doc/examples/content-negotiation/default-lang.sh @@ -0,0 +1,58 @@ +#/bin/sh +# +# Example: +# +# You have following 2 files in your document root: +# - page.de.html +# - page.en.html +# +# Now, if a browser comes with an Accept-Language-Header other than "de" or "en" an +# often unwanted page is shown where the user must select his language. +# +# Go to your document-root and execute this script: +# "$ ./default-lang.sh en.html html.html" +# +# Now you have 2 pages and 1 symlink in your document root: +# - page.de.html +# - page.en.html +# - page.html.html -> page.en.html +# +# Now, if a browser comes with an Accept-Language-Header other than "de" or "en" the +# english version will be taken by the webserver +# +# Notes: +# - Option "FollowSymLinks" (or "FollowSymLinksIfOwnerMatch") must be set +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# Author: Jan Dankert, http://www.jandankert.de +# $Id: $ + + +if [ "$1" == "" -o "$2" == "" ]; then + echo "Usage: $0 <orig-ext> <link-ext>" + exit +fi + +orig=$1 +link=$2 + +for oldlink in `find -type l -name "*$link"` +do + if [ ! -r "$oldlink" ]; then + rm -v $oldlink + fi +done + + +for file in `find -type f -name *$orig` +do + #echo found $file + sf=`echo $file|sed -e "s/\$orig$//g"` + file=`basename $file` + sf=$sf$link + ln -v -s $file $sf +done+ \ No newline at end of file diff --git a/doc/examples/htaccess/php-settings-example.htaccess b/doc/examples/htaccess/php-settings-example.htaccess @@ -5,8 +5,7 @@ # # Make sure to have "AllowOverride Options" or "AllowOverride All" set in httpd.conf # to make this possible. -# If you get an "Internal Server Error" you do not have this setting, in this case -# rename this file or push it out of the way. +# If you get an "Internal Server Error" you do not have this setting # # $Id$ diff --git a/doc/examples/htaccess/url-example.htaccess b/doc/examples/htaccess/url-example.htaccess @@ -0,0 +1,7 @@ + +# Copy this into your .htaccess +# you need the rewriting module loaded in your apache + +#Options FollowSymLinks +RewriteEngine on +RewriteRule ([a-z]+)\,([a-z]*)\.?([0-9]*)$ do.php?action=$1&subaction=$2&id=$3&%{QUERY_STRING}+ \ No newline at end of file