From: John C. <joh...@ua...> - 2004-08-05 14:17:02
Attachments:
UnfoldSubpages.patch
UnfoldSubpages_wish.patch
|
Reini, Here is another stab at fixing UnfoldSubpages... The problem is that the way it flows now, the options don't get used (and my DocBook stuff relies on them). Also, I'd like to add another parameter to UnfoldSubpages called divclass to optionally put the contenets of the plugin inside a user defined div tag. I'm attaching another patch to do that, called UnfoldSubpages_wish.patch :-) The reason for adding this is so that the html2db.xsl file can transform different plugin calls to differnt DocBook types (like one for chapter or prefix, etc)... I didn't know if it would be better to use class or id, it doesn't matter which one, but I'd like to add the same to the IncludePage plugin as well. Thanks, John ------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. |
From: Stan B. <sb...@po...> - 2004-08-05 19:23:19
|
I have finally managed to do the upgrade. Pages dumped from 1.3.4, some=20 of them had no "markup=3D2;" line which made (possibly some of them; am=20 not sure) fail on loding into the new phpWiki. Fail means the load=20 would just display the name of the page being loaded and hang. I went=20 and added this line into dumped pages and it helped. The new 1.3.11 is working fine but: * the page rename doesn't rename subpages so they become orphans.=20 * the upload doesn't work; shows a message like this: =20 Fatal PhpWiki Error, lib\Request.php:601: Fatal[256]: Uploaded tmpfile illegal: C:\WINNT\TEMP/C:WINNTTEMPphpD.tmp !=3D=20 C:WINNTTEMPphpD.tmp. * Probably illegal TEMP environment or upload_tmp_dir setting. Actually, neither TEMP variable not upload_tmp_dir points to=20 c:\winnt\temp. Other than this, so far, it's very nice. Thanks, guys!=20 By the way, for those who are still struggling with the new wiki (as I=20 was for so long), I'm using the following config.ini (bottom of the=20 message). It requires a login but only for edit. At login it ignores=20 the password even if entered the first time a new user logs in. I=20 actually wonder what is BOGO, ANON and other levels and whether they are=20 described anywhere. Not in pgscr! Stan Berka >>> config.ini start ; This is the main configuration file for PhpWiki. ; Note that seartain characters are used as comment char and therefore ; these entries must be in double-quotes. Such as ":", ";", "," and "|" ; ; This file is divided into seven parts: Parts Zero, One, Two, Three, ; Four, Five and Six. Each one has different configuration settings you c= an ; change; in all cases the default should work on your system, ; however, we recommend you tailor things to your particular setting. ;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ; Part Zero: Tricky Options ;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ; ; If PHP needs help in finding where you installed the rest of the PhpWik= i ; code, you can set the include_path here. ; ; Define PHP's include path so that it can find the PHP source code ; for this PhpWiki. ; You shouldn't need to do this unless you've moved index.php out ; of the PhpWiki install directory. But if you define it, be sure to=20 include either ; the system pear path or the phpwiki/lib/pear path. ; Note that on Windows-based servers, you should use ; rather than : ; as the path separator. INCLUDE_PATH =3D ".;C:/web/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. 2 for a more verbose level. Default: 0 ;DEBUG =3D 1 ; Enable the new method of handling WikiUsers. This is currently an ; experimental feature, although it is considered fairly stable. It's be= st ; to leave it on, and only disable it if you have problems with it. ; Default: true ;ENABLE_USER_NEW =3D false ; Experimental new edit feature. Default: true ;ENABLE_EDIT_TOOLBAR =3D false ; Adds two additional buttons in EDIT_TOOLBAR, Search&Replace and Undo ; Currently broken. Default: false ;JS_SEARCHREPLACE =3D true ;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ; Part One: Authentication and security settings. ; ; See Part Three for more. ;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ; ; 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 ; (substituting "PhpWiki" in the filename with the name you define ; 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 =3D WPISWiki ; 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 =3D true ; Username and password of administrator. ; ; Set these to your preferences. For heaven's sake pick a good ; password and use the passencrypt.php tool to encrypt the password from ; prying eyes. ; http://wolfram.org/writing/howto/password.html ; ; Logging into the wiki with the admin user and password allows you to lo= ck, ; unlock, or remove pages and to perform other PhpWikiAdministration ; functions. On all other occasions you should simply log in with your ; regular WikiName. ADMIN_USER =3D canadm ADMIN_PASSWD =3D shedule ; It is recommended that you use the passencrypt.php utility to encode th= e ; admin password, in the event that someone gains ftp or ssh access to th= e ; server and directory containing phpwiki. Once you have pasted the ; encrypted password into ADMIN_PASSWD, uncomment this next line. ENCRYPTED_PASSWD =3D false ; 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 =3D false ; The RawHtml plugin allows page authors to embed real, raw HTML into Wik= i ; pages. This is a possible security threat, as much HTML (or, rather, ; JavaScript) can be very risky. If you are in a controlled environment, ; however, it could be of use. ENABLE_RAW_HTML =3D false; ; 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 =3D false ; Here you can change the default dump directories. ; (Can be overridden by the directory argument) DEFAULT_DUMP_DIR =3D /tmp/wikidump HTML_DUMP_DIR =3D /tmp/wikidumphtml ; Filename suffix used for XHTML page dumps. ; If you don't want any suffix just comment this out. HTML_DUMP_SUFFIX =3D .html ; The maximum file upload size, in bytes. ; The default, 16777216, is 16MB. MAX_UPLOAD_SIZE =3D 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) MINOR_EDIT_TIMEOUT =3D 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. ; DISABLED_ACTIONS =3D "dumpserial : loadfile" ; 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. ;ACCESS_LOG =3D /var/tmp/wiki_access_log ; 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 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. ; ; WARNING: Compressing the output has been reported to cause serious=20 problems ; when PHP is running as a CGI or on MacOSX. ;COMPRESS_OUTPUT =3D false ; 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) behavior. PhpWiki will ; instruct proxies and browsers never to cache PhpWiki output. ; This was previously called 'NONE', but NONE was treated specially ; by parse_ini_config(). ; ; 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=20 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=20 quirks.) ; ; The recommended default is currently LOOSE. ; CACHE_CONTROL =3D LOOSE ; Maximum page staleness, in seconds. ; ; This only has effect if CACHE_CONTROL is set to ALLOW_STALE. CACHE_CONTROL_MAX_AGE =3D 600 ; PhpWiki normally caches a preparsed version (i.e. mostly ; converted to HTML) of the most recent version of each page. ; (Parsing the wiki-markup takes a fair amount of CPU.) ; ; 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=3D1' ; to the URL to the page. (Use '?nocache=3Dpurge' to completely ; discard the cached version of the page.) ; ; You can also purge the cached markup globally by using the ; "Purge Markup Cache" button on the PhpWikiAdministration page. ;WIKIDB_NOCACHE_MARKUP =3D true ;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ; Part Two: Database Selection ;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ; Select the database type: ; ; SQL: access one of several SQL databases using the PEAR DB=20 library. ; ADODB: uses the ADODB library for data access. ; dba: use one of the standard UNIX dbm libraries. ; file: use a flat file database. ; cvs: use a CVS server to store everything. DATABASE_TYPE =3D SQL =20 ; prefix for filenames or table names ; ; Currently you MUST EDIT THE SQL file too (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 =3D phpwiki_ ; For SQL based backends, specify the database as a DSN (Data Source Name= ), ; a kind of URL for databases. ; ; The most general form of a DSN looks like: ; ; dbtype(dbsyntax)://username:password@protocol+hostspec/database ; ; 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 ; ; Valid values for dbtype are mysql, pgsql, or sqlite. ; DATABASE_DSN =3D "mysql://phpwiki:tulipanQ@localhost/phpwiki" ; A table to store session information. Only needed by SQL backends. ; ; A word of warning - any prefix defined above will be prepended to whate= ver ; is given here. DATABASE_SESSION_TABLE =3D 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 acc= ess ; to this directory. ; ; WARNING: leaving this as the default of '/tmp' will almost guarantee th= at ; you'll lose your wiki data at some stage. DATABASE_DIRECTORY =3D C:\web\phpwiki\temp ; For the dba backend, this defines which DBA variant you wish to use. ; gdbm - commonly available ; db2 - Berkeley DB v2; not supported by modern versions of PHP ; db3 - Berkeley DB v3; as per db2. The best on Windows ; db4 - Berkeley DB v4; current version, however PHP has some issue= s ; with it's db4 support. ; dbm - Older dba handler; suffers from limits on the size of data ; items DATABASE_DBA_HANDLER =3D gdbm ; How long will the system wait for a database operation to complete? ; Specified in seconds. DATABASE_TIMEOUT =3D 20 ; The login code now uses PHP's session support. Usually, the default ; configuration of PHP is to store the session state information in ; /tmp. That probably will work fine, but fails e.g. on clustered ; 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 ; (whatever user your httpd runs as must have read/write permission ; in this directory): ;SESSION_SAVE_PATH =3D some_other_directory ;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ; Section 3a: Page revisions ; ; The next section controls how many old revisions of each page are ; kept in the database. ;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ; ; 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 an 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. ; ; Definitions of terms used above: ; ; 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. ; ; Keep up to 8 major edits, but keep them no longer than a month. MAJOR_MAX_AGE =3D 32 MAJOR_KEEP =3D 8 ; Keep up to 4 minor edits, but keep them no longer than a week. MINOR_MAX_AGE =3D 7 MINOR_KEEP =3D 4 ; Keep the latest contributions of the last 8 authors up to a year. ; 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,) but in no case keep more ; than twenty unique author revisions. AUTHOR_MAX_AGE =3D 365 AUTHOR_KEEP =3D 8 AUTHOR_MIN_AGE =3D 7 AUTHOR_MAX_KEEP =3D 20 ;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ; Part Three: User Authentication ;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ; ; New user authentication configuration: ; We support three basic authentication methods and a stacked array ; of advanced auth methods to get and check the passwords: ; ; ALLOW_ANON_USER default true ; ALLOW_ANON_EDIT default true ; ALLOW_BOGO_LOGIN default true ; ALLOW_USER_PASSWORDS default true ; allow anon users to view existing pages ALLOW_ANON_USER =3D true ; allow anon users to edit pages ALLOW_ANON_EDIT =3D false ; If ALLOW_BOGO_LOGIN is true, users are allowed to login (with ; any/no password) using any userid which: ; 1) is not the ADMIN_USER, and ; 2) is a valid WikiWord (matches $WikiNameRegexp.) ; If true, users may be created by themselves. Otherwise we need=20 seperate auth. ; If such a user will create a so called HomePage with his userid, he wil= l ; be able to store his preferences and password there. ALLOW_BOGO_LOGIN =3D true ; True User Authentication: ; To require user passwords: ; ALLOW_ANON_USER =3D false ; ALLOW_ANON_EDIT =3D false ; ALLOW_BOGO_LOGIN =3D false, ; ALLOW_USER_PASSWORDS =3D true. ; Otherwise any anon or bogo user might login without any or a wrong=20 password. ALLOW_USER_PASSWORDS =3D false ; Many different methods can be used to check user's passwords: ; 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) ; File: Store username:crypted-passwords in .htaccess like=20 files. ; Use Apache's htpasswd to manage this file. ; HttpAuth: Use the protection by the webserver (.htaccess) or ; enforce it ; ; 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 =3D "PersonalPage" ; 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. PASSWORD_LENGTH_MINIMUM =3D 2 =20 ; 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 =3D stacked ; LDAP authentication options: ; ; 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 differe= nt ; port number). ;LDAP_AUTH_HOST =3D "ldap://localhost:389" ; The organizational or domain BASE DN: e.g. "dc=3Dmydomain,dc=3Dcom". ; ; Note: ou=3DUsers and ou=3DGroups are used for GroupLdap Membership ;LDAP_BASE_DN =3D "ou=3DUsers,o=3DDevelopment,dc=3Dmycompany.com" ; Some LDAP servers need some more options, such as the Windows Active ; Directory Server. Specify the options (as allowed by the PHP LDAP modu= le) ; and their values as NAME=3Dvalue pairs separated by colons. ; LDAP_SET_OPTION =3D "LDAP_OPT_PROTOCOL_VERSION=3D3:LDAP_OPT_REFERRALS=3D= 0" ; DN to bind to the LDAP server as. ; LDAP_AUTH_USER =3D "CN=3Dldapuser,CN=3DUsers,DC=3Duai,DC=3Dint" ; Password to use to bind to the LDAP server, as the DN specified in ; the LDAP_AUTH_USER option (above). ; LDAP_AUTH_PASSWORD =3D secret ; If you want to match usernames against an attribute other than uid, ; specify it here. ; LDAP_SEARCH_FIELD =3D sAMAccountName ; IMAP authentication options: ; ; 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=20 conections) ; IMAP_AUTH_HOST =3D "localhost:143/imap/notls" ; POP3 authentication options: ; ; Host to connect to. ; POP3_AUTH_HOST =3D "localhost:110" ; Port to connect. Deprecated: Use POP3_AUTH_HOST:<port> instead ; POP3_AUTH_PORT =3D 110 ; File authentication options: ; ; File to read for authentication information. ; Popular choices are /etc/shadow and /etc/httpd/.htpasswd AUTH_USER_FILE =3D C:\web\phpwiki\temp ; Defines whether the user is able to change their own password via PHPWi= ki. ; Note that this means that the webserver user must be able to write to t= he ; file specified in AUTH_USER_FILE. AUTH_USER_FILE_STORABLE =3D true ; Session Auth: ; Name of the session variable which holds the already authenticated=20 username. ; Sample: "userid", "user[username]", "user->username" ; AUTH_SESS_USER =3D userid ; Which level will the user be? 1 =3D Bogo or 2 =3D Pass ; AUTH_SESS_LEVEL =3D 2 ; Group membership. PHPWiki supports defining permissions for a group as ; well as for individual users. This defines how group membership=20 information ; is obtained. Supported values are: ; ; NONE group membership is not supported. ; WIKIPAGE Defined in the metadata of a wiki page. ; DB Stored in an ADODB or PearDB database. ; FILE Flatfile. ; LDAP Query LDAP to find the information. GROUP_METHOD =3D WIKIPAGE ; For GROUP_METHOD =3D 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 =3D /etc/groups ; External database authentication and authorization. ; ; If USER_AUTH_ORDER includes Db, or GROUP_METHOD =3D DB, the options lis= ted ; below define the SQL queries used to obtain the information out of the ; database, and (in some cases) store the information back to the DB. ; ; The options appropriate for each query are currently undocumented, and ; you should not be surprised if things change mightily in the future. ; ; A database DSN to connect to. Defaults to the DSN specified for the Wi= ki ; as a whole. ; DBAUTH_AUTH_DSN =3D "mysql://wikiuser:@localhost/phpwiki" ; ; USER/PASSWORD queries ; ; Check to see if the supplied username/password pair is OK ; ; plaintext passwords: ; DBAUTH_AUTH_CHECK =3D "SELECT IF(passwd=3D'$password',1,0) AS ok FROM u= ser=20 WHERE userid=3D'$userid'" ; ; database-hashed passwords (more secure): ; DBAUTH_AUTH_CHECK =3D "SELECT IF(passwd=3DPASSWORD('$password'),1,0) AS= ok=20 FROM user WHERE userid=3D'$userid'" DBAUTH_AUTH_CRYPT_METHOD =3D plain ; If you want to use Unix crypt()ed passwords, you can use DBAUTH_AUTH_CH= ECK ; 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 =3D "SELECT passwd FROM user where userid=3D'$userid'= " ; DBAUTH_AUTH_USER_EXISTS =3D "SELECT userid FROM user WHERE userid=3D'$u= serid'" ; DBAUTH_AUTH_CRYPT_METHOD =3D crypt ; ; Update the user's authentication credential. If this is not defined bu= t ; DBAUTH_AUTH_CHECK is, then the user will be unable to update their ; password. ; ; Plaintext passwords: ; DBAUTH_AUTH_UPDATE =3D "UPDATE user SET passwd=3D'$password' WHERE=20 userid=3D'$userid'" ; Database-hashed passwords: ; DBAUTH_AUTH_UPDATE =3D "UPDATE user SET passwd=3DPASSWORD('$password')=20 WHERE userid=3D'$userid'" ; ; Allow the user to create their own account. ; DBAUTH_AUTH_CREATE =3D "INSERT INTO user SET=20 passwd=3DPASSWORD('$password'),userid=3D'$userid'" ; USER/PREFERENCE queries ; ; If you choose to store your preferences in an external database, enable ; the following queries. Note that if you choose to store user preferenc= es ; in the 'user' table, only registered users get their prefs from the=20 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=20 array, ; to ease the complication of storage. ; DBAUTH_PREF_SELECT =3D "SELECT prefs FROM user WHERE userid=3D'$userid'= " ; DBAUTH_PREF_SELECT =3D "SELECT prefs FROM pref WHERE userid=3D'$userid'= " ; Update the user's preferences ; DBAUTH_PREF_UPDATE =3D "UPDATE user SET prefs=3D'$pref_blob' WHERE=20 userid=3D'$userid'" ; Note that REPLACE works only with mysql and destroy all other columns! ; DBAUTH_PREF_UPDATE =3D "REPLACE INTO pref SET=20 prefs=3D'$pref_blob',userid=3D'$userid'" ; USERS/GROUPS queries ; ; You can define 1:n or n:m user<=3D>group relations, as you wish. ; ; Sample configurations: ; only one group per user (1:n): ; DBAUTH_IS_MEMBER =3D "SELECT user FROM user WHERE user=3D'$userid' AN= D=20 group=3D'$groupname'" ; DBAUTH_GROUP_MEMBERS =3D "SELECT user FROM user WHERE group=3D'$group= name'" ; DBAUTH_USER_GROUPS =3D "SELECT group FROM user WHERE user=3D'$userid'= " ; multiple groups per user (n:m): ; DBAUTH_IS_MEMBER =3D "SELECT userid FROM member WHERE userid=3D'$user= id'=20 AND groupname=3D'$groupname'" ; DBAUTH_GROUP_MEMBERS =3D "SELECT DISTINCT userid FROM member WHERE=20 groupname=3D'$groupname'" ; DBAUTH_USER_GROUPS =3D "SELECT groupname FROM member WHERE=20 userid=3D'$userid'" ; A interim page which gets displayed on every edit attempt EDITING_POLICY =3D EditingPolicy ;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ; Part Four: Page appearance and layout ;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ; THEMES ; ; 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.) ; ; The complete list of installed themes can be found by doing 'ls themes/= ' ; from the root of your PHPWiki installation. THEME =3D default ; THEME =3D MacOSX ; THEME =3D smaller ; THEME =3D Wordpress ; THEME =3D Portland ; THEME =3D Hawaiian ; THEME =3D Sidebar ; THEME =3D Crao ; THEME =3D wikilens ; 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 PhpWiki may not work ; properly and will require modifications in all existing pages. ; At the very least you will have to convert the files in pgsrc ; or locale/xx/pgsrc to match! ; Currently we support utf-8 for zh, euc-jp for ja 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. (Some work is in progress hopefully to allow more ; flexibility in this area in the future). CHARSET =3D iso-8859-1 ; Select your language/locale - default language is "en" for English. ; Other languages available: ; English "en" (English - HomePage) ; Dutch "nl" (Nederlands - ThuisPagina) ; Spanish "es" (Espa=F1ol - P=E1ginaPrincipal) ; French "fr" (Fran=E7ais - PageAccueil)) ; German "de" (Deutsch - StartSeite) ; Swedish "sv" (Svenska - Framsida) ; Italian "it" (Italiano - PaginaPrincipale) ; Japanese "ja" (Japanese - =A5=DB=A1=BC=A5=E0=A5=DA=A1=BC=A5=B8) ; Chinese "zh" (Chinese - ?) ; ; If you set DEFAULT_LANGUAGE to the empty string, your system's ; default language (as determined by the applicable environment ; variables) will be used. ; Japanese requires euc-jp, Chinese utf-8 ; DEFAULT_LANGUAGE =3D 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. WIKI_PGSRC =3D 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 =3D pgsrc ; These are the pages which will get loaded from DEFAULT_WIKI_PGSRC. DEFAULT_WIKI_PAGES =3D "ReleaseNotes:SteveWainstead:TestPage" ;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ; Part Five: Mark-up options. ;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ; ; 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 ; Separate each of the protocol names with a vertical pipe, and ensure th= ere ; is no extraneous whitespace. ALLOWED_PROTOCOLS =3D "http|https|mailto|ftp|news|nntp|ssh|gopher" ; URLs ending with the following extension should be inlined as images. ; Specify as per ALLOWED_PROTOCOLS INLINE_IMAGES =3D "png|jpg|gif" ; Perl regexp for WikiNames ("bumpy words") ; (?<!..) & (?!...) used instead of '\b' because \b matches '_' as well WIKI_NAME_REGEXP =3D=20 "(?<![[:alnum:]])(?:[[:upper:]][[:lower:]]+){2,}(?![[:alnum:]])" ; Defaults to '/', but '.' was also used. SUBPAGE_SEPARATOR =3D . ; 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 =3D 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 outsid= e. WARN_NONPUBLIC_INTERWIKIMAP =3D false ; Regexp used for automatic keyword extraction. ; ; Any links on a page to pages whose names match this regexp will ; be used keywords in the keywords 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* and Topic* links. KEYWORDS =3D "Category:Topic" ;KEYWORD_LINK_REGEXP =3D "(?<=3D^\'. join(\'|^\', $keywords) .=20 \')[[:upper:]].*$" ; Author and Copyright Site Navigation Links ; ; 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 =3D GNU General Public License COPYRIGHTPAGE_URL =3D http://www.gnu.org/copyleft/gpl.html#SEC1 AUTHORPAGE_TITLE =3D The PhpWiki Programming Team AUTHORPAGE_URL =3D=20 http://phpwiki.sourceforge.net/phpwiki/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 =3D true ;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ; Part Six: URL options. ;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ; ; You can probably skip this section. ; The following section contains settings which you can use to tailor ; the URLs which PhpWiki generates. ; ; Any of these parameters which are left undefined will be deduced ; automatically. You need only set them explicitly if the ; auto-detected values prove to be incorrect. ; ; In most cases the auto-detected values should work fine, so ; hopefully you don't need to mess with this section. ; ; In case of local overrides of short placeholders, which themselves ; include index.php, we check for most constants. See '/wiki'. ; We can override DATA_PATH and PHPWIKI_DIR to support multiple phpwiki ; versions (for development), but most likely other values like ; THEME, LANG and DbParams for a WikiFarm. ; Canonical name and httpd port of the server on which this PhpWiki ; resides. ;/ ;SERVER_NAME =3D some.host.com ;SERVER_PORT =3D 80 ; Relative URL (from the server root) of the PhpWiki ; script. ;SCRIPT_NAME =3D /some/where/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 =3D /home/user/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 =3D /home/user/public_html/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=3DHomePage ; then define 'USE_PATH_INFO' as false by uncommenting the line below. ; NB: If you are using Apache >=3D 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:=20 ; See http://httpd.apache.org/docs-2.0/mod/core.html#acceptpathinfo ; ; See also http://phpwiki.sourceforge.net/phpwiki/PrettyWiki for more ide= as ; on prettifying your urls. ; ; Note that Google doesn't follow the default /index.php/PageName links. ; You must use either a PrettyWiki setup (see below), or force=20 USE_PATH_INFO=3Dfalse. ; ; 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 =3D false ; 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. apaches mod_actions (or mod_rewrite), you can make it ; something different. ; ; If you do this, you should set VIRTUAL_PATH here. ; ; 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 =3D /SomeWiki ; In case your system has no idea about /tmp, TEMP or TMPDIR, ; better provide it here. E.g. needed for zipdumps. TEMP_DIR =3D c:/web/phpwiki/temp ;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D ; Part Seven: Miscellaneous settings ;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D ; Disable HTTP redirects. ; ; (You probably don't need to touch this.) ; ; PhpWiki uses HTTP redirects for some of it's functionality. ; (e.g. after saving changes, PhpWiki redirects your browser to ; 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 Err= or" ; report.) In that case you can set DISABLE_HTTP_REDIRECT to true. ; (In which case, PhpWiki will revert to sneakier tricks to try to ; redirect the browser...) ;DISABLE_HTTP_REDIRECT =3D true ; Enable random quotes from a fortune directory ; when adding a new page. ; Usually at /usr/share/fortune or /usr/share/games/fortune ;FORTUNE_DIR =3D /usr/share/fortune ;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D ; PLUGINCACHED Pear/Cache Settings: (moved from lib/plugincache-config.ph= p) ;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D ; Cache_Container storage class: 'file' is the fastest. See=20 pear/Cache/Container/ PLUGIN_CACHED_DATABASE =3D file ; This is only used if database is set to file. ; The webserver must have write access to this dir! PLUGIN_CACHED_CACHE_DIR =3D /tmp/cache ; Every file name in the cache begins with this prefix PLUGIN_CACHED_FILENAME_PREFIX =3D phpwiki ; The maximum total space in bytes of all files in the cache. When ; highwater is exceeded, a garbage collection will start. It will ; collect garbage till 'lowwater' is reached. Default: 4 * Megabyte PLUGIN_CACHED_HIGHWATER =3D 4194304 ; Default: 3 * Megabyte PLUGIN_CACHED_LOWWATER =3D 3145728 ; If an image has not been used for maxlifetime remove it from the ; cache. (Since there is also the highwater/lowwater mechanism and an ; image usually requires only 1kb you don't have to make it very ; small, I think.)=20 ; Default: 30 * Day (30 * 24*60*60) PLUGIN_CACHED_MAXLIFETIME =3D 2592000 ; Number of characters allowed to be send as ; parameters in the url before using sessions ; vars instead. ; Usually send plugin arguments as URL, but when they become ; longer than maxarglen store them in session variables. ; Setting it to 3000 worked fine for me, 30000 completely ; crashed my linux, 1000 should be safe. PLUGIN_CACHED_MAXARGLEN =3D 1000 ; Actually use the cache (should be always true unless you are ; debugging). If you want to avoid the usage of a cache but need ; WikiPlugins that nevertheless rely on a cache you might set ; 'PLUGIN_CACHED_USECACHE' to false. You still need to set ; 'PLUGIN_CACHED_CACHE_DIR' appropriately to allow image creation and ; you should set 'PLUGIN_CACHED_FORCE_SYNCMAP' to false. PLUGIN_CACHED_USECACHE =3D true ; 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. ; (As it is the case for a graphical site map.) PLUGIN_CACHED_FORCE_SYNCMAP =3D true ; If ImageTypes() does not exist (PHP < 4.0.2) allow the ; following image formats (IMG_PNG | IMG_GIF | IMG_JPG | IMG_WBMP) ; In principal all image types which are compiled into php: ; libgd, libpng, libjpeg, libungif, libtiff, libgd2, ... ; Todo: swf, pdf, ... PLUGIN_CACHED_IMGTYPES =3D png : gif : gd : gd2 : jpeg : wbmp : xbm : xpm >>> end |
From: Reini U. <ru...@x-...> - 2004-08-07 13:20:22
|
Stan Berka schrieb: > I have finally managed to do the upgrade. Pages dumped from 1.3.4, some > of them had no "markup=2;" line which made (possibly some of them; am > not sure) fail on loding into the new phpWiki. Fail means the load > would just display the name of the page being loaded and hang. I went > and added this line into dumped pages and it helped. > > The new 1.3.11 is working fine but: > * the page rename doesn't rename subpages so they become orphans. * > the upload doesn't work; shows a message like this: Fatal PhpWiki > Error, lib\Request.php:601: Fatal[256]: > Uploaded tmpfile illegal: C:\WINNT\TEMP/C:WINNTTEMPphpD.tmp != > C:WINNTTEMPphpD.tmp. > * Probably illegal TEMP environment or upload_tmp_dir setting. > Actually, neither TEMP variable not upload_tmp_dir points to > c:\winnt\temp. so please set it in the apache process (if as service your have to re-register) or in php.ini, and please use forward slashes, like "C:/WINNT/TEMP" (not in Win98). I tried hard to workaround this php bug. > Other than this, so far, it's very nice. Thanks, guys! > By the way, for those who are still struggling with the new wiki (as I > was for so long), I'm using the following config.ini (bottom of the > message). It requires a login but only for edit. At login it ignores > the password even if entered the first time a new user logs in. I > actually wonder what is BOGO, ANON and other levels and whether they are > described anywhere. Not in pgscr! in the docs and at the phpwiki site. > Stan Berka -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |