[evolvis-commits] r15620: Update Phpwiki admin
mirabilos at evolvis.org
mirabilos at evolvis.org
Tue Mar 1 00:21:29 CET 2011
Author: mirabilos
Date: 2011-03-01 00:21:29 +0100 (Tue, 01 Mar 2011)
New Revision: 15620
Added:
trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/admin/dump-version.pl
trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/admin/mkfuncs
trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/admin/updateinterwikimap
trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/admin/wiki2public.php
trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/wikiadmin.php
Removed:
trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/config/config.ini
trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/gforge.php
trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/phpwiki.php
trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/u
trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/wikiconfig.php
trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/www
trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/z
Modified:
trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/favicon.ico
Log:
Update Phpwiki admin
Added: trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/admin/dump-version.pl
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/admin/dump-version.pl (rev 0)
+++ trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/admin/dump-version.pl 2011-02-28 23:21:29 UTC (rev 15620)
@@ -0,0 +1,10 @@
+#!/usr/bin/perl -l
+
+open F, "<", "lib/prepend.php" or exit 1;
+while (<F>) {
+ if (/PHPWIKI_VERSION., .(.+).\);/) {
+ print $1;
+ exit
+ }
+}
+close F;
Property changes on: trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/admin/dump-version.pl
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/admin/mkfuncs
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/admin/mkfuncs (rev 0)
+++ trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/admin/mkfuncs 2011-02-28 23:21:29 UTC (rev 15620)
@@ -0,0 +1,45 @@
+#!/bin/sh
+mkfuncs4() {
+ for tag in "$@"
+ do
+ echo " function $tag (/*...*/) {"
+ echo " \$el = new HtmlElement('$tag');"
+ echo " return \$el->_init2(func_get_args());"
+ echo " }"
+ done
+}
+mkfuncs5 () {
+ for tag in "$@"
+ do
+ echo " public static function $tag (/*...*/) {"
+ echo " \$el = new HtmlElement('$tag');"
+ echo " return \$el->_init2(func_get_args());"
+ echo " }"
+ done
+}
+alias mkfuncs=mkfuncs4
+#alias mkfuncs=mkfuncs5
+
+d='
+ /****************************************/'
+mkfuncs link meta style script noscript
+echo "$d"
+mkfuncs a img br span
+echo "$d"
+mkfuncs h1 h2 h3 h4 h5 h6
+echo "$d"
+mkfuncs hr div p pre blockquote
+echo "$d"
+mkfuncs em strong small
+echo "$d"
+mkfuncs tt u sup sub
+echo "$d"
+mkfuncs ul ol dl li dt dd
+echo "$d"
+mkfuncs table caption thead tbody tfoot tr td th colgroup col
+echo "$d"
+mkfuncs form input option select textarea label fieldset legend
+echo "$d"
+mkfuncs area map frame frameset iframe nobody object embed param
+echo "$d"
+mkfuncs video
Property changes on: trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/admin/mkfuncs
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/admin/updateinterwikimap
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/admin/updateinterwikimap (rev 0)
+++ trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/admin/updateinterwikimap 2011-02-28 23:21:29 UTC (rev 15620)
@@ -0,0 +1,37 @@
+#!/bin/sh
+# cd lib
+# ../admin/updateinterwikimap
+currentfile=interwiki.map
+backupfile=/tmp/${currentfile}.bak
+downloadfile=/tmp/intermap.txt
+newfile=/tmp/${currentfile}
+tempfile=/tmp/intermap.tmp
+
+echo "Downloading latest InterWikiMap from PhpWiki SVN"
+svns up ${currentfile}
+
+echo "Downloading latest InterWikiMap from Usemod"
+curl http://usemod.com/intermap.txt -o ${downloadfile}
+
+echo "Backing up current ${currentfile} to ${backupfile}"
+cp -p ${currentfile} ${backupfile}
+
+echo "merging ${downloadfile} with installed ${currentfile}"
+cat ${downloadfile} > ${tempfile}
+cat ${backupfile} >> ${tempfile}
+cat ${tempfile} | sort -f | uniq > ${newfile}
+
+echo "Installing updated InterWikiMap"
+install -m 0644 ${newfile} ${currentfile}
+rm ${downloadfile} ${tempfile} ${newfile}
+
+echo "The following new InterWikiMap entries were found:"
+diff -u0 ${backupfile} ${currentfile}
+
+echo "Comparing with PhpWiki SVN:"
+svn diff ${currentfile}
+
+echo "*** You must check ${currentfile} for duplicates or other problems. ***"
+echo "*** The backup file is: ${backupfile}. ***"
+
+echo "Done."
Added: trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/admin/wiki2public.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/admin/wiki2public.php (rev 0)
+++ trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/admin/wiki2public.php 2011-02-28 23:21:29 UTC (rev 15620)
@@ -0,0 +1,5 @@
+<?php // -*-php-*- $Id: wiki2public.php 7181 2009-10-05 14:25:48Z vargenau $
+ // cronjob script to copy pages marked as "public" to a seperate public wiki area.
+ // If ENABLE_PAGE_PUBLIC = true
+ // can only run via localhost for security reasons
+?>
Deleted: trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/config/config.ini
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/config/config.ini 2011-02-28 23:21:26 UTC (rev 15619)
+++ trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/config/config.ini 2011-02-28 23:21:29 UTC (rev 15620)
@@ -1,1467 +0,0 @@
-; This is a local configuration file for PhpWiki.
-; It was automatically generated by the configurator script
-; on the 17th 2009f March, 2009 22:46:24.
-;
-;
-; This is the main configuration file for PhpWiki in INI-style format.
-; Note that certain characters are used as comment char and therefore
-; these entries must be in double-quotes. Such as ":", ";", "," and "|"
-; Take special care for DBAUTH_ sql statements. (Part 3a)
-;
-; This file is divided into several parts: Each one has different configuration
-; settings you can change; in all cases the default should work on your system,
-; however, we recommend you tailor things to your particular setting.
-; Here undefined definitions get defined by config-default.ini settings.
-
-; Hack
-UPLOAD_DATA_PATH = /phpwiki/uploads/
-
-;=========================================================================
-; Part Zero: (optional)
-; Latest Development and Tricky Options
-;=========================================================================
-
-; Part Zero: Latest Development and Tricky Options
-; If PHP needs help in finding where you installed the rest of the PhpWiki
-; code, you can set the include_path here.
-;
-;
-; Override PHP's include path so that it can find some needed additional libraries.
-; You shouldn't need to do this unless your system include_path esp. your
-; system pear libs are broken or oudated. The PHPWIKI_DIR is automatically
-; put to the front and the local lib/pear path is automatically added to the end.
-; But if you define it, be sure to include either the system pear path or
-; the phpwiki/lib/pear path to override your Pear_DB.
-; Note that on Windows-based servers, you should use ; rather than :
-; as the path separator.
-;
-INCLUDE_PATH = "/Applications/MAMP/htdocs/phpwiki:.:/Applications/MAMP/bin/php5/lib/php:/Applications/MAMP/htdocs/phpwiki/lib/pear"
-
-; Set DEBUG to 1 to view the XHTML and CSS validator icons, page
-; processing timer, and possibly other debugging messages at the
-; bottom of each page. 65 for a more verbose level with AUTH hints.
-; See lib/config.php for all supported values.
-; Default: 0
-;
-DEBUG = 0
-
-; DISABLE_UPLOAD_ONLY_ALLOWED_EXTENSIONS = true
-
-; Graphical buttons on edit. Default: true
-; Reportedly broken on MacOSX Safari
-;
-ENABLE_EDIT_TOOLBAR = true
-
-; Adds two additional buttons in EDIT_TOOLBAR, Search&Replace and Undo.
-; Undo is experimental. Default: true
-;
-JS_SEARCHREPLACE = true
-
-; Edit a page by double-click into the text. This will conflict with word-selection.
-; Note: Enable it for all users. Otherwise as per-user setting in UserPreferences.
-; Default: false
-;
-ENABLE_DOUBLECLICKEDIT = false
-
-; Enable WYSIWYG editing. Converting back HTML to wikitext does not work in most engines.
-; Experimental!
-;
-ENABLE_WYSIWYG = false
-
-; Which backend? Might need to be seperately installed. See lib/WysiwygEdit/
-; Recommended is only Wikiwyg.
-;
-;
-;
-WYSIWYG_BACKEND = Wikiwyg
-
-; Store all WYSIWYG pages as HTML? Will loose most link and plugin options.
-; Not recommended, but presented here to test several WYSIWYG backends.
-;
-WYSIWYG_DEFAULT_PAGETYPE_HTML = false
-
-; Upload into seperate userdirs. If enabled (default since 1.3.13) the generated Upload: link
-; will include the username plus "/". This will make all uploaded links longer, but we
-; avoid nameclashes and you see who uploaded what file.
-;
-UPLOAD_USERDIR = false
-
-; SemanticWeb Units require the standard units executable, available in every distribution.
-; On Windows the cygwin version works fine if e.g. the cygwin bin is in the webserver path.
-; However if units fails, attribute comparisons will fail. Esp. getting the base unit and
-; base values for all attributes.
-; So you might want to disable the unit strictness at all (area:=936km^2 < 1,000,000 ?).
-; Default: false
-;
-DISABLE_UNITS = false
-
-; For a non-standard path
-;
-;UNITS_EXE = ""
-
-; Needed for inlined SVG and MathM, but conflicts with document.write().
-; Experimental. Default: false. Problematic with MSIE6
-; See http://hixie.ch/advocacy/xhtml
-;
-ENABLE_XHTML_XML = false
-
-; Needs babycart installed. See http://phpwiki.org/SpamAssassinIntegration
-; Optionally define BABYCART_PATH. Default: /usr/local/bin/babycart
-;
-ENABLE_SPAMASSASSIN = false
-
-; Check for links to blocked external tld domains in new edits, against
-; multi.surbl.org and bl.spamcop.net.
-;
-ENABLE_SPAMBLOCKLIST = false
-
-; If more than this number of external links appear on non-authenticated
-; edits it will be rejected as spam.
-;
-NUM_SPAM_LINKS = 20
-
-; If GOOGLE_LINKS_NOFOLLOW is true, ref=nofollow is added to
-; all external links to discourage spam. You might want to turn it off,
-; if you want to improve pageranks on external links.
-; TODO: Add ref=nofollow only for external links added by anonymous users.
-; All internal action links do contain ref=nofollow
-;
-GOOGLE_LINKS_NOFOLLOW = true
-
-; LiveSearch enables immediate title search results via XMLHttpRequest.
-; Displays the results in a dropdown under the titlesearch inputbox
-; while typing. (experimental, only with certain themes)
-; You'll have to copy livesearch.js from http://blog.bitflux.ch/wiki/LiveSearch
-; to themes/default/ and define ENABLE_LIVESEARCH in config.ini to true.
-; See themes/blog/themeinfo.php.
-; We used the bitflux.ch library temporarily, but we changed to
-; the better moacdropdown.
-;
-ENABLE_LIVESEARCH = false
-
-; ENABLE_ACDROPDOWN replaces now ENABLE_LIVESEARCH
-; http://momche.net/publish/article.php?page=acdropdown
-;
-ENABLE_ACDROPDOWN = false
-
-; Experimental WikiPedia feature: Force Discussion/Article link at the topnavbar.
-;
-ENABLE_DISCUSSION_LINK = false
-
-; If set to true, add some anti-spam countermeasures based on captcha
-; tests. See http://www.captcha.net/ for more information on captcha.
-;
-ENABLE_CAPTCHA = false
-
-; If USE_CAPTCHA_RANDOM_WORD is set to true,
-; Captcha will use a random word, otherwise a dictionary word.
-;
-USE_CAPTCHA_RANDOM_WORD = false
-
-; USE_SAFE_DBSESSION should be enabled, if you encounter session problems, with
-; duplicate INSERT sess_id warnings at the bottom of the page. Reason is a
-; unreliable affected_rows implementation() in the sql backend.
-; Default is Disabled, using the fastest DbSession UPDATE method.
-;
-USE_SAFE_DBSESSION = false
-
-; If true don't use UserName/Blog/day/time pagenames for the ADMIN_USER, but
-; Blog/day/time only. Convenience for a single-user blog theme.
-;
-BLOG_DEFAULT_EMPTY_PREFIX = true
-
-; External Searchengine hits are detected automatically and will be
-; highlighted in the displayed page if enabled.
-; Optionally the actionpage SearchHighlight is also prepended, which
-; prints a notice.
-; Default: true
-;
-ENABLE_SEARCHHIGHLIGHT = true
-
-;=========================================================================
-; Part One: Authentication and security settings. See Part Three for more.
-;=========================================================================
-
-; The name of your wiki.
-;
-;
-; This is used to generate a keywords meta tag in the HTML templates,
-; in bookmark titles for any bookmarks made to pages in your wiki,
-; and during RSS generation for the title of the RSS channel.
-;
-;
-; To use your own logo and signature files, name them PhpWikiLogo.png
-; and PhpWikiSignature.png and put them into themes/default/images
-; here).
-;
-;
-; It is recommended this be a relatively short WikiWord like the
-; InterWiki monikers found in the InterWikiMap. (For examples, see
-; lib/interwiki.map).
-;
-WIKI_NAME = "PhpWiki"
-
-; You must set this! Username and password of the administrator.
-ADMIN_USER = "admin"
-
-; You must set this!
-; For heaven's sake pick a good password.
-;
-; If your version of PHP supports encrypted passwords, your password will be
-; automatically encrypted within the generated config file.
-; Use the "Create Random Password" button to create a good (random) password.
-;
-; ADMIN_PASSWD is ignored on HttpAuth
-ADMIN_PASSWD = "myadmin"
-ENCRYPTED_PASSWD = false
-
-; It is recommended that you use encrypted passwords to be stored in the
-; config.ini and the users homepages metadata.
-; You might want to use the passencrypt.php utility to encode the
-; admin password, in the event that someone gains ftp or ssh access to the
-; server and directory containing phpwiki.
-;
-;
-; If true, all user passwords will be stored encrypted.
-; You might have to set it to false, if your PHP doesn't support crypt().
-; To use plain text passwords, in particular for the ADMIN_PASSWD, set
-; ENCRYPTED_PASSWD to false.
-;
-; ENCRYPTED_PASSWD = true
-
-; Visitor Hostname Lookup
-;
-;
-; If set, reverse dns lookups will be performed to attempt to convert
-; the user's IP number into a host name, in the case where the http
-; server does not do this.
-;
-ENABLE_REVERSE_DNS = true
-
-; Private ZIP Dumps of All Wiki Pages
-;
-;
-; If true, only the admin user can make zip dumps. Otherwise anyone
-; may download all wiki pages as a single zip archive.
-;
-ZIPDUMP_AUTH = false
-
-; The RawHtml plugin allows page authors to embed real, raw HTML into Wiki
-; pages. This is a possible security threat, as much HTML (or, rather,
-; JavaScript) can be very risky. If you are in a controlled environment,
-; or you are using the two options below, however, it could be of use.
-;
-ENABLE_RAW_HTML = true
-
-; If this is set, only pages locked by the Administrator may contain the
-; RawHtml plugin
-;
-ENABLE_RAW_HTML_LOCKEDONLY = true
-
-; If this is set, all unsafe html code is stripped automatically (experimental!)
-; See <a href="http://chxo.com/scripts/safe_html-test.php" target="_new">chxo.com/scripts/safe_html-test.php</a>
-;
-ENABLE_RAW_HTML_SAFE = true
-
-; The maximum file upload size, in bytes.
-; The default, 16777216, is 16MB.
-;
-MAX_UPLOAD_SIZE = 16777216
-
-; If the last edit is older than MINOR_EDIT_TIMEOUT seconds, the
-; default state for the "minor edit" checkbox on the edit page form
-; will be off.
-; The default, 604800, is one week (7 days): 7 * 24 * 3600
-;
-MINOR_EDIT_TIMEOUT = 604800
-
-; Actions listed in this array will not be allowed. The complete list
-; of actions can be found in lib/main.php with the function
-; getActionDescription.
-;
-;
-; purge, remove, revert, xmlrpc, soap, upload, browse, create, diff, dumphtml,
-; dumpserial, edit, loadfile, lock, unlock, viewsource, zip, ziphtml, ...
-;
-;DISABLED_ACTIONS = ""
-
-; If you enable this option, every page is moderated by the ModeratedPage
-; actionpage plugin. Changing a moderated page will be delayed to be
-; granted by a moderator by email. Default: false to allow finer control.
-;
-ENABLE_MODERATEDPAGE_ALL = false
-
-; PhpWiki can generate an access_log (in "NCSA combined log" format)
-; for you. If you want one, define this to the name of the log
-; file. The server must have write access to the directory specified.
-; Preferred is to use SQL access logging as below.
-; Note that even you define ACCESS_LOG_SQL logs are written to this file also.
-;
-;
-; Default: empty - no access log file will be generated.
-;
-;ACCESS_LOG = ""
-
-; PhpWiki can read and/or write mod_log_sql accesslog tables for faster
-; abuse detection and referer lists.
-; See http://www.outoforder.cc/projects/apache/mod_log_sql/docs-2.0/#id2756178
-;
-;
-; If defined (e.g. 1) read-access is done via SQL.
-; If flag 2 is set, phpwiki also writes. Default on SQL database.
-; This must use DATABASE_TYPE = SQL or ADODB or PDO.
-;
-ACCESS_LOG_SQL = 0
-
-; By default PhpWiki will try to have PHP compress its output
-; before sending it to the browser, if you have a recent enough
-; version of PHP and the browser and action supports it.
-;
-;
-; Define COMPRESS_OUTPUT to false to prevent output compression.
-; Define COMPRESS_OUTPUT to true to force output compression,
-; even if we think your version of PHP does this in a buggy
-; fashion.
-; Leave it undefined to leave the choice up to PhpWiki. (Recommended)
-;
-;
-; WARNING: Compressing the output has been reported to cause problems
-; when PHP is running on MacOSX or on redirected requests.
-; This setting should now be correctly determined automatically.
-;
-;COMPRESS_OUTPUT = false
-
-; HTTP CACHE_CONTROL
-;
-; This controls how PhpWiki sets the HTTP cache control
-; headers (Expires: and Cache-Control:)
-;
-; Choose one of:
-;
-;
-; NO_CACHE
-; This is roughly the old (pre 1.3.4) behaviour. PhpWiki will
-; instruct proxies and browsers never to cache PhpWiki output.
-;
-; STRICT
-; Cached pages will be invalidated whenever the database global
-; timestamp changes. This should behave just like NONE (modulo
-; bugs in PhpWiki and your proxies and browsers), except that
-; things will be slightly more efficient.
-;
-; LOOSE
-; Cached pages will be invalidated whenever they are edited,
-; or, if the pages include plugins, when the plugin output could
-; concievably have changed.
-;
-; Behavior should be much like STRICT, except that sometimes
-; wikilinks will show up as undefined (with the question mark)
-; when in fact they refer to (recently) created pages.
-; (Hitting your browsers reload or perhaps shift-reload button
-; should fix the problem.)
-;
-; ALLOW_STALE
-; Proxies and browsers will be allowed to used stale pages.
-; (The timeout for stale pages is controlled by CACHE_CONTROL_MAX_AGE.)
-;
-; This setting will result in quirky behavior. When you edit a
-; page your changes may not show up until you shift-reload the
-; page, etc...
-;
-; This setting is generally not advisable, however it may be useful
-; in certain cases (e.g. if your wiki gets lots of page views,
-; and few edits by knowledgable people who won't freak over the quirks.)
-;
-;
-; The default is currently LOOSE.
-CACHE_CONTROL = LOOSE
-
-; Maximum page staleness, in seconds.
-;
-;
-; This only has effect if CACHE_CONTROL is set to ALLOW_STALE.
-;
-CACHE_CONTROL_MAX_AGE = 600
-
-; PhpWiki normally caches a preparsed version (i.e. mostly
-; converted to HTML) of the most recent version of each page.
-; Define WIKIDB_NOCACHE_MARKUP to true to disable the
-; caching of marked-up page content.
-; Note that you can also disable markup caching on a per-page
-; temporary basis by addinging a query arg of '?nocache=1'
-; to the URL to the page or by adding a NoCache plugin line.
-; Use '?nocache=purge' to completely discard the cached version of the page.
-; You can also purge the cached markup globally by using the
-; Enable only for old php's with low memory or memory_limit=8MB.
-; Default: false
-;
-WIKIDB_NOCACHE_MARKUP = false
-
-;
-COOKIE_EXPIRATION_DAYS = 365
-
-; Default path for the wikiuser cookie. You need to specify this more explicitly
-; if you want to enable different users on different wikis on the same host.
-;
-;COOKIE_DOMAIN = "/"
-
-; The login code now uses PHP's session support. Usually, the default
-; configuration of PHP is to store the session state information in
-; servers where each server has their own distinct /tmp (this is the
-; case on SourceForge's project web server.) You can specify an
-; alternate directory in which to store state information like so
-; in this directory)
-;
-;
-; On USE_DB_SESSION = true you can ignore this.
-;
-;SESSION_SAVE_PATH = ""
-
-; On USE_DB_SESSION = true or false you can force the behaviour
-; how to transport session data.
-;
-USE_DB_SESSION = true
-
-;=========================================================================
-;
-; Part Two:
-; Database Configuration
-;
-;=========================================================================
-
-; Select the database backend type:
-;
-;
-;
-DATABASE_TYPE = SQL
-
-; For SQL based backends, specify the database as a DSN
-; The most general form of a DSN looks like:
-;
-; phptype(dbsyntax)://username:password at protocol+hostspec/database?option=value
-;
-; For a MySQL database, the following should work:
-;
-; mysql://user:password@host/databasename
-;
-; To connect over a unix socket, use something like
-;
-; mysql://user:password@unix(/path/to/socket)/databasename
-;
-;
-; DATABASE_DSN = mysql://guest@:/var/lib/mysql/mysql.sock/phpwiki
-; DATABASE_DSN = mysql://guest@localhost/phpwiki
-; DATABASE_DSN = pgsql://localhost/user_phpwiki
-;
-
-
-; SQL DB types. The DSN hosttype.
-
-
-; SQL User Id:
-
-
-; SQL Password:
-
-
-; SQL Database Hostname:
-;
-; To connect over a local named socket, use something like
-;
-; unix(/var/lib/mysql/mysql.sock)
-;
-; here.
-; mysql on Windows via named pipes might need 127.0.0.1
-
-
-; SQL Database Name:
-
-
-; Calculated from the settings above:
-DATABASE_DSN = "mysql://root:root@localhost/wiki"
-
-; Used by all DB types:
-;
-; Prefix for filenames or table names, e.g. "phpwiki_"
-;
-; Currently <b>you MUST EDIT THE SQL file too!</b> (in the schemas/
-; directory because we aren't doing on the fly sql generation
-; during the installation.
-;
-; Note: This prefix is NOT prepended to the default DBAUTH_
-; tables user, pref and member!
-;
-;DATABASE_PREFIX = ""
-
-; Keep persistent connections: (mysql_pconnect, ...)
-; Recommended is false for bigger servers, and true for small servers
-; with not so many connections. postgresql: Please leave it false. Default: false
-; Should really be set as database option in the DSN above.
-;
-DATABASE_PERSISTENT = false
-
-; Tablename to store session information. Only supported by SQL backends.
-;
-; A word of warning - any prefix defined above will be prepended to whatever is given here.
-;
-DATABASE_SESSION_TABLE = "session"
-
-; For the file and dba backends, this specifies where the data files will be
-; located. Ensure that the user that the webserver runs as has write access
-; to this directory.
-;
-;
-; WARNING: leaving this as the default of '/tmp' will almost guarantee that
-; you'll lose your wiki data at some stage.
-;
-DATABASE_DIRECTORY = "/tmp"
-
-; Use 'gdbm', 'dbm', 'db2', 'db3' or 'db4' depending on your DBA handler methods supported: <br >
-;
-; Better not use other hacks such as inifile, flatfile or cdb
-DATABASE_DBA_HANDLER = gdbm
-
-; Recommended values are 10-20 seconds. The more load the server has, the higher the timeout.
-DATABASE_TIMEOUT = 20
-
-; How often to try and optimise the database. Specified in seconds.
-; Set to 0 to disable optimisation completely. Default is 50 (seconds).
-;
-;
-; This is a fairly crude way of doing things as it requires a page save
-; to occur during the right minute for the optimisation to be triggered.
-;
-;
-; With most modern databases (eg. Postgres) and distributions (eg. Debian)
-; the system maintenance scripts take care of this nightly, so you will want
-; to set this parameter to 0 (disabled).
-;
-DATABASE_OPTIMISE_FREQUENCY = 50
-
-; Optional: Administrative SQL DB access (for action=upgrade)
-; If action=upgrade detects (My)SQL problems, but has no ALTER permissions,
-; give here a database username which has the necessary ALTER or CREATE permissions.
-; Of course you can fix your database manually. See lib/upgrade.php for known issues.
-;
-;DBADMIN_USER = ""
-
-; Optional: Administrative SQL DB access (for action=upgrade)
-;
-;DBADMIN_PASSWD = ""
-
-; Store DB query results (esp. for page lists) in memory to avoid duplicate queries.
-; Disable only for old php's with low memory or memory_limit=8MB.
-; Requires at least memory_limit=16MB
-; Default: true
-;
-USECACHE = true
-
-;
-; Section 2a: Archive Cleanup
-; The next section controls how many old revisions of each page are kept in the database.
-;
-; There are two basic classes of revisions: major and minor. Which
-; class a revision belongs in is determined by whether the author
-; checked the "this is a minor revision" checkbox when they saved the
-; page.
-;
-; There is, additionally, a third class of revisions: author
-; revisions. The most recent non-mergable revision from each distinct
-; author is and author revision.
-;
-; The expiry parameters for each of those three classes of revisions
-; can be adjusted seperately. For each class there are five
-; parameters (usually, only two or three of the five are actually
-; set) which control how long those revisions are kept in the
-; database.
-;
-; max_keep: If set, this specifies an absolute maximum for the
-; number of archived revisions of that class. This is
-; meant to be used as a safety cap when a non-zero
-; min_age is specified. It should be set relatively high,
-; and it's purpose is to prevent malicious or accidental
-; database overflow due to someone causing an
-; unreasonable number of edits in a short period of time.
-;
-; min_age: Revisions younger than this (based upon the supplanted
-; date) will be kept unless max_keep is exceeded. The age
-; should be specified in days. It should be a
-; non-negative, real number,
-;
-; min_keep: At least this many revisions will be kept.
-;
-; keep: No more than this many revisions will be kept.
-;
-; max_age: No revision older than this age will be kept.
-;
-; Supplanted date: Revisions are timestamped at the instant that they
-; cease being the current revision. Revision age is computed using
-; this timestamp, not the edit time of the page.
-;
-; Merging: When a minor revision is deleted, if the preceding
-; revision is by the same author, the minor revision is merged with
-; the preceding revision before it is deleted. Essentially: this
-; replaces the content (and supplanted timestamp) of the previous
-; revision with the content after the merged minor edit, the rest of
-; the page metadata for the preceding version (summary, mtime, ...)
-; is not changed.
-;
-
-
-; Default: Keep for unlimited time.
-; Set to 0 to enable archive cleanup
-;MAJOR_MIN_KEEP = 0
-
-; Default: Keep for unlimited time.
-; Set to 0 to enable archive cleanup
-;MINOR_MIN_KEEP = 0
-
-; Keep up to 8 major edits
-;MAJOR_KEEP = 0
-
-; keep them no longer than a month
-;MAJOR_MAX_AGE = 0
-
-; Keep up to 4 minor edits
-;MINOR_KEEP = 0
-
-; keep them no longer than a week
-MINOR_MAX_AGE = 7
-
-; Keep the latest contributions of the last 8 authors,
-AUTHOR_KEEP = 8
-
-; up to a year.
-AUTHOR_MAX_AGE = 365
-
-; Additionally, (in the case of a particularly active page) try to
-; keep the latest contributions of all authors in the last week (even if there are more than eight of them,)
-AUTHOR_MIN_AGE = 7
-
-; but in no case keep more than twenty unique author revisions.
-AUTHOR_MAX_KEEP = 20
-
-;=========================================================================
-;
-; Part Three: (optional)
-; Basic User Authentication Setup
-;
-;=========================================================================
-
-; If ALLOW_ANON_USER is false, you have to login before viewing any page or doing any other action on a page.
-ALLOW_ANON_USER = true
-
-; If ALLOW_ANON_EDIT is false, you have to login before editing or changing any page. See below.
-ALLOW_ANON_EDIT = true
-
-; If ALLOW_BOGO_LOGIN is false, you may not login with any wikiword username and empty password.
-; If true, users are allowed to create themselves with any WikiWord username. See below.
-ALLOW_BOGO_LOGIN = true
-
-; If ALLOW_USER_PASSWORDS is true, the authentication settings below define where and how to
-; check against given username/passwords. For completely security disable BOGO_LOGIN and ANON_EDIT above.
-ALLOW_USER_PASSWORDS = true
-
-; Many different methods can be used to check user's passwords.
-; Try any of these in the given order:
-;
-; BogoLogin
-; WikiWord username, with no *actual* password checking,
-; although the user will still have to enter one.
-; PersonalPage
-; Store passwords in the users homepage metadata (simple)
-; Db
-; Use DBAUTH_AUTH_* (see below) with PearDB or ADODB only.
-; LDAP
-; Authenticate against LDAP_AUTH_HOST with LDAP_BASE_DN.
-; IMAP
-; Authenticate against IMAP_AUTH_HOST (email account)
-; POP3
-; Authenticate against POP3_AUTH_HOST (email account)
-; Session
-; Get username and level from a PHP session variable. (e.g. for gforge)
-; File
-; Store username:crypted-passwords in .htaccess like files.
-; Use Apache's htpasswd to manage this file.
-; HttpAuth
-; Use the protection by the webserver (.htaccess/.htpasswd) (experimental)
-; Enforcing HTTP Auth not yet. Note that the ADMIN_USER should exist also.
-; Using HttpAuth disables all other methods and no userauth sessions are used.
-;
-;
-; Several of these methods can be used together, in the manner specified by
-; USER_AUTH_POLICY, below. To specify multiple authentication methods,
-; separate the name of each one with colons.
-;
-; USER_AUTH_ORDER = 'PersonalPage : Db'
-; USER_AUTH_ORDER = 'BogoLogin : PersonalPage'
-;
-USER_AUTH_ORDER = "PersonalPage"
-
-; Enable/Disable additional OpenID Authentification.
-; See http://openid.net/
-;
-ENABLE_AUTH_OPENID = false
-
-; For "security" purposes, you can specify that a password be at least a
-; certain number of characters long. This applies even to the BogoLogin
-; method. Default: 0 (to allow immediate passwordless BogoLogin)
-;
-PASSWORD_LENGTH_MINIMUM = 0
-
-; The following policies are available for user authentication:
-;
-; first-only
-; use only the first method in USER_AUTH_ORDER
-; old
-; ignore USER_AUTH_ORDER and try to use all available
-; methods as in the previous PhpWiki releases (slow)
-; strict
-; check if the user exists for all methods:
-; on the first existing user, try the password.
-; dont try the other methods on failure then
-; stacked
-; check the given user - password combination for all
-; methods and return true on the first success.
-USER_AUTH_POLICY = stacked
-
-; Enable the new extended method of handling WikiUsers to support external auth and PAGEPERM.
-; Servers with memory-limit problems might want to turn it off. It costs ~300KB
-; Default: true
-;
-ENABLE_USER_NEW = true
-
-; Use access control lists (as in Solaris and Windows NTFS) per page and group,
-; not per user for the whole wiki.
-;
-;
-; We suspect ACL page permissions to degrade speed by 10%.
-; GROUP_METHOD=WIKIPAGE is slowest.
-; Default: true
-;
-ENABLE_PAGEPERM = true
-
-;=========================================================================
-;
-; Part Three A: (optional)
-; Group Membership
-;=========================================================================
-
-; Group membership. PhpWiki supports defining permissions for a group as
-; well as for individual users. This defines how group membership information
-; is obtained. Supported values are:
-;
-; "NONE"
-; Disable group membership (Fastest). Note the required quoting.
-; WIKIPAGE
-; Define groups as list at "CategoryGroup". (Slowest, but easiest to maintain)
-; DB
-; Stored in an SQL database. Optionally external. See USERS/GROUPS queries
-; FILE
-; Flatfile. See AUTH_GROUP_FILE below.
-; LDAP
-; LDAP groups. See "LDAP authentication options" above and
-; lib/WikiGroup.php. (experimental)
-GROUP_METHOD = WIKIPAGE
-
-; If GROUP_METHOD = WIKIPAGE:
-;
-; Page where all groups are listed.
-CATEGORY_GROUP_PAGE = "CategoryGroup"
-
-; For GROUP_METHOD = FILE, the file given below is referenced to obtain
-; group membership information. It should be in the same format as the
-; standard unix /etc/groups(5) file.
-;AUTH_GROUP_FILE = ""
-
-;=========================================================================
-;
-; Part Three B: (optional)
-; External database authentication and authorization.
-;
-; If USER_AUTH_ORDER includes Db, or GROUP_METHOD = DB, the options listed
-; below define the SQL queries used to obtain the information out of the
-; database, and (optionally) store the information back to the DB.
-;=========================================================================
-
-; A database DSN to connect to. Defaults to the DSN specified for the Wiki as a whole.
-;DBAUTH_AUTH_DSN = ""
-
-; USER/PASSWORD queries:
-;
-; For USER_AUTH_POLICY=strict and the Db method is required
-DBAUTH_AUTH_USER_EXISTS = "SELECT userid FROM pref WHERE userid='$userid'"
-
-;
-; Check to see if the supplied username/password pair is OK
-;
-; Plaintext passwords: (DBAUTH_AUTH_CRYPT_METHOD = plain)<br />
-; ; DBAUTH_AUTH_CHECK = "SELECT IF(passwd='$password',1,0) AS ok FROM user WHERE userid='$userid'"
-;
-; database-hashed passwords (more secure):<br />
-; ; DBAUTH_AUTH_CHECK = "SELECT IF(passwd=PASSWORD('$password'),1,0) AS ok FROM user WHERE userid='$userid'"
-DBAUTH_AUTH_CHECK = "SELECT IF(passwd='$password',1,0) as ok FROM pref WHERE userid='$userid'"
-
-; If you want to use Unix crypt()ed passwords, you can use DBAUTH_AUTH_CHECK
-; to get the password out of the database with a simple SELECT query, and
-; specify DBAUTH_AUTH_USER_EXISTS and DBAUTH_AUTH_CRYPT_METHOD:
-;
-; ; DBAUTH_AUTH_CHECK = "SELECT passwd FROM user where userid='$userid'" <br />
-; ; DBAUTH_AUTH_CRYPT_METHOD = crypt
-DBAUTH_AUTH_CRYPT_METHOD = plain
-
-; If this is not defined but DBAUTH_AUTH_CHECK is, then the user will be unable to update their
-; password.
-;
-; Plaintext passwords:<br />
-; DBAUTH_AUTH_UPDATE = "UPDATE user SET passwd='$password' WHERE userid='$userid'"<br />
-; Database-hashed passwords:<br />
-; DBAUTH_AUTH_UPDATE = "UPDATE user SET passwd=PASSWORD('$password') WHERE userid='$userid'"
-DBAUTH_AUTH_UPDATE = "UPDATE user SET passwd='$password' WHERE userid='$userid'"
-
-; If this is empty, Db users cannot subscribe by their own.
-DBAUTH_AUTH_CREATE = "INSERT INTO pref (passwd,userid) VALUES ('$password','$userid')"
-
-; If you choose to store your preferences in an external database, enable
-; the following queries. Note that if you choose to store user preferences
-; in the 'user' table, only registered users get their prefs from the database,
-; self-created users do not. Better to use the special 'pref' table.
-;
-; The prefs field stores the serialized form of the user's preferences array,
-; to ease the complication of storage.
-;
-; DBAUTH_PREF_SELECT = "SELECT prefs FROM user WHERE userid='$userid'"
-; DBAUTH_PREF_SELECT = "SELECT prefs FROM pref WHERE userid='$userid'"
-;
-DBAUTH_PREF_SELECT = "SELECT prefs FROM pref WHERE userid='$userid'"
-
-; Note that REPLACE works only with mysql and destroy all other columns!
-;
-; Mysql: DBAUTH_PREF_UPDATE = "REPLACE INTO pref SET prefs='$pref_blob',userid='$userid'"
-DBAUTH_PREF_UPDATE = "UPDATE pref SET prefs='$pref_blob' WHERE userid='$userid'"
-
-; Define this if new user can be create by themselves.
-;
-DBAUTH_PREF_INSERT = "INSERT INTO pref (prefs,userid) VALUES ('$pref_blob','$userid')"
-
-; You can define 1:n or n:m user<=>group relations, as you wish.
-;
-; Sample configurations:
-;
-; only one group per user (1:n):<br />
-; DBAUTH_IS_MEMBER = "SELECT user FROM user WHERE user='$userid' AND group='$groupname'"<br />
-; DBAUTH_GROUP_MEMBERS = "SELECT user FROM user WHERE group='$groupname'"<br />
-; DBAUTH_USER_GROUPS = "SELECT group FROM user WHERE user='$userid'"<br />
-; multiple groups per user (n:m):<br />
-; DBAUTH_IS_MEMBER = "SELECT userid FROM member WHERE userid='$userid' AND groupname='$groupname'"<br />
-; DBAUTH_GROUP_MEMBERS = "SELECT DISTINCT userid FROM member WHERE groupname='$groupname'"<br />
-; DBAUTH_USER_GROUPS = "SELECT groupname FROM member WHERE userid='$userid'"<br />
-DBAUTH_IS_MEMBER = "SELECT userid FROM pref WHERE userid='$userid' AND groupname='$groupname'"
-DBAUTH_GROUP_MEMBERS = "SELECT userid FROM pref WHERE groupname='$groupname'"
-DBAUTH_USER_GROUPS = "SELECT groupname FROM pref WHERE userid='$userid'"
-
-; If USER_AUTH_ORDER contains Ldap:
-;
-; The LDAP server to connect to. Can either be a hostname, or a complete
-; URL to the server (useful if you want to use ldaps or specify a different
-; port number).
-;LDAP_AUTH_HOST = ""
-
-; The organizational or domain BASE DN: e.g. "dc=mydomain,dc=com".
-;
-; Note: ou=Users and ou=Groups are used for GroupLdap Membership
-; Better use LDAP_OU_USERS and LDAP_OU_GROUP with GROUP_METHOD=LDAP.
-;LDAP_BASE_DN = ""
-
-; Some LDAP servers need some more options, such as the Windows Active
-; Directory Server. Specify the options (as allowed by the PHP LDAP module)
-; and their values as NAME=value pairs separated by colons.
-;LDAP_SET_OPTION = ""
-
-; DN to initially bind to the LDAP server as. This is needed if the server doesn't
-; allow anonymous queries. (Windows Active Directory Server)
-;LDAP_AUTH_USER = ""
-
-; Password to use to initially bind to the LDAP server, as the DN
-; specified in the LDAP_AUTH_USER option (above).
-;LDAP_AUTH_PASSWORD = ""
-
-; If you want to match usernames against an attribute other than uid,
-; specify it here. Default: uid
-;
-; e.g.: LDAP_SEARCH_FIELD = sAMAccountName
-;LDAP_SEARCH_FIELD = ""
-
-; If you have an organizational unit for all users, define it here.
-; This narrows the search, and is needed for LDAP group membership (if GROUP_METHOD=LDAP)
-; Default: ou=Users
-;LDAP_OU_USERS = ""
-
-; If you have an organizational unit for all groups, define it here.
-; This narrows the search, and is needed for LDAP group membership (if GROUP_METHOD=LDAP)
-; The entries in this ou must have a gidNumber and cn attribute.
-; Default: ou=Groups
-;LDAP_OU_GROUP = ""
-
-; If USER_AUTH_ORDER contains IMAP:
-;
-; The IMAP server to check usernames from. Defaults to localhost.
-;
-; Some IMAP_AUTH_HOST samples:
-; localhost, localhost:143/imap/notls,
-; localhost:993/imap/ssl/novalidate-cert (SuSE refuses non-SSL conections)
-;IMAP_AUTH_HOST = ""
-
-; If USER_AUTH_ORDER contains POP3:
-;
-; The POP3 mail server to check usernames and passwords against.
-;POP3_AUTH_HOST = ""
-
-; If USER_AUTH_ORDER contains File:
-;
-; File to read for authentication information.
-; Popular choices are /etc/shadow and /etc/httpd/.htpasswd
-;AUTH_USER_FILE = ""
-
-; Defines whether the user is able to change their own password via PHPWiki.
-; Note that this means that the webserver user must be able to write to the
-; file specified in AUTH_USER_FILE.
-;
-AUTH_USER_FILE_STORABLE = false
-
-; If USER_AUTH_ORDER contains Session:
-;
-; Name of the session variable which holds the already authenticated username.
-; Sample: 'userid', 'user[username]', 'user->username'
-AUTH_SESS_USER = "userid"
-
-; Which level will the user be? 1 = Bogo or 2 = Pass
-AUTH_SESS_LEVEL = 2
-
-;=========================================================================
-;
-; Part Four:
-; Page appearance and layout
-;=========================================================================
-
-; THEME
-;
-; Most of the page appearance is controlled by files in the theme
-; subdirectory.
-;
-; There are a number of pre-defined themes shipped with PhpWiki.
-; Or you may create your own, e.g. by copying and then modifying one of
-; stock themes.
-;
-; THEME = default
-; THEME = MacOSX
-; THEME = MonoBook (WikiPedia)
-; THEME = smaller
-; THEME = Wordpress
-; THEME = Portland
-; THEME = Sidebar
-; THEME = Crao
-; THEME = wikilens (with Ratings)
-; THEME = Hawaiian
-; THEME = SpaceWiki
-; THEME = Hawaiian
-;
-;
-; Problems:
-;
-; THEME = blog (Kubrick) [experimental. Several links missing]
-;
-THEME = MonoBook
-THEME = wikilens
-THEME = Crao
-THEME = shamino_com
-THEME = default
-THEME = Sidebar
-
-; Select a valid charset name to be inserted into the xml/html pages,
-; and to reference links to the stylesheets (css). For more info see:
-; http://www.iana.org/assignments/character-sets. Note that PhpWiki
-; has been extensively tested only with the latin1 (iso-8859-1)
-; character set.
-;
-;
-; If you change the default from iso-8859-1 with existing pages,
-; PhpWiki may not work properly and will require modifications in all existing pages.
-; You'll have to dump the old pages with the old charset
-; and import it into the new one after having changed the charset.
-; Currently we support utf-8 for zh and ja, euc-jp for ja (not enabled)
-; and iso-8859-1 for all other langs. Changing languages (UserPreferences)
-; from one charset to another will not work!
-;
-;
-; Character sets similar to iso-8859-1 may work with little or no
-; modification depending on your setup. The database must also
-; support the same charset, and of course the same is true for the
-; web browser. euc-jp and utf-8 works ok, but only is mbstring is used.
-;
-CHARSET = "UTF-8"
-
-; Most exotic charsets are not supported by htmlspecialchars, which prints a warning:
-; Even on simple 8bit charsets, where just <>& need to be replaced.
-; See php-src:/ext/standard/html.c
-; We can ignore these warnings then.
-;
-;IGNORE_CHARSET_NOT_SUPPORTED_WARNING = ""
-
-; Select your language/locale - default language is "en" for English.
-; Other languages available:
-; English "en" (English - HomePage)
-; German "de" (Deutsch - StartSeite)
-; French "fr" (Fran~is - Accueil)
-; Dutch "nl" (Nederlands - ThuisPagina)
-; Spanish "es" (Espa~l - P~inaPrincipal)
-; Swedish "sv" (Svenska - Framsida)
-; Italian "it" (Italiano - PaginaPrincipale)
-; Japanese "ja" (Japanese - ~~~~~~)
-; Chinese "zh" (Chinese)
-;
-; If you set DEFAULT_LANGUAGE to the empty string, your systems default language
-; (as determined by the applicable environment variables) will be
-; used.
-DEFAULT_LANGUAGE = en
-
-; WIKI_PGSRC -- specifies the source for the initial page contents of
-; the Wiki. The setting of WIKI_PGSRC only has effect when the wiki is
-; accessed for the first time (or after clearing the database.)
-; WIKI_PGSRC can either name a directory or a zip file. In either case
-; WIKI_PGSRC is scanned for files -- one file per page.
-;
-; // Default (old) behavior:
-; define('WIKI_PGSRC', 'pgsrc');
-; // New style:
-; define('WIKI_PGSRC', 'wiki.zip');
-; define('WIKI_PGSRC',
-; '../Logs/Hamwiki/hamwiki-20010830.zip');
-;
-WIKI_PGSRC = "pgsrc"
-
-; DEFAULT_WIKI_PGSRC is only used when the language is *not* the
-; default (English) and when reading from a directory: in that case
-; some English pages are inserted into the wiki as well.
-; DEFAULT_WIKI_PGSRC defines where the English pages reside.
-;
-DEFAULT_WIKI_PGSRC = "pgsrc"
-
-; These are ':'-seperated pages which will get loaded untranslated from DEFAULT_WIKI_PGSRC.
-;
-DEFAULT_WIKI_PAGES = "'ReleaseNotes:SandBox:PhpWiki:SteveWainstead'"
-
-;=========================================================================
-;
-; Part Five:
-; Mark-up options
-;=========================================================================
-
-; Allowed protocols for links - be careful not to allow "javascript:"
-; URL of these types will be automatically linked.
-; within a named link [name|uri] one more protocol is defined: phpwiki
-ALLOWED_PROTOCOLS = "http|https|mailto|ftp|news|nntp|ssh|gopher"
-
-; URLs ending with the following extension should be inlined as images.
-; Specify as per ALLOWED_PROTOCOLS.
-; Note that you can now also allow class|svg|svgz|vrml|swf ...,
-; which will create embedded object instead of img.
-; Typical CGI extensions as pl or cgi maybe allowed too,
-; but those two will be enforced to img.
-;
-INLINE_IMAGES = "png|jpg|jpeg|gif|svg"
-
-; Perl regexp for WikiNames ("bumpy words")
-; (?<!..) & (?!...) used instead of '\b' because \b matches '_' as well
-WIKI_NAME_REGEXP = "(?<![[:alnum:]])(?:[[:upper:]][[:lower:][:digit:]]+){2,}(?![[:alnum:]])"
-
-; One character which seperates pages from subpages. Defaults to '/', but '.' or ':' were also used.
-SUBPAGE_SEPARATOR = "/"
-
-; InterWiki linking -- wiki-style links to other wikis on the web
-;
-; The map will be taken from a page name InterWikiMap.
-; If that page is not found (or is not locked), or map
-; data can not be found in it, then the file specified
-; by INTERWIKI_MAP_FILE (if any) will be used.
-INTERWIKI_MAP_FILE = "lib/interwiki.map"
-
-; Display a warning if the internal lib/interwiki.map is used, and
-; not the public InterWikiMap page. This file is not readable from outside.
-;
-WARN_NONPUBLIC_INTERWIKIMAP = false
-
-; Search term used for automatic page classification by keyword extraction.
-;
-; Any links on a page to pages whose names match this search
-; will be used keywords in the keywords html meta tag. This is an aid to
-; classification by search engines. The value of the match is
-; used as the keyword.
-;
-; The default behavior is to match Category* or Topic* links.
-KEYWORDS = "Category* OR Topic*"
-
-;
-; These will be inserted as <link rel> tags in the html header of
-; every page, for search engines and for browsers like Mozilla which
-; take advantage of link rel site navigation.
-;
-; If you have your own copyright and contact information pages change
-; these as appropriate.
-;COPYRIGHTPAGE_TITLE = "GNU General Public License"
-
-;
-; Other useful alternatives to consider:
-;
-; COPYRIGHTPAGE_TITLE = "GNU Free Documentation License"
-; COPYRIGHTPAGE_URL = "http://www.gnu.org/copyleft/fdl.html"
-; COPYRIGHTPAGE_TITLE = "Creative Commons License 2.0"
-; COPYRIGHTPAGE_URL = "http://creativecommons.org/licenses/by/2.0/"
-; See http://creativecommons.org/learn/licenses/ for variations
-;COPYRIGHTPAGE_URL = "http://www.gnu.org/copyleft/gpl.html#SEC1"
-
-; Default Author Names
-;AUTHORPAGE_TITLE = "The PhpWiki Programming Team"
-
-; Default Author URL
-;AUTHORPAGE_URL = "http://phpwiki.org/ThePhpWikiProgrammingTeam"
-
-; Allow full markup in headers to be parsed by the CreateToc plugin.
-;
-;
-; If false you may not use WikiWords or [] links or any other markup in
-; headers in pages with the CreateToc plugin. But if false the parsing is
-; faster and more stable.
-;
-TOC_FULL_SYNTAX = true
-
-; If false the %color=... %% syntax will be disabled.
-; Default: true
-;
-ENABLE_MARKUP_COLOR = true
-
-; Disable automatic linking of camelcase (wiki-)words to pages.
-; Internal page links must be forced with [ pagename ] then.
-; Default: false
-;
-DISABLE_MARKUP_WIKIWORD = false
-
-; Enable <div> and <span> HTML blocks and attributes. Experimental. Not yet working.
-;
-ENABLE_MARKUP_DIVSPAN = true
-
-;=========================================================================
-;
-; Part Six (optional):
-; URL options -- you can probably skip this section.
-;
-; For a pretty wiki (no index.php in the url) set a seperate DATA_PATH.
-;=========================================================================
-
-; Canonical name of the server on which this PhpWiki resides.
-SERVER_NAME = "localhost"
-
-; Canonical httpd port of the server on which this PhpWiki resides.
-SERVER_PORT = 8888
-
-; https needs a special setting
-;
-SERVER_PROTOCOL = http
-
-; Relative URL (from the server root) of the PhpWiki
-; script.
-;
-SCRIPT_NAME = "/phpwiki/index.php"
-
-; URL of the PhpWiki install directory. (You only need to set this
-; if you've moved index.php out of the install directory.) This can
-; be either a relative URL (from the directory where the top-level
-; PhpWiki script is) or an absolute one.
-;
-; DATA_PATH = "/phpwiki"
-
-; Path to the PhpWiki install directory. This is the local
-; filesystem counterpart to DATA_PATH. (If you have to set
-; DATA_PATH, your probably have to set this as well.) This can be
-; either an absolute path, or a relative path interpreted from the
-; directory where the top-level PhpWiki script (normally index.php)
-; resides.
-;
-PHPWIKI_DIR = "/Applications/MAMP/htdocs/phpwiki"
-
-; PhpWiki will try to use short urls to pages, eg
-; http://www.example.com/index.php/HomePage
-; If you want to use urls like
-; http://www.example.com/index.php?pagename=HomePage
-; then define 'USE_PATH_INFO' as false by uncommenting the line below.
-; NB: If you are using Apache >= 2.0.30, then you may need to to use
-; the directive "AcceptPathInfo On" in your Apache configuration file
-; (or in an appropriate <.htaccess> file) for the short urls to work:
-; See http://httpd.apache.org/docs-2.0/mod/core.html#acceptpathinfo
-;
-; See also http://phpwiki.sourceforge.net/phpwiki/PrettyWiki for more ideas
-; on prettifying your urls.
-;
-; Default: PhpWiki will try to divine whether use of PATH_INFO
-; is supported in by your webserver/PHP configuration, and will
-; use PATH_INFO if it thinks that is possible.
-;USE_PATH_INFO =
-
-; VIRTUAL_PATH is the canonical URL path under which your your wiki
-; appears. Normally this is the same as dirname(SCRIPT_NAME), however
-; using e.g. seperate starter scripts, apaches mod_actions (or mod_rewrite),
-; you can make it something different.
-;
-; If you do this, you should set VIRTUAL_PATH here or in the starter scripts.
-;
-; E.g. your phpwiki might be installed at at /scripts/phpwiki/index.php,
-; but you've made it accessible through eg. /wiki/HomePage.
-;
-; One way to do this is to create a directory named 'wiki' in your
-; server root. The directory contains only one file: an .htaccess
-; file which reads something like:
-;
-; Action x-phpwiki-page /scripts/phpwiki/index.php
-; SetHandler x-phpwiki-page
-; DirectoryIndex /scripts/phpwiki/index.php
-;
-; In that case you should set VIRTUAL_PATH to '/wiki'.
-;
-; (VIRTUAL_PATH is only used if USE_PATH_INFO is true.)
-;
-; VIRTUAL_PATH = "/phpwiki"
-
-; In case your system has no idea about /tmp, TEMP or TMPDIR,
-; better provide it here. E.g. needed for zipdumps.
-;
-TEMP_DIR = "/tmp"
-
-;=========================================================================
-;
-; Part Seven:
-;
-; Miscellaneous settings
-;
-;=========================================================================
-
-; If you define this to true, (MIME-type) page-dumps (either zip dumps,
-; or "dumps to directory" will be encoded using the quoted-printable
-; encoding. If you're actually thinking of mailing the raw page dumps,
-; then this might be useful, since (among other things,) it ensures
-; that all lines in the message body are under 80 characters in length.
-;
-;
-; Also, setting this will cause a few additional mail headers
-; to be generated, so that the resulting dumps are valid
-; RFC 2822 e-mail messages.
-;
-;
-; Probably you can just leave this set to false, in which case you get
-; raw ('binary' content-encoding) page dumps.
-;
-STRICT_MAILABLE_PAGEDUMPS = false
-
-; Here you can change the default dump directories.
-;
-DEFAULT_DUMP_DIR = "/tmp/wikidump"
-
-; Here you can change the default dump directories.
-;
-HTML_DUMP_DIR = "/tmp/wikidumphtml"
-
-; Filename suffix used for XHTML page dumps.
-; If you don't want any suffix just comment this out.
-;
-HTML_DUMP_SUFFIX = ".html"
-
-; Page name of RecentChanges page. Used for RSS Auto-discovery
-;
-RECENT_CHANGES = "RecentChanges"
-
-; Disable HTTP redirects.
-;
-;
-; PhpWiki uses HTTP redirects for some of it's functionality.
-; view the page you just saved.)
-; Some web service providers (notably free European Lycos) don't seem to
-; allow these redirects. (On Lycos the result in an "Internal Server Error"
-; report.) In that case you can set DISABLE_HTTP_REDIRECT to true.
-; redirect the browser...)
-;
-DISABLE_HTTP_REDIRECT = false
-
-; If you get a crash at loading LinkIcons you might want to disable
-; the getimagesize() function, which crashes on certain php versions and
-; and some external images (png's, ..).
-;
-;
-; getimagesize() is only needed for spam prevention.
-;
-;
-; Per default too small ploaded or external images are not displayed,
-; to prevent from external 1 pixel spam.
-;
-DISABLE_GETIMAGESIZE = false
-
-; A interim page which gets displayed on every edit attempt, if it exists.
-;
-EDITING_POLICY = "EditingPolicy"
-
-; Add additional EDIT_TOOLBAR buttons if defined:
-; They need some time and memory.
-; Insert a pagelink from this list:
-;
-;TOOLBAR_PAGELINK_PULLDOWN = ""
-
-; Insert a template from this list:
-;
-;TOOLBAR_TEMPLATE_PULLDOWN = ""
-
-; Insert an already uploaded image:
-;
-;TOOLBAR_IMAGE_PULLDOWN = ""
-
-; Overide the default localized stoplist.
-;
-;FULLTEXTSEARCH_STOPLIST = ""
-
-;=========================================================================
-;
-; Part Seven A:
-;
-; Optional Plugin Settings and external executables
-;
-;=========================================================================
-
-; Enable random quotes from a fortune directory when adding a new page.
-; Usually at /usr/share/fortune or /usr/share/games/fortune
-; If empty no quotes are inserted.
-;
-;FORTUNE_DIR = ""
-
-; On action=pdf or format=pdf: If enabled don't use the internal fpdf library.
-; External PDF executable, %s is the xhtml filename
-;
-;USE_EXTERNAL_HTML2PDF = ""
-
-; On format=pdf with pagelist actionpages.
-; The multifile variant: book (with index and toc) or webpage format
-;
-;EXTERNAL_HTML2PDF_PAGELIST = "htmldoc --quiet --webpage --format pdf14"
-
-; Optional: SPAMASSASSIN wrapper. Only used if ENABLE_SPAMASSASSIN = true
-; http://www.cynistar.net/~apthorpe/code/babycart/babycart.html
-;
-;BABYCART_PATH = "/usr/local/bin/babycart"
-
-; GoogleMaps and GooglePlugin
-; For using the Google API and GoogleMaps
-; http://www.google.com/apis/maps/signup.html
-;
-;GOOGLE_LICENSE_KEY = ""
-
-; wikilens RateIt widget
-; style of the stars: empty = yellow, red or red
-; RATEIT_IMGPREFIX =
-; RATEIT_IMGPREFIX = Star
-;
-;RATEIT_IMGPREFIX = ""
-
-; GraphViz plugin executable:
-; http://www.graphviz.org/
-;
-;GRAPHVIZ_EXE = ""
-
-; Default GD2 truetype font. For text2png, GraphViz, VisualWiki
-; You might need the full path to the .ttf file
-;
-;TTFONT = "/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/fonts/LucidaSansRegular.ttf"
-
-; VisualWiki Plugin needs graphviz
-; Replaced by TTFONT
-;
-;VISUALWIKIFONT = ""
-
-; Disable user options
-;
-VISUALWIKI_ALLOWOPTIONS = false
-
-; PloticusPlugin executable and prefabs path:
-; http://ploticus.sourceforge.net/doc/welcome.html
-;
-;PLOTICUS_EXE = ""
-
-; PloticusPlugin executable and prefabs path:
-; http://ploticus.sourceforge.net/doc/welcome.html
-;
-;PLOTICUS_PREFABS = ""
-
-; JabberPresence
-; http://edgar.netflint.net/howto.php
-;
-;MY_JABBER_ID = ""
-
-; PhpWeather needs this external php project
-; http://sourceforge.net/projects/phpweather/
-;
-;PHPWEATHER_BASE_DIR = ""
-
-; SyntaxHighlight plugin
-; http://www.andre-simon.de/doku/highlight/highlight.html
-;
-;HIGHLIGHT_EXE = ""
-
-; SyntaxHighlight plugin
-; http://www.andre-simon.de/doku/highlight/highlight.html
-;
-;HIGHLIGHT_DATA_DIR = ""
-
-;=========================================================================
-;
-; Part Eight:
-;
-; Cached Plugin Settings. (pear Cache)
-;
-;=========================================================================
-
-; Enable or disable pear caching of plugins.
-PLUGIN_CACHED_USECACHE = true
-
-; Curently only file is supported.
-; db, trifile and imgfile might be supported, but you must hack that by yourself.
-PLUGIN_CACHED_DATABASE = file
-
-; Should be writable to the webserver.
-;PLUGIN_CACHED_CACHE_DIR = "/tmp/cache"
-
-; This is only used if database is set to file.
-; The webserver must have write access to this dir!
-; Every file name in the cache begins with this prefix
-;
-PLUGIN_CACHED_FILENAME_PREFIX = "phpwiki"
-
-; Garbage collection parameter.
-PLUGIN_CACHED_HIGHWATER = 4194304
-
-; Garbage collection parameter.
-PLUGIN_CACHED_LOWWATER = 3145728
-
-; Garbage collection parameter.
-PLUGIN_CACHED_MAXLIFETIME = 2592000
-
-; max. generated url length.
-PLUGIN_CACHED_MAXARGLEN = 1000
-
-; Will prevent image creation for an image map 'on demand'. It is a
-; good idea to set this to 'true' because it will also prevent the
-; html part not to fit to the image of the map. If you don't use a
-; cache, you have to set it to 'false', maps will not work otherwise
-; but strange effects may happen if the output of an image map
-; producing WikiPlugin is not completely determined by its parameters.
-;
-PLUGIN_CACHED_FORCE_SYNCMAP = true
-
-; Handle those image types via GD handles. Check your GD supported image types.
-PLUGIN_CACHED_IMGTYPES = "png|gif|gd|gd2|jpeg|wbmp|xbm|xpm"
-
-;=========================================================================
Modified: trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/favicon.ico
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/favicon.ico 2011-02-28 23:21:26 UTC (rev 15619)
+++ trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/favicon.ico 2011-02-28 23:21:29 UTC (rev 15620)
@@ -1 +1 @@
- ( & è N ( ÌÌÌ ÿÿÿ 333333033333303!331#02 #3 0 0 0 0 03 30 0 3 3 2 03 1 333313333333303333330 ( @ ÌÌÌ ÿÿÿ 333333333333330333333333333330333333333333330333333333333330333333333333330333333333!3330333"33332#330332 #333 33033! 333 33032 33 33031 33 3303! 33 303 33 303 303 30 0 32 3 33 ! #3 33 333 32 333 3" 3 333 33 333 33 33333333333333333333"3333!333333333333330333333333333330333333333333330333333333333330333333333333330
\ No newline at end of file
+ ( & è N ( ÌÌÌ ÿÿÿ 33333333333333333333333333 33 3333 0 3333 0 333000330 0330 033 303 33 303 33333333333333333333333333333333333333333 0 p p X Ø Ø 1 1 ( @ ÌÌÌ ÿÿÿ 333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333 30 333333333 30 333333330 30 33333330 30 33333330 3 33333330 3 3333333 0 3 3333333 0 3 3333333 0 3333333 0 3333330 3 30 333330 3 30 333330 3 30 333330 3 30 33333 330 33 33333 330 33 33333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333 ø| ø| ø~ ø~ üþ üþ Üï Üï ßï ï ÇÇÇÇÀÀ
\ No newline at end of file
Deleted: trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/gforge.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/gforge.php 2011-02-28 23:21:26 UTC (rev 15619)
+++ trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/gforge.php 2011-02-28 23:21:29 UTC (rev 15620)
@@ -1,51 +0,0 @@
-<?php
-require_once('pre.php');
-if (!$group_id || !$project) {
- exit_error("Invalid Project","Invalid Project");
-} else {
-
- define('VIRTUAL_PATH', $_SERVER['SCRIPT_NAME'] . '/' . $project->getUnixName());
- define('PATH_INFO_PREFIX', '/' . $project->getUnixName() . '/');
-
- define('WIKI_NAME', $project->getUnixName());
- //define('ALLOW_HTTP_AUTH_LOGIN', 1);
- //define('ADMIN_USER', '');
- //define('ADMIN_PASSWD', '');
- define('AUTH_SESS_USER', 'user_id');
- define('AUTH_SESS_LEVEL', 2);
- $USER_AUTH_ORDER = "Session : PersonalPage";
- $USER_AUTH_POLICY = "stacked";
-
- // Override the default configuration for CONSTANTS before index.php
- //$LANG='de'; $LC_ALL='de_DE';
- define('THEME', 'gforge');
- //define('WIKI_NAME', "WikiDemo:$LANG:" . THEME);
-
- // Load the default configuration.
- include "index.php";
-
- error_log ("PATH_INFO_PREFIX " . PATH_INFO_PREFIX);
-
- // Override the default configuration for VARIABLES after index.php:
- // E.g. Use another DB:
- $DBParams['dbtype'] = 'SQL';
- $DBParams['dsn'] = 'pgsql://' . forge_get_config('database_user') . ':' .
- forge_get_config('database_password') . '@' . forge_get_config('database_host') .'/' . forge_get_config('database_name')
-. '_wiki';
- $DBParams['prefix'] = $project->getUnixName() ."_";
-
- // If the user is logged in, let the Wiki know
- if (session_loggedin()){
- // let php do it's session stuff too!
- //ini_set('session.save_handler', 'files');
- session_start();
- $_SESSION['user_id'] = user_getname();
-
- } else {
- // clear out the globals, just in case...
-
- }
- // Start the wiki
- include "lib/main.php";
-}
-?>
\ No newline at end of file
Deleted: trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/phpwiki.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/phpwiki.php 2011-02-28 23:21:26 UTC (rev 15619)
+++ trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/phpwiki.php 2011-02-28 23:21:29 UTC (rev 15620)
@@ -1,66 +0,0 @@
-<?php // -*-php-*-
-// iso-8859-1
-
-/*
-Copyright 1999,2000,2001,2002,2003,2004 $ThePhpWikiProgrammingTeam
-= array(
-"Steve Wainstead", "Clifford A. Adams", "Lawrence Akka",
-"Scott R. Anderson", "Jon Åslund", "Neil Brown", "Jeff Dairiki",
-"Stéphane Gourichon", "Jan Hidders", "Arno Hollosi", "John Jorgensen",
-"Antti Kaihola", "Jeremie Kass", "Carsten Klapp", "Marco Milanesi",
-"Grant Morgan", "Jan Nieuwenhuizen", "Aredridel Niothke",
-"Pablo Roca Rozas", "Sandino Araico Sánchez", "Joel Uckelman",
-"Reini Urban", "Joby Walker", "Tim Voght", "Jochen Kalmbach");
-
-This file is part of PhpWiki.
-
-PhpWiki 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.
-
-PhpWiki is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with PhpWiki; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-*/
-
-require_once (dirname(__FILE__).'/lib/prepend.php');
-rcs_id('$Id: index.php,v 1.147 2005/01/13 07:28:36 rurban Exp $');
-
-require_once(dirname(__FILE__).'/lib/IniConfig.php');
-IniConfig(dirname(__FILE__)."/config/config.ini");
-
-////////////////////////////////////////////////////////////////
-// PrettyWiki
-// Check if we were included by some other wiki version
-// (getimg.php, en, de, wiki, ...) or not.
-// If the server requested this index.php fire up the code by loading lib/main.php.
-// Parallel wiki scripts can now simply include /index.php for the
-// main configuration, extend or redefine some settings and
-// load lib/main.php by themselves. See the file 'wiki'.
-// This overcomes the IndexAsConfigProblem.
-// Generally a simple
-// define('VIRTUAL_PATH', $_SERVER['SCRIPT_NAME']);
-// is enough in the wiki file, plus the action definition in a .htaccess file
-////////////////////////////////////////////////////////////////
-
-// If any page is empty, comment the if ... line out,
-// to force include "lib/main.php".
-// Without the dir check it might fail for index.php via DirectoryIndex
-if (@is_dir(SCRIPT_FILENAME) or realpath(SCRIPT_FILENAME) == realpath(__FILE__))
- include(dirname(__FILE__)."/lib/main.php");
-
-// (c-file-style: "gnu")
-// Local Variables:
-// mode: php
-// tab-width: 8
-// c-basic-offset: 4
-// c-hanging-comment-ender-p: nil
-// indent-tabs-mode: nil
-// End:
-?>
\ No newline at end of file
Deleted: trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/u
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/u 2011-02-28 23:21:26 UTC (rev 15619)
+++ trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/u 2011-02-28 23:21:29 UTC (rev 15620)
@@ -1,72 +0,0 @@
-<?php
-
-/*
- * Copyright (C) 2008 Alcatel-Lucent
- *
- * This file is part of PhpWiki.
- *
- * PhpWiki 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.
- *
- * PhpWiki is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with PhpWiki; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-*/
-
-/*
- * Standard Alcatel-Lucent disclaimer for contributing to open source
- *
- * "The Configuration File ("Contribution") has not been tested and/or
- * validated for release as or in products, combinations with products or
- * other commercial use. Any use of the Contribution is entirely made at
- * the user's own responsibility and the user can not rely on any features,
- * functionalities or performances Alcatel-Lucent has attributed to the
- * Contribution.
- *
- * THE CONTRIBUTION BY ALCATEL-LUCENT IS PROVIDED AS IS, WITHOUT WARRANTY
- * OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
- * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, COMPLIANCE,
- * NON-INTERFERENCE AND/OR INTERWORKING WITH THE SOFTWARE TO WHICH THE
- * CONTRIBUTION HAS BEEN MADE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL
- * ALCATEL-LUCENT BE LIABLE FOR ANY DAMAGES OR OTHER LIABLITY, WHETHER IN
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- * CONTRIBUTION OR THE USE OR OTHER DEALINGS IN THE CONTRIBUTION, WHETHER
- * TOGETHER WITH THE SOFTWARE TO WHICH THE CONTRIBUTION RELATES OR ON A STAND
- * ALONE BASIS."
- */
-
-ini_set("memory_limit", "64M");
-
-// Disable compression, seems needed to get all the messages.
-$no_gz_buffer=true;
-
-require_once('../../env.inc.php');
-require_once $gfwww.'include/pre.php';
-require_once $gfconfig.'plugins/wiki/config.php' ;
-
-$user_name = $group_name;
-
-$user =& user_get_object_by_name($user_name);
-if (!$user || !is_object($user) || $user->isError() || !$user->isActive()) {
-
- exit_error("Invalid User","Invalid User");
-
-} else {
-
- $user_id = $user->getID();
-
- define('VIRTUAL_PATH', '/wiki/u/'.$group_name);
- define('PAGE_PREFIX', '_u'.$user_id.'_');
-
- define('THEME', 'gforge');
-
- require dirname(__FILE__).'/wikiconfig.php';
-}
-?>
Added: trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/wikiadmin.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/wikiadmin.php (rev 0)
+++ trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/wikiadmin.php 2011-02-28 23:21:29 UTC (rev 15620)
@@ -0,0 +1,176 @@
+<?php // -*-php-*- $Id: wikiadmin.php 7560 2010-06-23 14:43:29Z vargenau $
+/*
+ * Copyright (C) 2009 Alain Peyrat, Alcatel-Lucent
+ * Copyright (C) 2009-2010 Marc-Etienne Vargenau, Alcatel-Lucent
+ *
+ * This file is part of PhpWiki.
+ *
+ * PhpWiki 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.
+ *
+ * PhpWiki is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PhpWiki; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+/*
+ * Standard Alcatel-Lucent disclaimer for contributing to open source
+ *
+ * "The Wiki Configurator ("Contribution") has not been tested and/or
+ * validated for release as or in products, combinations with products or
+ * other commercial use. Any use of the Contribution is entirely made at
+ * the user's own responsibility and the user can not rely on any features,
+ * functionalities or performances Alcatel-Lucent has attributed to the
+ * Contribution.
+ *
+ * THE CONTRIBUTION BY ALCATEL-LUCENT IS PROVIDED AS IS, WITHOUT WARRANTY
+ * OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, COMPLIANCE,
+ * NON-INTERFERENCE AND/OR INTERWORKING WITH THE SOFTWARE TO WHICH THE
+ * CONTRIBUTION HAS BEEN MADE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL
+ * ALCATEL-LUCENT BE LIABLE FOR ANY DAMAGES OR OTHER LIABLITY, WHETHER IN
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ * CONTRIBUTION OR THE USE OR OTHER DEALINGS IN THE CONTRIBUTION, WHETHER
+ * TOGETHER WITH THE SOFTWARE TO WHICH THE CONTRIBUTION RELATES OR ON A STAND
+ * ALONE BASIS."
+ */
+
+require_once dirname(__FILE__)."/../../env.inc.php";
+require_once $gfwww.'include/pre.php';
+require_once $sys_plugins_path.'wiki/common/WikiPlugin.class.php';
+require_once $sys_plugins_path.'wiki/common/wikiconfig.class.php';
+
+// the header that displays for the user portion of the plugin
+function wiki_Project_Header($params) {
+ global $id;
+ $params['toptab']='wiki';
+ $params['group']=$id;
+ /*
+ Show horizontal links
+ */
+ site_project_header($params);
+}
+
+$user = session_get_user(); // get the session user
+
+if (!$user || !is_object($user) || $user->isError() || !$user->isActive()) {
+ exit_error("Invalid User", "Cannot Process your request for this user.");
+}
+
+$type = getStringFromRequest('type');
+$id = getIntFromRequest('id');
+$pluginname = 'wiki';
+$config = getArrayFromRequest('config');
+
+if (!$type) {
+ exit_error("Cannot Process your request","No TYPE specified");
+} elseif (!$id) {
+ exit_error("Cannot Process your request","No ID specified");
+} else {
+ if ($type == 'admin_post') {
+ $group = group_get_object($id);
+ if ( !$group) {
+ exit_error(_('Invalid Project'), _('Inexistent Project'));
+ }
+ if (!($group->usesPlugin($pluginname))) { //check if the group has the wiki plugin active
+ exit_error("Error", "First activate the $pluginname plugin through the Project's Admin Interface");
+ }
+ $userperm = $group->getPermission($user); //we'll check if the user belongs to the group
+ if ( !$userperm->IsMember()) {
+ exit_error(_('Access Denied'), _('You are not a member of this project'));
+ }
+ //only project admin can access here
+ if ( $userperm->isAdmin() ) {
+
+ $wc = new WikiConfig($id);
+
+ foreach ($wc->getWikiConfigNames() as $c) {
+ if ( ! array_key_exists($c, $config)) {
+ $config[$c] = 0;
+ }
+ }
+
+ foreach ($config as $config_name => $config_value) {
+ $r = $wc->updateWikiConfig($config_name, $config_value);
+ if (!$r) exit_error("Error", $wc->getErrorMessage());
+ }
+
+ $type = 'admin';
+ $feedback = _('Configuration saved.');
+ } else {
+ exit_error(_('Access Denied'), _('You are not a project Admin'));
+ }
+ }
+ if ($type == 'admin') {
+ $group = group_get_object($id);
+ if ( !$group) {
+ exit_error(_('Invalid Project'), _('Inexistent Project'));
+ }
+ if ( ! ($group->usesPlugin ($pluginname)) ) {//check if the group has the plugin active
+ exit_error("Error", "First activate the $pluginname plugin through the Project's Admin Interface");
+ }
+ $userperm = $group->getPermission($user); //we'll check if the user belongs to the group
+ if ( !$userperm->IsMember()) {
+ exit_error(_('Access Denied'), _('You are not a member of this project'));
+ }
+ //only project admin can access here
+ if ( $userperm->isAdmin() ) {
+ wiki_Project_Header(array('title'=>"Configuration for your project's Wiki",'pagename'=>"$pluginname",'sectionvals'=>array(group_getname($id))));
+
+ $wc = new WikiConfig($id);
+
+ print "\n<h1>"._("Configuration for your project's Wiki")."</h1>\n";
+
+ print "<table>\n";
+ print "<tr>\n";
+ print "<td>\n";
+ print "<fieldset>\n";
+ print "<legend>"._('Wiki Configuration')."</legend>\n";
+ print "<form action=\"/plugins/wiki/wikiadmin.php\" method=\"post\">\n";
+ print "<input type=\"hidden\" name=\"id\" value=\"$id\" />\n";
+ print "<input type=\"hidden\" name=\"pluginname\" value=\"$pluginname\" />\n";
+ print "<input type=\"hidden\" name=\"type\" value=\"admin_post\" />\n";
+
+ print '<table class="listing">';
+ print "\n<thead>\n<tr>\n<th>".
+ _("Parameter").
+ "</th>" .
+ "<th>".
+ _("Value").
+ "</th>\n" .
+ "</tr>\n</thead>\n";
+
+ foreach ($wc->getWikiConfigNames() as $c) {
+ $checked = $wc->getWikiConfig($c) ? ' checked="checked"' : '';
+ $desc = $wc->getWikiConfigDescription($c);
+
+ print "<tr>\n<td>$desc</td>\n" .
+ "<td align=\"center\">" .
+ "<input type=\"checkbox\" name=\"config[$c]\" value=\"1\"$checked /></td>\n" .
+ "</tr>\n";
+ }
+ print "</table>\n";
+ print "<p align=\"right\"><input type=\"submit\" value=\"" .
+ _("Save Configuration").
+ "\" /></p>";
+ print "</form>\n";
+ print "</fieldset>\n";
+ print "</td>\n";
+ print "</tr>\n";
+ print "</table>\n";
+ } else {
+ exit_error(_('Access Denied'), _('You are not a project Admin'));
+ }
+ }
+}
+
+site_project_footer(array());
+
+?>
Deleted: trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/wikiconfig.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/wikiconfig.php 2011-02-28 23:21:26 UTC (rev 15619)
+++ trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/wikiconfig.php 2011-02-28 23:21:29 UTC (rev 15620)
@@ -1,211 +0,0 @@
-<?php
-
-/*
- * Copyright (C) 2008 Alcatel-Lucent
- *
- * This file is part of PhpWiki.
- *
- * PhpWiki 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.
- *
- * PhpWiki is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with PhpWiki; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-*/
-
-/*
- * Standard Alcatel-Lucent disclaimer for contributing to open source
- *
- * "The Configuration File ("Contribution") has not been tested and/or
- * validated for release as or in products, combinations with products or
- * other commercial use. Any use of the Contribution is entirely made at
- * the user's own responsibility and the user can not rely on any features,
- * functionalities or performances Alcatel-Lucent has attributed to the
- * Contribution.
- *
- * THE CONTRIBUTION BY ALCATEL-LUCENT IS PROVIDED AS IS, WITHOUT WARRANTY
- * OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
- * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, COMPLIANCE,
- * NON-INTERFERENCE AND/OR INTERWORKING WITH THE SOFTWARE TO WHICH THE
- * CONTRIBUTION HAS BEEN MADE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL
- * ALCATEL-LUCENT BE LIABLE FOR ANY DAMAGES OR OTHER LIABLITY, WHETHER IN
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- * CONTRIBUTION OR THE USE OR OTHER DEALINGS IN THE CONTRIBUTION, WHETHER
- * TOGETHER WITH THE SOFTWARE TO WHICH THE CONTRIBUTION RELATES OR ON A STAND
- * ALONE BASIS."
- */
-
-define('GFORGE', true);
-define('USE_BYTEA', true);
-
-define('PATH_INFO_PREFIX', '/'.$group_name . '/');
-define('USE_PATH_INFO', true);
-
-define('WIKI_NAME', $group_name);
-
-define('UPLOAD_FILE_PATH', '/opt/groups/'.WIKI_NAME.'/www/uploads/');
-define('UPLOAD_DATA_PATH', '/www/'.WIKI_NAME.'/uploads/');
-
-// Do not use a directory per user but only one (per project)
-define('UPLOAD_USERDIR', false);
-
-// GForge is UTF-8, so use the same.
-define('CHARSET', 'UTF-8');
-
-// Disable access log (already in apache & gforge).
-define('ACCESS_LOG_SQL', 0);
-
-// define('DEBUG', true);
-// define('_DEBUG_LOGIN', true);
-
-// Disable VACUUM (they are performed every night)
-define('DATABASE_OPTIMISE_FREQUENCY', 0);
-
-// It is not used by it is required by libs.
-define('ADMIN_USER', 'Project Administrators');
-define('ADMIN_PASSWD', 'xxx');
-
-// Allow ".jpeg" as extension
-define('INLINE_IMAGES', 'png|jpg|jpeg|gif');
-
-// Allow template with MediaWiki syntax
-define('ENABLE_MARKUP_TEMPLATE', true);
-
-// Allow tables with MediaWiki syntax
-define('ENABLE_MARKUP_MEDIAWIKI_TABLE', true);
-
-// Allow parsing of headers for CreateToc
-define('TOC_FULL_SYNTAX', true);
-
-// Allow <div> and <span> in wiki code
-define('ENABLE_MARKUP_DIVSPAN', true);
-
-// Disable ENABLE_ACDROPDOWN, it creates a <style> in the <body> (illegal)
-define('ENABLE_ACDROPDOWN', false);
-
-define('TOOLBAR_PAGELINK_PULLDOWN', false);
-define('TOOLBAR_TEMPLATE_PULLDOWN', false);
-define('TOOLBAR_IMAGE_PULLDOWN', true);
-
-// Disable WYSIWYG
-define('ENABLE_WYSIWYG', false);
-
-// Which backend? Might need to be seperately installed. See lib/WysiwygEdit/
-// Recommended is only Wikiwyg.
-//
-// Wikiwyg http://openjsan.org/doc/i/in/ingy/Wikiwyg/
-// tinymce http://tinymce.moxiecode.com/
-// FCKeditor http://fckeditor.net/
-// spaw http://sourceforge.net/projects/spaw
-// htmlarea3
-// htmlarea2
-define('WYSIWYG_BACKEND', 'tinymce');
-//
-// Store all WYSIWYG pages as HTML? Will loose most link and plugin options.
-// Not recommended, but presented here to test several WYSIWYG backends.
-define('WYSIWYG_DEFAULT_PAGETYPE_HTML', false);
-
-// Disable public pages
-define('ENABLE_PAGE_PUBLIC', false);
-
-// Let all revisions be stored. Default since 1.3.11
-define('MAJOR_MIN_KEEP', 2147483647);
-define('MINOR_MIN_KEEP', 2147483647);
-define('MAJOR_MAX_AGE', 2147483647);
-define('MAJOR_KEEP', 2147483647);
-define('MINOR_MAX_AGE', 2147483647);
-define('MINOR_KEEP', 2147483647);
-define('AUTHOR_MAX_AGE', 2147483647);
-define('AUTHOR_KEEP', 2147483647);
-define('AUTHOR_MIN_AGE', 2147483647);
-define('AUTHOR_MAX_KEEP', 2147483647);
-
-//
-// Define access rights for the wiki.
-//
-
-// Allow anonymous user to view the pages.
-define('ALLOW_ANON_USER', true);
-
-// Do not allow anon users to edit pages
-define('ALLOW_ANON_EDIT', false);
-
-// Do not allow fake user
-define('ALLOW_BOGO_LOGIN', false);
-define('ALLOW_USER_PASSWORDS', true);
-
-// A dedicated auth has been created to get auth from GForge
-$USER_AUTH_ORDER = array("GForge");
-define('USER_AUTH_ORDER', 'GForge');
-define('USER_AUTH_POLICY', 'strict');
-
-define('EXTERNAL_LINK_TARGET', '_top');
-
-// Override the default configuration for CONSTANTS before index.php
-$LANG='en'; $LC_ALL='en_US';
-
-// For Gforge, we create some specific pages, located in the theme
-define('WIKI_PGSRC', 'themes/gforge/pgsrc/');
-
-// We use a local interwiki map file
-define('INTERWIKI_MAP_FILE', 'themes/gforge/interwiki.map');
-
-define('DEFAULT_WIKI_PAGES', "");
-
-define('ERROR_REPORTING', E_ERROR);
-
-define('DBAUTH_AUTH_CHECK', "SELECT IF(passwd='\$password',1,0) as ok FROM plugin_wiki_pref WHERE userid='\$userid'");
-define('DBAUTH_AUTH_USER_EXISTS', "SELECT userid FROM plugin_wiki_pref WHERE userid='\$userid'");
-define('DBAUTH_AUTH_CREATE', "INSERT INTO plugin_wiki_pref (passwd,userid) VALUES ('\$password','\$userid')");
-define('DBAUTH_PREF_SELECT', "SELECT prefs FROM plugin_wiki_pref WHERE userid='\$userid'");
-define('DBAUTH_PREF_UPDATE', "UPDATE plugin_wiki_pref SET prefs='\$pref_blob' WHERE userid='\$userid'");
-define('DBAUTH_PREF_INSERT', "INSERT INTO plugin_wiki_pref (prefs,userid) VALUES ('\$pref_blob','\$userid')");
-define('DBAUTH_IS_MEMBER', "SELECT userid FROM plugin_wiki_pref WHERE userid='\$userid' AND groupname='\$groupname'");
-define('DBAUTH_GROUP_MEMBERS', "SELECT userid FROM plugin_wiki_pref WHERE groupname='\$groupname'");
-define('DBAUTH_USER_GROUPS', "SELECT groupname FROM plugin_wiki_pref WHERE userid='\$userid'");
-
-define('USE_DB_SESSION', true);
-
-if (isset($sys_use_selenium) && $sys_use_selenium) {
- // Temporary disabled for selenium based tests.
- define('ENABLE_EDIT_TOOLBAR', false);
-}
-
-// If the user is logged in, let the Wiki know
-if (session_loggedin()){
- // let php do it's session stuff too!
- //ini_set('session.save_handler', 'files');
- // session_start();
- $user = session_get_user();
-
- if ($user && is_object($user) && !$user->isError() && $user->isActive()) {
- $user_name = $user->getRealName();
- $_SESSION['user_id'] = $user_name;
- $_SERVER['PHP_AUTH_USER'] = $user_name;
- $HTTP_SERVER_VARS['PHP_AUTH_USER'] = $user_name;
- }
-} else {
- // clear out the globals, just in case...
-}
-
-// Load the default configuration.
-include dirname(__FILE__).'/index.php';
-
-// Override the default configuration for VARIABLES after index.php:
-// E.g. Use another DB:
-$DBParams['dbtype'] = 'SQL';
-$DBParams['dsn'] = 'pgsql://' . forge_get_config('database_user') . ':' .
- forge_get_config('database_password') . '@' . forge_get_config('database_host') .'/' . forge_get_config('database_name');
-
-$DBParams['prefix'] = "plugin_wiki_";
-
-// Start the wiki
-include dirname(__FILE__).'/lib/main.php';
-?>
Deleted: trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/www
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/www 2011-02-28 23:21:26 UTC (rev 15619)
+++ trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/www 2011-02-28 23:21:29 UTC (rev 15620)
@@ -1,63 +0,0 @@
-<?php
-require_once('pre.php');
-if (!$group_id || !$project) {
- exit_error("Invalid Project","Invalid Project");
-} else {
-
- define('VIRTUAL_PATH', '/plugins/wiki/'.$project->getUnixName());
- define('PATH_INFO_PREFIX', '/'.$project->getUnixName() . '/');
- define('USE_PATH_INFO', true);
-
- define('WIKI_NAME', $project->getUnixName());
-
-// define('DEBUG', true);
-// define('_DEBUG_LOGIN', true);
-
- // It is not used by it is required by libs.
- define('ADMIN_USER', 'Project Administrators');
- define('ADMIN_PASSWD', 'xxx');
-
- // A dedicated auth has been created to get auth from GForge
- $USER_AUTH_ORDER = array("GForge");
- $USER_AUTH_POLICY = "strict";
-
- // Override the default configuration for CONSTANTS before index.php
- //$LANG='de'; $LC_ALL='de_DE';
-
- define('THEME', 'gforge');
-// define('THEME', 'MonoBook');
-
-// define('HIGHLIGHT_EXE','/usr/share/acde/tools/highlight/usr/bin/highlight');
-
- // Load the default configuration.
- include "index.php";
-
- // Override the default configuration for VARIABLES after index.php:
- // E.g. Use another DB:
- $DBParams['dbtype'] = 'SQL';
- $DBParams['dsn'] = 'pgsql://' . $sys_dbuser . ':' .
- $sys_dbpasswd . '@' . $sys_dbhost .'/' . $sys_dbname;
-
- $DBParams['prefix'] = "plugin_wiki2_";
-
- // If the user is logged in, let the Wiki know
- if (session_loggedin()){
- // let php do it's session stuff too!
- //ini_set('session.save_handler', 'files');
- // session_start();
- $user = session_get_user();
-
- if ($user && is_object($user) && !$user->isError() && $user->isActive()) {
- $user_name = $user->getRealName();
- $_SESSION['user_id'] = $user_name;
- $_SERVER['PHP_AUTH_USER'] = $user_name;
- $HTTP_SERVER_VARS['PHP_AUTH_USER'] = $user_name;
- }
- } else {
- // clear out the globals, just in case...
-
- }
- // Start the wiki
- include "lib/main.php";
-}
-?>
\ No newline at end of file
Deleted: trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/z
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/z 2011-02-28 23:21:26 UTC (rev 15619)
+++ trunk/gforge_base/evolvisforge-5.1/src/plugins/wiki/www/z 2011-02-28 23:21:29 UTC (rev 15620)
@@ -1,66 +0,0 @@
-<?php
-
-/*
- * Copyright (C) 2008 Alcatel-Lucent
- *
- * This file is part of PhpWiki.
- *
- * PhpWiki 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.
- *
- * PhpWiki is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with PhpWiki; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-*/
-
-/*
- * Standard Alcatel-Lucent disclaimer for contributing to open source
- *
- * "The Configuration File ("Contribution") has not been tested and/or
- * validated for release as or in products, combinations with products or
- * other commercial use. Any use of the Contribution is entirely made at
- * the user's own responsibility and the user can not rely on any features,
- * functionalities or performances Alcatel-Lucent has attributed to the
- * Contribution.
- *
- * THE CONTRIBUTION BY ALCATEL-LUCENT IS PROVIDED AS IS, WITHOUT WARRANTY
- * OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
- * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, COMPLIANCE,
- * NON-INTERFERENCE AND/OR INTERWORKING WITH THE SOFTWARE TO WHICH THE
- * CONTRIBUTION HAS BEEN MADE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL
- * ALCATEL-LUCENT BE LIABLE FOR ANY DAMAGES OR OTHER LIABLITY, WHETHER IN
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- * CONTRIBUTION OR THE USE OR OTHER DEALINGS IN THE CONTRIBUTION, WHETHER
- * TOGETHER WITH THE SOFTWARE TO WHICH THE CONTRIBUTION RELATES OR ON A STAND
- * ALONE BASIS."
- */
-
-ini_set("memory_limit", "64M");
-
-// Disable compression, seems needed to get all the messages.
-$no_gz_buffer=true;
-
-require_once('pre.php');
-
-if (!$group_id || !$project) {
- exit_error("Invalid Project","Invalid Project");
-} else {
-
- $group_name = $project->getUnixName();
- $group_public_name = $project->getPublicName();
-
- define('VIRTUAL_PATH', '/wiki/z/'.$group_name);
- define('PAGE_PREFIX', '_z'.$group_id.'_');
-
- define('THEME', 'default');
-
- require('wikiconfig.php');
-}
-?>
More information about the evolvis-commits
mailing list