]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/log
SourceForge/phpwiki.git
21 years agoRenamed method Request::compress_output to Request::buffer_output.
dairiki [Sat, 22 Feb 2003 18:53:40 +0000 (18:53 +0000)]
Renamed method Request::compress_output to Request::buffer_output.

Added config option to disable compression.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2638 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoBogus page names weren't being deleted by "Excorcise WikiDB" button.
dairiki [Sat, 22 Feb 2003 00:28:34 +0000 (00:28 +0000)]
Bogus page names weren't being deleted by "Excorcise WikiDB" button.
(WikiAdminUtils)

Clarify docs date backend::delete_page is responsible for cleaning
out the link database, too.   (dbaBase was not doing that.)

Minor buglet/typos fixed in PearDB.php and ADODB.php.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2637 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoMinor changes while figuring out why bogus pages weren't being deleted.
dairiki [Sat, 22 Feb 2003 00:26:14 +0000 (00:26 +0000)]
Minor changes while figuring out why bogus pages weren't being deleted.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2636 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoSet alt="" on the link icon image tags.
dairiki [Fri, 21 Feb 2003 23:33:29 +0000 (23:33 +0000)]
Set alt="" on the link icon image tags.
(See SF bug #675141.)

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2635 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoFixes to support new $basepage argument of WikiPlugin::run().
dairiki [Fri, 21 Feb 2003 23:01:11 +0000 (23:01 +0000)]
Fixes to support new $basepage argument of WikiPlugin::run().

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2634 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoFix SF bug #676309.
dairiki [Fri, 21 Feb 2003 23:00:35 +0000 (23:00 +0000)]
Fix SF bug #676309.

Also fix new bugs introduced with cached markup changes.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2633 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoAdd new argument $basepage to WikiPlugin::run() and WikiPluginLoader::expandPI().
dairiki [Fri, 21 Feb 2003 22:59:00 +0000 (22:59 +0000)]
Add new argument $basepage to WikiPlugin::run() and WikiPluginLoader::expandPI().
Plugins need to know what page they were invoked from so that they can handle
relative page links (like [/Subpage]) correctly.  ($request->getArg('pagename')
is not always the right page to use --- think included pages...)

Many plugins don't need the $basepage, in which case, I think they can just ignore
the extra argument.  (I don't think PHP will generate any warnings.)

Also: deleted <?plugin-head?> code.  It's not needed any more, now that
we always cache output.

The FrameInclude plugin seems broken now, though I'm not convinced it's
my fault.  If it is, sorry...   (I'll try to look at it a bit more
within a few days, to see if I can figure out the problem.)

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2632 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoMake sure to interpret relative links (like [/Subpage]) in summary
dairiki [Fri, 21 Feb 2003 22:52:21 +0000 (22:52 +0000)]
Make sure to interpret relative links (like [/Subpage]) in summary
relative to correct basepage.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2631 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoEnsure that language preference is a string.
dairiki [Fri, 21 Feb 2003 22:50:51 +0000 (22:50 +0000)]
Ensure that language preference is a string.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2630 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoGet rid of MakeWikiForm, and form-style MagicPhpWikiURLs.
dairiki [Fri, 21 Feb 2003 22:16:27 +0000 (22:16 +0000)]
Get rid of MakeWikiForm, and form-style MagicPhpWikiURLs.
These have been obsolete for quite awhile (I hope).

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2629 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoClean up regexp for bracket-links.
dairiki [Fri, 21 Feb 2003 22:04:43 +0000 (22:04 +0000)]
Clean up regexp for bracket-links.

(Empty bracket links not allowed.)

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2628 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoList the invalid pagenames which were deleted.
carstenklapp [Fri, 21 Feb 2003 20:56:12 +0000 (20:56 +0000)]
List the invalid pagenames which were deleted.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2627 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoFix DATA_PATH when PhpWiki installed in htdoc root.
dairiki [Fri, 21 Feb 2003 19:44:54 +0000 (19:44 +0000)]
Fix DATA_PATH when PhpWiki installed in htdoc root.
(Reported by Jochen Kalmbach.)

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2626 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoUpdate PHPWIKI_VERSION to 1.3.5pre.
dairiki [Fri, 21 Feb 2003 19:29:30 +0000 (19:29 +0000)]
Update PHPWIKI_VERSION to 1.3.5pre.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2625 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoMinor, nitpicky, currently inconsequential changes.
dairiki [Fri, 21 Feb 2003 18:07:14 +0000 (18:07 +0000)]
Minor, nitpicky, currently inconsequential changes.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2624 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoMore attempts to fix problems having to do with ambiguities
dairiki [Fri, 21 Feb 2003 05:09:24 +0000 (05:09 +0000)]
More attempts to fix problems having to do with ambiguities
between * for <li>s and * for <strong>.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2623 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoChanges for chached markup.
dairiki [Fri, 21 Feb 2003 04:26:55 +0000 (04:26 +0000)]
Changes for chached markup.

New methods:

WikiDB_Page::save():  A higher-level interface to createRevision().

WikiDB_PageRevision::getTransformedContent():  A higher-level interface
to getPackedContent().

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2622 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoFix <td> </td> nesting. (Was generating invalid HTML.)
dairiki [Fri, 21 Feb 2003 04:24:48 +0000 (04:24 +0000)]
Fix <td> </td> nesting. (Was generating invalid HTML.)

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2621 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoMinor robustness tweaks. (No substantive changes.)
dairiki [Fri, 21 Feb 2003 04:23:19 +0000 (04:23 +0000)]
Minor robustness tweaks.  (No substantive changes.)

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2620 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoAllow overriding of $user and $page.
dairiki [Fri, 21 Feb 2003 04:22:54 +0000 (04:22 +0000)]
Allow overriding of $user and $page.

Optimization: don't include WikiPlugin unless it's needed.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2619 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoMake this work for array-valued data. Make display of cached markup
dairiki [Fri, 21 Feb 2003 04:22:28 +0000 (04:22 +0000)]
Make this work for array-valued data.  Make display of cached markup
readable.  Some code cleanups.  (This still needs more work.)

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2618 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoAdjust button appearance.
dairiki [Fri, 21 Feb 2003 04:21:46 +0000 (04:21 +0000)]
Adjust button appearance.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2617 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoCSS for wikiblog, interwikimap.
dairiki [Fri, 21 Feb 2003 04:21:31 +0000 (04:21 +0000)]
CSS for wikiblog, interwikimap.
Adjust button appearance.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2616 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoSet pagetype to interwikimap
dairiki [Fri, 21 Feb 2003 04:20:30 +0000 (04:20 +0000)]
Set pagetype to interwikimap

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2615 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoBig refactor. Formatting now done by the stuff in PageType.php.
dairiki [Fri, 21 Feb 2003 04:20:09 +0000 (04:20 +0000)]
Big refactor. Formatting now done by the stuff in PageType.php.
Split the template into two separate ones: one for the add comment form,
one for comment display.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2614 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoComplete rewrite.
dairiki [Fri, 21 Feb 2003 04:18:06 +0000 (04:18 +0000)]
Complete rewrite.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2613 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoExtract pagetype from MIMEified page meta-data.
dairiki [Fri, 21 Feb 2003 04:17:46 +0000 (04:17 +0000)]
Extract pagetype from MIMEified page meta-data.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2612 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoDelete now irrelevant comment.
dairiki [Fri, 21 Feb 2003 04:17:13 +0000 (04:17 +0000)]
Delete now irrelevant comment.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2611 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoDon't NORETURN from redirect.
dairiki [Fri, 21 Feb 2003 04:16:51 +0000 (04:16 +0000)]
Don't NORETURN from redirect.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2610 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoCleanup redirect code. Request::redirect() is now usually a NORETURN.
dairiki [Fri, 21 Feb 2003 04:16:20 +0000 (04:16 +0000)]
Cleanup redirect code.  Request::redirect() is now usually a NORETURN.
Though it has a new argument you can use to get the old behavior.

Now we (almost) always buffer the output (not just when compressing).
This allows plugins, etc.. to set headers redirect, etc.. with less
headache.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2609 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoRemoved file. This has been unused for awhile now.
dairiki [Fri, 21 Feb 2003 04:15:30 +0000 (04:15 +0000)]
Removed file.  This has been unused for awhile now.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2608 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoNew WikiLink type 'if_known'. This gives linkified name if page
dairiki [Fri, 21 Feb 2003 04:14:52 +0000 (04:14 +0000)]
New WikiLink type 'if_known'.  This gives linkified name if page
exists, otherwise, just plain text.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2607 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoNew plugin to perform miscellaneous easy administrative tasks. (Right
dairiki [Fri, 21 Feb 2003 04:14:15 +0000 (04:14 +0000)]
New plugin to perform miscellaneous easy administrative tasks.  (Right
now, it just performs some debugging tasks having to do with the
markup cache.)

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2606 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoNew file. Template for class Alert in stdlib.php.
dairiki [Fri, 21 Feb 2003 04:13:18 +0000 (04:13 +0000)]
New file. Template for class Alert in stdlib.php.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2605 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoWikiPageName: fixes for new cached links.
dairiki [Fri, 21 Feb 2003 04:12:36 +0000 (04:12 +0000)]
WikiPageName: fixes for new cached links.

Alert: new class for displaying alerts.

ExtractWikiPageLinks and friends are now gone.

LinkBracketLink moved to InlineParser.php

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2604 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoMinor fixes for new cached markup.
dairiki [Fri, 21 Feb 2003 04:12:06 +0000 (04:12 +0000)]
Minor fixes for new cached markup.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2603 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoFixes for new cached markup.
dairiki [Fri, 21 Feb 2003 04:10:58 +0000 (04:10 +0000)]
Fixes for new cached markup.
Some minor code cleanups.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2602 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoChanges for cached markup.
dairiki [Fri, 21 Feb 2003 04:09:53 +0000 (04:09 +0000)]
Changes for cached markup.

Moved LinkBracketLink here from stdlib.php, since now this is only
place it should be used.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2601 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoChanges for cached markup.
dairiki [Fri, 21 Feb 2003 04:09:11 +0000 (04:09 +0000)]
Changes for cached markup.
Tweaks of list tightness logic.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2600 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoNew class DebugTimer in prepend.php to help report timing.
dairiki [Fri, 21 Feb 2003 04:08:26 +0000 (04:08 +0000)]
New class DebugTimer in prepend.php to help report timing.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2599 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoQuery-arg hook 'nocache' to disable markup cache.
dairiki [Fri, 21 Feb 2003 04:07:31 +0000 (04:07 +0000)]
Query-arg hook 'nocache' to disable markup cache.

Use 'nocache=1' to disable reading the cache, 'nocache=purge' to clear
the cache for the requested page.

Moved debug timing to prepend.php

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2598 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoBig changes to allow caching of marked up page text.
dairiki [Fri, 21 Feb 2003 04:06:45 +0000 (04:06 +0000)]
Big changes to allow caching of marked up page text.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2597 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoWorkaround for recent changes to WikiPlugin->getPlugin.
carstenklapp [Thu, 20 Feb 2003 18:13:38 +0000 (18:13 +0000)]
Workaround for recent changes to WikiPlugin->getPlugin.
Made admin restriction for viewing this page optional.
Now defaults to any user may view this page (mainly for PhpWiki Demo site).
Minor code changes & reformatting.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2596 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoNew experimental WikiPlugin for internal use only by PhpWiki developers.
carstenklapp [Thu, 20 Feb 2003 18:03:04 +0000 (18:03 +0000)]
New experimental WikiPlugin for internal use only by PhpWiki developers.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2595 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoWups again. Typo fix.
dairiki [Tue, 18 Feb 2003 23:13:40 +0000 (23:13 +0000)]
Wups again.  Typo fix.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2594 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoWups-- remove debuggin cruft.
dairiki [Tue, 18 Feb 2003 21:53:30 +0000 (21:53 +0000)]
Wups-- remove debuggin cruft.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2593 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoFix so that one can still link to wiki pages with # in their names.
dairiki [Tue, 18 Feb 2003 21:52:07 +0000 (21:52 +0000)]
Fix so that one can still link to wiki pages with # in their names.
(This was made difficult by the introduction of named tags, since
'[Page #1]' is now a link to anchor '1' in page 'Page'.

Now the ~ escape for page names should work: [Page ~#1].

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2592 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoSome fixes for nested nestled markup.
dairiki [Tue, 18 Feb 2003 20:24:13 +0000 (20:24 +0000)]
Some fixes for nested nestled markup.

The nestled markup starting delimiter can  now be immediately
preceded by any of

    - " ' / : ( { < _ = * (or white-space, of course)

If it is preceded by any of the balanced openers: ( { < _ = *,
the the starting delimiter can not be immediately followed
by the matching closer: ) } > _ = *.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2591 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agosplit_pagename():
dairiki [Tue, 18 Feb 2003 19:17:04 +0000 (19:17 +0000)]
split_pagename():
    Bug fix. 'ThisIsABug' was being split to 'This IsA Bug'.
    Cleanup up subpage splitting code.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2590 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoFixes/refactor of the tight/loose stuff.
dairiki [Tue, 18 Feb 2003 19:01:37 +0000 (19:01 +0000)]
Fixes/refactor of the tight/loose stuff.
This might work now.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2589 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoNew methods to help manipulate elements' CSS class membership.
dairiki [Tue, 18 Feb 2003 19:00:47 +0000 (19:00 +0000)]
New methods to help manipulate elements' CSS class membership.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2588 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoWups. Don't tighten headers and <hr>s.
dairiki [Tue, 18 Feb 2003 03:59:11 +0000 (03:59 +0000)]
Wups.  Don't tighten headers and <hr>s.

(We could, and it would be kind of neat, but it would involve
writing a lot of CSS to get it to work out reasonably.)

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2587 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoFinish tight/loose list refactor.
dairiki [Tue, 18 Feb 2003 02:49:20 +0000 (02:49 +0000)]
Finish tight/loose list refactor.

If this works, you should notice (if you have a modern CSS aware
browser) that the vertical spacing in lists should look more or
less like what you put in.  (E.g. If you put a blank line between two
list items, you'll get more space between them than if you don't.)

TO FIX: I've probably screwed up rendering in the older marginally
CSS-aware browsers, e.g. NS4.  I don't have NS4 installed right now
to play with.  I'll try to play around with that soon...

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2586 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoRefactoring BlockParser in an attempt to fix the tight vs loose list
dairiki [Mon, 17 Feb 2003 23:50:12 +0000 (23:50 +0000)]
Refactoring BlockParser in an attempt to fix the tight vs loose list
problem.

This now, I think, more-or-less works (as long as you have a modern
browser with good CSS support.)

This is a safety checkin, as I'm about the delete the
'Tightenable' logic from lib/BlockParser.php

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2585 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoFix bug. Couldn't unset attributes.
dairiki [Mon, 17 Feb 2003 20:32:36 +0000 (20:32 +0000)]
Fix bug. Couldn't unset attributes.
($e->setAttr('foo', false) should unset attribute 'foo'.)

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2584 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoFix bug. Regular <dl>s after table-style <dl>s cause problems.
dairiki [Mon, 17 Feb 2003 19:13:16 +0000 (19:13 +0000)]
Fix bug.  Regular <dl>s after table-style <dl>s cause problems.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2583 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoDisable plugin unless action='browse'.
dairiki [Mon, 17 Feb 2003 17:23:59 +0000 (17:23 +0000)]
Disable plugin unless action='browse'.

Add a header to the output, and adjust the HTML formatting a bit.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2582 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoFix form POST action URLS.
dairiki [Mon, 17 Feb 2003 06:08:25 +0000 (06:08 +0000)]
Fix form POST action URLS.
Fix hidden inputs.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2581 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoRefactor & code cleanup.
dairiki [Mon, 17 Feb 2003 06:06:33 +0000 (06:06 +0000)]
Refactor & code cleanup.

Added two new plugin arguments:

  min_age - only display pages which have been "deleted" for at
            least this many days.  (Use min_age=none to get all
            pages, even non-deleted ones listed.)

  max_age - automatically check the checkboxes of pages which
            have been "deleted" this many days or more.

("Deleted" means the current version of the page is empty.
For the most part, PhpWiki treats these "deleted" pages as
if they didn't exist --- but, of course, the PageHistory is
still available, allowing old versions of the page to be restored.)

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2580 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoRemove functions HiddenGets() and HiddenPosts().
dairiki [Mon, 17 Feb 2003 06:02:25 +0000 (06:02 +0000)]
Remove functions HiddenGets() and HiddenPosts().

These functions were evil.  They didn't check the request method,
so they often resulted in GET args being converted to POST args,
etc...

One of these is still used in lib/plugin/WikiAdminSelect.php,
but, so far as I can tell, that code is both broken _and_ it
doesn't do anything.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2579 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoFix form action URI and hidden inputs.
dairiki [Mon, 17 Feb 2003 05:58:42 +0000 (05:58 +0000)]
Fix form action URI and hidden inputs.

Eliminated "Sign In" button when javascript is enabled.
(It's unneccesary, and as it was there were two
identical "Sign In" buttons when javascript was disabled.)

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2578 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoNew method getPostURL() to get URL for use in form POST actions.
dairiki [Mon, 17 Feb 2003 05:56:26 +0000 (05:56 +0000)]
New method getPostURL() to get URL for use in form POST actions.

Method requiredAuthority(): add hook by which plugins can request
that PhpWiki request login for form POSTs.  (This is used by
my refactor of the WikiAdminRemove plugin which I will commit
shortly.)

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2577 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoFix so that submit buttons match the other wikiaction "buttons".
dairiki [Mon, 17 Feb 2003 05:53:35 +0000 (05:53 +0000)]
Fix so that submit buttons match the other wikiaction "buttons".

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2576 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoFix so that PageHistory will work when the current revision
dairiki [Mon, 17 Feb 2003 02:19:01 +0000 (02:19 +0000)]
Fix so that PageHistory will work when the current revision
of a page has been "deleted".

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2575 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoFix so that PageInfo will work when current version of page
dairiki [Mon, 17 Feb 2003 02:18:30 +0000 (02:18 +0000)]
Fix so that PageInfo will work when current version of page
has been "deleted".

Fix so that PageInfo will work on an old version of a page.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2574 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoFix so that action=diff will work when the most recent version
dairiki [Mon, 17 Feb 2003 02:17:31 +0000 (02:17 +0000)]
Fix so that action=diff will work when the most recent version
of a page has been "deleted".

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2573 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoRefactor the HTTP validator generation/checking code.
dairiki [Sun, 16 Feb 2003 20:04:48 +0000 (20:04 +0000)]
Refactor the HTTP validator generation/checking code.

This also fixes a number of bugs with yesterdays validator mods.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2572 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoWhen redirecting to a page, use an absolute URL.
dairiki [Sun, 16 Feb 2003 19:49:18 +0000 (19:49 +0000)]
When redirecting to a page, use an absolute URL.
This fixes a bug when redirecting from a sub-page (since,
in that case the redirect happens before the <base> element gets
sent.)

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2571 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoUpdate WikiDB timestamp when editing or deleting pages.
dairiki [Sun, 16 Feb 2003 19:47:17 +0000 (19:47 +0000)]
Update WikiDB timestamp when editing or deleting pages.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2570 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoNew function hash(). This is a helper, primarily for generating
dairiki [Sun, 16 Feb 2003 19:44:20 +0000 (19:44 +0000)]
New function hash().  This is a helper, primarily for generating
HTTP ETags.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2569 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoNew methods:
dairiki [Sun, 16 Feb 2003 19:43:10 +0000 (19:43 +0000)]
New methods:
  WikiDB::set($key, $val)
  WikiDB::get($key)
To support global meta-data.  Before you make use of these methods,
please consider that they are implemented in a somewhat
hackish manner, and are not likely to be very efficient.

New methods:
  WikiDB::getTimestamp()
  WikiDB::touch()
To support the notion of a global timestamp on the WikiDB.

In WikiDB_Page::set():
  Delete special magic for setting 'pref'.  Currently, this appears to
  be either unused or broken (since 'pref' seems to be set to a
  serialized value.)  In any case, this magic shouldn't be here.
  If you need special handling put it before the call
  to WikiDB_Page::set().

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2568 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoTypo fix.
dairiki [Sun, 16 Feb 2003 05:10:00 +0000 (05:10 +0000)]
Typo fix.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2567 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoStarting to fix handling of the HTTP validator headers, Last-Modified,
dairiki [Sun, 16 Feb 2003 05:09:43 +0000 (05:09 +0000)]
Starting to fix handling of the HTTP validator headers, Last-Modified,
and ETag.

Last-Modified was being set incorrectly (but only when DEBUG was not
defined!)  Setting a Last-Modified without setting an appropriate
Expires: and/or Cache-Control: header results in browsers caching
the page unconditionally (for a certain period of time).
This is generally bad, since it means people don't see updated
page contents right away --- this is particularly confusing to
the people who are editing pages since their edits don't show up
next time they browse the page.

Now, we don't allow caching of pages without revalidation
(via the If-Modified-Since and/or If-None-Match request headers.)
(You can allow caching by defining CACHE_CONTROL_MAX_AGE to an
appropriate value in index.php, but I advise against it.)

Problems:

  o Even when request is aborted due to the content not being
    modified, we currently still do almost all the work involved
    in producing the page.  So the only real savings from all
    this logic is in network bandwidth.

  o Plugins which produce "dynamic" output need to be inspected
    and made to call $request->addToETag() and
    $request->setModificationTime() appropriately, otherwise the
    page can change without the change being detected.
    This leads to stale pages in cache again...

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2566 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoNew member functions:
dairiki [Sun, 16 Feb 2003 04:55:54 +0000 (04:55 +0000)]
New member functions:

  Request::addToETag($key, $val)
  Request::hasETag()
  Request::setETagIsWeak()
  Request::setModificationTime()
  Request::setValidators()

These deal with setting the Last-Modified and ETag headers of the
HTTP response. They also parse and handle the conditional request
headers 'If-Modified-Since', 'If-Unmodified-Since', 'If-Match',
and 'If-None-Match'.

New helper class HTTP_ETag.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2565 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoNew functions:
dairiki [Sun, 16 Feb 2003 04:50:09 +0000 (04:50 +0000)]
New functions:
Rfc1123DateTime(), ParseRfc1123DateTime()
for converting unix timestamps to and from strings.

These functions produce and grok the time strings
in the format specified by RFC 2616 for use in HTTP headers
(like Last-Modified).

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2564 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoDocs (& demo) for RedirectTo plugin.
dairiki [Sat, 15 Feb 2003 23:56:05 +0000 (23:56 +0000)]
Docs (& demo) for RedirectTo plugin.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2563 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoUsability improvements for the RedirectTo plugin.
dairiki [Sat, 15 Feb 2003 23:32:57 +0000 (23:32 +0000)]
Usability improvements for the RedirectTo plugin.

(Mostly this applies when using RedirectTo with a page=OtherPage
argument to redirect to another page in the same wiki.)

(Most of these ideas are stolen verbatim from UseModWiki.)

 o Multiple redirects (PageOne -> PageTwo -> PageThree) not allowed.

 o Redirects are not activated except when action == 'browse'.

 o When redirections are disabled, (hopefully understandable)
   diagnostics are displayed.

 o A link to the redirecting page is displayed after the title
   of the target page.  If the user follows this link, redirects
   are disabled.  This allows for easy editing of the redirecting
   page.

FIXME: Stylesheets, and perhaps templates other than the defaults
will probably have to be updated before this works well in other
styles and/or themes.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2562 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoNew method WikiPlugin::disabled($message).
dairiki [Sat, 15 Feb 2003 23:25:48 +0000 (23:25 +0000)]
New method WikiPlugin::disabled($message).

For use when expansion of a plugin is disabled.
This displays a message (like WikiPlugin::error()), and also
displays the text of the plugin invocation.

See lib/plugins/RedirectTo.php for usage examples.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2561 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoFix for PHP warning (when host PHP does not have gzip support compiled in.)
dairiki [Sat, 15 Feb 2003 23:21:16 +0000 (23:21 +0000)]
Fix for PHP warning (when host PHP does not have gzip support compiled in.)

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2560 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoRedirect back to browse current version of page upon save,
dairiki [Sat, 15 Feb 2003 23:20:27 +0000 (23:20 +0000)]
Redirect back to browse current version of page upon save,
even when no changes were made.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2559 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoA couple of fixes so that this passes w3.org's CSS validator.
dairiki [Sat, 15 Feb 2003 03:13:58 +0000 (03:13 +0000)]
A couple of fixes so that this passes w3.org's CSS validator.
One's obviously a typo.  The other I'm not so sure about...

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2558 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoFix for WikiUser constructor API change.
dairiki [Sat, 15 Feb 2003 03:04:30 +0000 (03:04 +0000)]
Fix for WikiUser constructor API change.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2557 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoAdd id="logo-img" to the logo image.
dairiki [Sat, 15 Feb 2003 02:50:12 +0000 (02:50 +0000)]
Add id="logo-img" to the logo image.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2556 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoDon't use "Printer" style for media=screen.
dairiki [Sat, 15 Feb 2003 02:48:48 +0000 (02:48 +0000)]
Don't use "Printer" style for media=screen.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2555 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoFix for API change in WikiUser constructor.
dairiki [Sat, 15 Feb 2003 02:24:23 +0000 (02:24 +0000)]
Fix for API change in WikiUser constructor.

However it seems that the only code affected is this file is currently
unused.  I commented out the vestigal code --- if no one screams about
it, then whoever looks at it next can delete it.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2554 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoAPI Change! Explicit $request argument added to contructor for WikiUser.
dairiki [Sat, 15 Feb 2003 02:21:54 +0000 (02:21 +0000)]
API Change!  Explicit $request argument added to contructor for WikiUser.

This seemed the best way to fix a problem whereby the WikiDB
was being opened twice.  (Which while being merely inefficient
when using an SQL backend causes hangage when using a dba backend.)

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2553 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoWhen default language was English (at least), pgsrc was being
dairiki [Sat, 15 Feb 2003 02:18:04 +0000 (02:18 +0000)]
When default language was English (at least), pgsrc was being
loaded twice.

LimitedFileSet: Fix typo/bug. ($include was being ignored.)

SetupWiki(): Fix bugs in loading of $GenericPages.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2552 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoOutput newlines between content-less non-inline elements.
dairiki [Sat, 15 Feb 2003 02:14:52 +0000 (02:14 +0000)]
Output newlines between content-less non-inline elements.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2551 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoTheme::getCSS(): Add Default-Style HTTP(-eqiv) header in attempt
dairiki [Sat, 15 Feb 2003 01:59:47 +0000 (01:59 +0000)]
Theme::getCSS():  Add Default-Style HTTP(-eqiv) header in attempt
to fix default stylesheet selection on some browsers.
For details on the Default-Style header, see:
 http://home.dairiki.org/docs/html4/present/styles.html#h-14.3.2

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2550 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoAdded HTML::meta() for <meta> tag.
dairiki [Sat, 15 Feb 2003 01:54:19 +0000 (01:54 +0000)]
Added HTML::meta() for <meta> tag.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2549 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agofix by Steven D. Brewer <sbrewer@bio.umass.edu> to respect the $pages argument
rurban [Tue, 11 Feb 2003 09:34:34 +0000 (09:34 +0000)]
fix by Steven D. Brewer <sbrewer@bio.umass.edu> to respect the $pages argument

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2548 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoCommented-out debugging message.
carstenklapp [Sat, 1 Feb 2003 03:12:51 +0000 (03:12 +0000)]
Commented-out debugging message.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2547 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoNew plugin which provides entry forms to search any site listed in the InterWikiMap.
carstenklapp [Fri, 31 Jan 2003 23:04:44 +0000 (23:04 +0000)]
New plugin which provides entry forms to search any site listed in the InterWikiMap.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2546 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoNew plugin which provides entry forms to search any site listed in the InterWikiMap.
carstenklapp [Fri, 31 Jan 2003 22:56:21 +0000 (22:56 +0000)]
New plugin which provides entry forms to search any site listed in the InterWikiMap.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2545 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoAdded hook/hack to allow plugins to provide their own or override a PageType.
carstenklapp [Fri, 31 Jan 2003 22:53:39 +0000 (22:53 +0000)]
Added hook/hack to allow plugins to provide their own or override a PageType.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2544 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoBugfix: Plugin was redirecting to nonexistant local wiki page named
carstenklapp [Thu, 30 Jan 2003 02:46:46 +0000 (02:46 +0000)]
Bugfix: Plugin was redirecting to nonexistant local wiki page named
"ExternalSearch" instead of the invoked url. Reported by Arthur Chereau.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2543 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoUpdated my e-mail
carstenklapp [Wed, 29 Jan 2003 21:50:25 +0000 (21:50 +0000)]
Updated my e-mail

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2542 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoForgot to remove dead website link & use my correct e-mail address.
carstenklapp [Wed, 29 Jan 2003 21:49:18 +0000 (21:49 +0000)]
Forgot to remove dead website link & use my correct e-mail address.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2541 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoAdded note about www permissions for wiki_access.log.
carstenklapp [Wed, 29 Jan 2003 21:43:17 +0000 (21:43 +0000)]
Added note about www permissions for wiki_access.log.
Added links to Fink website.
Updated instructions for use with keychain-2.0.2.
Updated my e-mail address.
Other minor rewording.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2540 96ab9672-09ca-45d6-a79d-3d69d39ca109

21 years agoBugfix for &nbsp showing on diff page.
carstenklapp [Wed, 29 Jan 2003 19:17:37 +0000 (19:17 +0000)]
Bugfix for &nbsp showing on diff page.

git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2539 96ab9672-09ca-45d6-a79d-3d69d39ca109