From 32db2e485a5e035d3201aac64bc0ae1146dfd4b8 Mon Sep 17 00:00:00 2001 From: rurban Date: Tue, 20 Aug 2002 11:34:09 +0000 Subject: [PATCH] wiki: sample index.php override for simplier installation and testing of other parameters (lang, theme, db, ...) added .htaccess hints git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2264 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- .htaccess | 7 ++++++- INSTALL | 6 +++--- wiki | 25 +++++++++++++++++++++++++ 3 files changed, 34 insertions(+), 4 deletions(-) create mode 100644 wiki diff --git a/.htaccess b/.htaccess index b49440b02..9a23e2b30 100644 --- a/.htaccess +++ b/.htaccess @@ -1,4 +1,4 @@ -# $Id: .htaccess,v 1.3 2002-01-14 19:21:22 dairiki Exp $ +# $Id: .htaccess,v 1.4 2002-08-20 11:34:09 rurban Exp $ @@ -12,3 +12,8 @@ # php_flag allow_url_fopen off + +# Try various wiki versions, like wiki, wikide, wikisidebar, ... +# +# SetHandler application/x-httpd-php +# diff --git a/INSTALL b/INSTALL index e37fa2720..32d66be8d 100644 --- a/INSTALL +++ b/INSTALL @@ -8,7 +8,7 @@ version 4.0.4pl1 / 4.0.5 or greater.) Due to a security issue found in all versions of PHP (including 3.x and 4.x), all users of PHP are strongly encouraged to either upgrade -to PHP 4.1.2, or install a patch available for PHP 3.0.18, 4.0.6 and +to PHP 4.2.2, or install a patch available for PHP 3.0.18, 4.0.6 and 4.1.0/4.1.1. Visit for downloads and information. You need the Perl regular expressions package compiled in; this is the @@ -22,7 +22,7 @@ PHP installation manual for specific installation and configure options. Since version 1.3.0 PhpWiki uses the 'DB.php' from PEAR, a database -absraction layer which is part of PHP. PhpWiki version 1.3.3 and later +abstraction layer which is part of PHP. PhpWiki version 1.3.3 and later includes the necessary PEAR library and will use it instead of any PEAR library which may already be present on your system. For more information about PEAR see . @@ -150,4 +150,4 @@ You can join this list at: FIN -$Id: INSTALL,v 1.17 2002-03-27 00:38:51 carstenklapp Exp $ \ No newline at end of file +$Id: INSTALL,v 1.18 2002-08-20 11:34:09 rurban Exp $ \ No newline at end of file diff --git a/wiki b/wiki new file mode 100644 index 000000000..cd28c6272 --- /dev/null +++ b/wiki @@ -0,0 +1,25 @@ +/wiki/HomePage" instead of "//index.php/HomePage" +// The simpliest version is +// include "index.php"; include "lib/main.php"; + +$LANG='de_DE'; +define('THEME', 'Portland'); + +// CONSTANTS as default wiki overrides before index.php +//define('WIKI_NAME', "WikiDemo:$LANG:" . THEME); + +// Load the default configuration. +include "index.php"; + +// VARIABLES as default wiki overrides after index.php: +putenv("LC_TIME=$LANG"); +// Try another DB +$DBParams['dbtype'] = 'SQL'; +$DBParams['dsn'] = 'mysql://:@localhost/_wiki'; + +// Start the wiki. +include "lib/main.php"; +?> \ No newline at end of file -- 2.45.0