]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/log
SourceForge/phpwiki.git
21 years agoFix security bugs in the RawHtml plugin.
dairiki [Mon, 17 Mar 2003 21:24:53 +0000 (21:24 +0000)]
Fix security bugs in the RawHtml plugin.

Change the default configuration to allow use of plugin, since
I believe the plugin is now safe for general use. (Raw HTML will only
work on locked pages.)

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

21 years agoBug fix: Fix linking of pages whose names contain a hash ('#').
dairiki [Thu, 13 Mar 2003 20:17:05 +0000 (20:17 +0000)]
Bug fix: Fix linking of pages whose names contain a hash ('#').

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

21 years agoHack so that (when using the IncludePage plugin) the including page shows
dairiki [Thu, 13 Mar 2003 18:57:56 +0000 (18:57 +0000)]
Hack so that (when using the IncludePage plugin) the including page shows
up in the BackLinks of the included page.

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

21 years agoRebuilt Makefile dep. Added a few more German translations.
carstenklapp [Wed, 12 Mar 2003 09:31:31 +0000 (09:31 +0000)]
Rebuilt Makefile dep. Added a few more German translations.

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

21 years agoBug fix. Wiki-markup like *0* (that's a zero) resulted in no output,
dairiki [Mon, 10 Mar 2003 19:51:03 +0000 (19:51 +0000)]
Bug fix.  Wiki-markup like *0* (that's a zero) resulted in no output,
since the string empty('0') is true.

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

21 years agoBug/typo fix. If you use the edit page to un/lock a page, it
dairiki [Mon, 10 Mar 2003 18:25:22 +0000 (18:25 +0000)]
Bug/typo fix.  If you use the edit page to un/lock a page, it
failed with: Fatal error: Call to a member function on a
non-object in editpage.php on line 136

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

21 years agoA few more if(!defined(...))'s
dairiki [Fri, 7 Mar 2003 22:47:01 +0000 (22:47 +0000)]
A few more if(!defined(...))'s

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

21 years agoFix/cleanup several more config options and messages.
dairiki [Fri, 7 Mar 2003 22:46:38 +0000 (22:46 +0000)]
Fix/cleanup several more config options and messages.
Fix password autogeneration and encryption.
Put a few more if(!defined('...'))'s in.

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

21 years agoWups. Didn't save the last of the previous changes before commit.
dairiki [Fri, 7 Mar 2003 21:52:34 +0000 (21:52 +0000)]
Wups.  Didn't save the last of the previous changes before commit.

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

21 years agoGlean page description (for meta tag) from CachedMarkup.
dairiki [Fri, 7 Mar 2003 21:46:55 +0000 (21:46 +0000)]
Glean page description (for meta tag) from CachedMarkup.
Since CachedMarkup has access to the parsed wiki-text, it doesn't have
to do it's own (flawed parsing) to find paragraphs, and convert links
to plain text, etc...

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

21 years agoNew feature: Automatic extraction of keywords (for the meta keywords tag)
dairiki [Fri, 7 Mar 2003 20:51:59 +0000 (20:51 +0000)]
New feature: Automatic extraction of keywords (for the meta keywords tag)
from Category* and Topic* links on each page.

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

21 years agoDisabled the ability to write the config file.
dairiki [Fri, 7 Mar 2003 06:31:16 +0000 (06:31 +0000)]
Disabled the ability to write the config file.

Having the configurator write the config file to the install
directory is a big security hole. It allows _anyone_ to write a working
index-user.php with, e.g., an admin username and password of their
own choosing.

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

21 years agoRemove redundant RCS ids. (From Klaus-Guenther Leiss).
dairiki [Fri, 7 Mar 2003 02:57:08 +0000 (02:57 +0000)]
Remove redundant RCS ids.  (From Klaus-Guenther Leiss).

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

21 years agoFileFinder::_get_include_path(): Add @ before ini_get('include_path')
dairiki [Fri, 7 Mar 2003 02:51:31 +0000 (02:51 +0000)]
FileFinder::_get_include_path(): Add @ before ini_get('include_path')
to suppress warnings.  (This needs more attention.)

FileFinder::isWindowsNT(): Check that php_uname is usable before using
it.  (This needs more attention.)

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

21 years agoForce redirect. (The code for generating the text below the redirect
dairiki [Fri, 7 Mar 2003 02:50:48 +0000 (02:50 +0000)]
Force redirect.  (The code for generating the text below the redirect
was broken anyway...)

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

21 years agoFixes for new javascript redirect.
dairiki [Fri, 7 Mar 2003 02:50:16 +0000 (02:50 +0000)]
Fixes for new javascript redirect.

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

21 years agoNew template to support Request::redirect() in lib/Request.php.
dairiki [Fri, 7 Mar 2003 02:49:48 +0000 (02:49 +0000)]
New template to support Request::redirect() in lib/Request.php.

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

21 years agoAdd option to prevent HTTP redirect.
dairiki [Fri, 7 Mar 2003 02:48:23 +0000 (02:48 +0000)]
Add option to prevent HTTP redirect.

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

21 years agoFix class DebugTimer so that it doesn't fail when posix_times() is not
dairiki [Fri, 7 Mar 2003 02:47:32 +0000 (02:47 +0000)]
Fix class DebugTimer so that it doesn't fail when posix_times() is not
available.

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

21 years agoOmit checks for safe_mode before set_time_limit(). Just prefix the
dairiki [Fri, 7 Mar 2003 02:46:57 +0000 (02:46 +0000)]
Omit checks for safe_mode before set_time_limit().  Just prefix the
set_time_limit() calls with @ so that they fail silently if not
supported.

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

21 years agofunction_usable(): New function.
dairiki [Fri, 7 Mar 2003 02:46:24 +0000 (02:46 +0000)]
function_usable(): New function.

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

21 years agoRename BASE_URL to PHPWIKI_BASE_URL. Lycos pre-defines BASE_URL (to
dairiki [Fri, 7 Mar 2003 02:45:51 +0000 (02:45 +0000)]
Rename BASE_URL to PHPWIKI_BASE_URL.  Lycos pre-defines BASE_URL (to
the wrong thing).

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

21 years agoGet SCRIPT_NAME from SCRIPT_URL if SCRIPT_NAME appears to be incorrect.
dairiki [Fri, 7 Mar 2003 02:44:29 +0000 (02:44 +0000)]
Get SCRIPT_NAME from SCRIPT_URL if SCRIPT_NAME appears to be incorrect.

If php_sapi_name() == 'cgi', default to USE_PATH_INFO = false.

Rename BASE_URL to PHPWIKI_BASE_URL.  Lycos pre-defines BASE_URL
(to the wrong thing).

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

21 years agoContent-Length computation seems to come up with the wrong length
dairiki [Fri, 7 Mar 2003 02:41:44 +0000 (02:41 +0000)]
Content-Length computation seems to come up with the wrong length
sometimes (on UK Lycos).  Disabled for now.

Request_SessionVars: Check that ini_get is usable before using it.

Request::redirect): Add option to prevent HTTP redirect.  Try to
"redirect" via sneaky JavaScript and <meta http-equiv="Refresh">.

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

21 years agoWikiRequest::requiredAuthorityForAction(): Allow anonymous action='search'.
dairiki [Fri, 7 Mar 2003 02:39:47 +0000 (02:39 +0000)]
WikiRequest::requiredAuthorityForAction(): Allow anonymous action='search'.

Mark ETag weak.  Should look more carefully at this.
When DEBUG is false a strong ETag may be safe, but for now,
take the paranoid approach.

Open WikiDB earlier, this seems to get around some bug in the
UK Lycos PHP interpreter (WikiDB connects fail if attempted from
too deep in a call stack?)

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

21 years agoMore HTML comment reduction patches by "Klaus-Guenter Leiss"
dairiki [Wed, 5 Mar 2003 21:38:15 +0000 (21:38 +0000)]
More HTML comment reduction patches by "Klaus-Guenter Leiss"
<Leiss.Klaus-Guenter@epost.de>

(With a few adjustments by me.  Any bugs are probably my fault.)

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

21 years agoPatches to minimize HTML comment verbosity by
dairiki [Tue, 4 Mar 2003 23:34:11 +0000 (23:34 +0000)]
Patches to minimize HTML comment verbosity by
Klaus-Guenter Leiss <LeissKG@web.de>

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

21 years agoAdd some missing config entries.
dairiki [Tue, 4 Mar 2003 20:01:03 +0000 (20:01 +0000)]
Add some missing config entries.

Fix code so that it produces valid XHTML.

Fix the show/hide section javascript.

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

21 years agoFix and cleanup lib/DB_Session.php.
dairiki [Tue, 4 Mar 2003 05:33:00 +0000 (05:33 +0000)]
Fix and cleanup lib/DB_Session.php.

Base64 encode session data for postgres.
Fix problems with use of closed database handles.

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

21 years agosess_date in the session table should be an INT, not a TIMESTAMP
dairiki [Tue, 4 Mar 2003 05:26:49 +0000 (05:26 +0000)]
sess_date in the session table should be an INT, not a TIMESTAMP

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

21 years agoFix and document the WIKIDB_NOCACHE_MARKUP config define.
dairiki [Tue, 4 Mar 2003 02:08:08 +0000 (02:08 +0000)]
Fix and document the WIKIDB_NOCACHE_MARKUP config define.

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

21 years agoFix to ensure absolute URL for logo in RSS recent changes.
dairiki [Tue, 4 Mar 2003 01:55:05 +0000 (01:55 +0000)]
Fix to ensure absolute URL for logo in RSS recent changes.

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

21 years agoOutput Content-Length HTTP header when possible.
dairiki [Tue, 4 Mar 2003 01:54:17 +0000 (01:54 +0000)]
Output Content-Length HTTP header when possible.

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

21 years agoInconsequential decrufting.
dairiki [Tue, 4 Mar 2003 01:53:30 +0000 (01:53 +0000)]
Inconsequential decrufting.

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

21 years agoMove call to $backend->optimize from WikiDB_Page::createRevision() to
dairiki [Tue, 4 Mar 2003 01:52:40 +0000 (01:52 +0000)]
Move call to $backend->optimize from WikiDB_Page::createRevision() to
WikiDB_Page::save.  Postgres doesn't like to optimize when the
tables are locked.

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

21 years agoBug fix for the postgres backend:
dairiki [Tue, 4 Mar 2003 01:49:27 +0000 (01:49 +0000)]
Bug fix for the postgres backend:
Base64_encode pagedata and versiondata, since these are stored in a TEXT
field, which is apparently not binary safe.

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

21 years agoDROP session table before creating.
dairiki [Tue, 4 Mar 2003 01:44:58 +0000 (01:44 +0000)]
DROP session table before creating.

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

21 years agoAdded fontpath (see PhpWiki:VisualWiki), tries to be smart about which OS.
carstenklapp [Mon, 3 Mar 2003 13:57:31 +0000 (13:57 +0000)]
Added fontpath (see PhpWiki:VisualWiki), tries to be smart about which OS.
(This plugin still doesn't work for me on OS X, but at least image files
are actually being created now in '/tmp/cache'.)

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

21 years agoUpdated from obsolete do_transform() function to TransformLinks().
carstenklapp [Sat, 1 Mar 2003 22:28:02 +0000 (22:28 +0000)]
Updated from obsolete do_transform() function to TransformLinks().
Fixes bug:
Fatal error: Call to undefined function: do_transform() in
phpwiki/themes/SpaceWiki/lib/RecentChanges.php on line 49

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

21 years agoClean up <br clear="all" style="clear: both;" /> tags.
dairiki [Thu, 27 Feb 2003 23:55:52 +0000 (23:55 +0000)]
Clean up <br clear="all" style="clear: both;" /> tags.

This rage was triggered by one in editpage.tmpl which used clear="both",
which is not valid HTML.   Then I figured might as well use a class for them
and make them all consistent.

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

21 years agoFix my breakage of CSS and sidebar RecentChanges output.
dairiki [Thu, 27 Feb 2003 23:23:38 +0000 (23:23 +0000)]
Fix my breakage of CSS and sidebar RecentChanges output.

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

21 years agoFixes invalid HTML generated by PageHistory plugin.
dairiki [Thu, 27 Feb 2003 22:48:44 +0000 (22:48 +0000)]
Fixes invalid HTML generated by PageHistory plugin.

(<noscript> is block-level and not allowed within <p>.)

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

21 years agoNew functions in HtmlElement:
dairiki [Thu, 27 Feb 2003 22:47:27 +0000 (22:47 +0000)]
New functions in HtmlElement:

JavaScript($js)
   Helper for generating javascript.

IfJavaScript($if_content, $else_content)
   Helper for generating
      <script>document.write('...')</script><noscript>...</noscript>
   constructs.

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

21 years agoJavascript fix.
dairiki [Thu, 27 Feb 2003 21:15:14 +0000 (21:15 +0000)]
Javascript fix.

Fix so that you can never have more than two checkboxes checked. (If this
happens, all but the current checkbox are unchecked.)

It used to be that one could view a PageHistory, check two boxes to view
a diff, then hit the back button.  (The originally checked two boxes are
still checked at this point.)  Checking a third box resulted in viewing
a diff between a quasi-random pair of versions selected from the three
which were selected.   Now clicking the third box results in the first
two being unchecked.

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

21 years agoDisable profiling output when DEBUG is defined but false.
dairiki [Thu, 27 Feb 2003 20:10:31 +0000 (20:10 +0000)]
Disable profiling output when DEBUG is defined but false.

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

21 years agoFix HTTP validator bug (Last-Modified times for pages with plugins
dairiki [Thu, 27 Feb 2003 20:02:47 +0000 (20:02 +0000)]
Fix HTTP validator bug (Last-Modified times for pages with plugins
were wrong.)

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

21 years agoFixes from Todd Mokros for linkUnknownWikiWord in MacOSX and Portland themes.
dairiki [Wed, 26 Feb 2003 23:59:48 +0000 (23:59 +0000)]
Fixes from Todd Mokros for linkUnknownWikiWord in MacOSX and Portland themes.

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

21 years agoWups. Delete disused cruft.
dairiki [Wed, 26 Feb 2003 22:32:06 +0000 (22:32 +0000)]
Wups.  Delete disused cruft.

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

21 years agoFix and refactor FrameInclude plugin (more or less).
dairiki [Wed, 26 Feb 2003 22:27:22 +0000 (22:27 +0000)]
Fix and refactor FrameInclude plugin (more or less).

(This should now generate valid HTML.  Woohoo!)

The output when using the Sidebar theme is ugly enough that it should
be considered broken.  (But the Sidebar theme appears pretty broken in
general right now.)

(Personal comment (not to be taken personally): I must say that I
remain unconvinced of the usefulness of this plugin.)

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

21 years agoPatch from Todd Mokros:
dairiki [Wed, 26 Feb 2003 17:17:52 +0000 (17:17 +0000)]
Patch from Todd Mokros:

This fixes "PHP Fatal error: Call to undefined function: gettag() in
lib/BlockParser.php", when including plugins in a list.

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

21 years agoNew action=create. Essentially the same as action=edit, except that if the
dairiki [Wed, 26 Feb 2003 03:40:22 +0000 (03:40 +0000)]
New action=create.  Essentially the same as action=edit, except that if the
page already exists, it falls back to action=browse.

This is for use in the "question mark" links for unknown wiki words
to avoid problems and confusion when following links from stale pages.
(If the "unknown page" has been created in the interim, the user probably
wants to view the page before editing it.)

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

21 years agoNew config settings in index.php to control cache control strictness.
dairiki [Wed, 26 Feb 2003 02:55:53 +0000 (02:55 +0000)]
New config settings in index.php to control cache control strictness.

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

21 years agoTuning/fixing of POST action URLs and hidden inputs.
dairiki [Wed, 26 Feb 2003 01:56:53 +0000 (01:56 +0000)]
Tuning/fixing of POST action URLs and hidden inputs.

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

21 years agoOnly zip pages with legal pagenames.
dairiki [Wed, 26 Feb 2003 01:56:05 +0000 (01:56 +0000)]
Only zip pages with legal pagenames.

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

21 years agoBug fix: for magic PhpWiki URLs, "lock page to enable link" message was
dairiki [Wed, 26 Feb 2003 00:39:30 +0000 (00:39 +0000)]
Bug fix: for magic PhpWiki URLs, "lock page to enable link" message was
being displayed at incorrect times.

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

21 years agoUse new checking functionality of class WikiPageName to find
dairiki [Wed, 26 Feb 2003 00:25:28 +0000 (00:25 +0000)]
Use new checking functionality of class WikiPageName to find
bad page names.

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

21 years agoMore/better/different checks for bad page names.
dairiki [Wed, 26 Feb 2003 00:10:26 +0000 (00:10 +0000)]
More/better/different checks for bad page names.

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

21 years agoAdd some sanity checking for pagenames.
dairiki [Tue, 25 Feb 2003 22:19:46 +0000 (22:19 +0000)]
Add some sanity checking for pagenames.

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

21 years agoFix so that SQL tables get unlocked upon SQL error.
dairiki [Tue, 25 Feb 2003 20:13:57 +0000 (20:13 +0000)]
Fix so that SQL tables get unlocked upon SQL error.

This prevents hanging the whole web/sql server when using
persistent SQL connections.

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

21 years agoAdded "See: " in front of url, so for browsers that do not support
carstenklapp [Tue, 25 Feb 2003 05:45:34 +0000 (05:45 +0000)]
Added "See: " in front of url, so for browsers that do not support
<iframe> at least there is an indication to the user that this
plugin is actually doing something while at the same time without
being (subjectively) too disruptive to page content.

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

21 years agoFix stupid typo.
dairiki [Mon, 24 Feb 2003 22:41:57 +0000 (22:41 +0000)]
Fix stupid typo.

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

21 years agoAttempts to fix auto-selection of printer CSS when printing.
dairiki [Mon, 24 Feb 2003 22:06:18 +0000 (22:06 +0000)]
Attempts to fix auto-selection of printer CSS when printing.
See new comments lib/Theme.php for more details.
Also see SF patch #669563.

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

21 years agoBug fix.
dairiki [Mon, 24 Feb 2003 22:04:45 +0000 (22:04 +0000)]
Bug fix.

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

21 years agoGet rid of unused method Request::debugVars().
dairiki [Mon, 24 Feb 2003 19:38:04 +0000 (19:38 +0000)]
Get rid of unused method Request::debugVars().

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

21 years agoAdded iframe title (bobby.org accessibility guidelines).
carstenklapp [Mon, 24 Feb 2003 14:34:44 +0000 (14:34 +0000)]
Added iframe title (bobby.org accessibility guidelines).
Simplified output for non-iframe and non-visual browsers (as suggested
by http://www.uwosh.edu/programs/accessibility/tutorial.html).

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

21 years agoFix "n bytes written" message when dumping HTML.
dairiki [Mon, 24 Feb 2003 02:05:43 +0000 (02:05 +0000)]
Fix "n bytes written" message when dumping HTML.

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

21 years agoBug fix. Don't need to urldecode pagenames in WikiDB_backend_file_iter.
dairiki [Mon, 24 Feb 2003 01:53:28 +0000 (01:53 +0000)]
Bug fix.  Don't need to urldecode pagenames in WikiDB_backend_file_iter.

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

21 years agoDon't use PHPWIKI_DIR unless it's defined.
dairiki [Mon, 24 Feb 2003 01:36:27 +0000 (01:36 +0000)]
Don't use PHPWIKI_DIR unless it's defined.
(Also typo/bugfix in SystemInfo plugin.)

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

21 years agoFirst argument of trigger_error must be a string (or stringable).
dairiki [Mon, 24 Feb 2003 01:18:19 +0000 (01:18 +0000)]
First argument of trigger_error must be a string (or stringable).

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

21 years agoUpdated to work with recent changes to WikiLink function (fix "==Object(wikipagename...
carstenklapp [Mon, 24 Feb 2003 00:56:53 +0000 (00:56 +0000)]
Updated to work with recent changes to WikiLink function (fix "==Object(wikipagename)==" for unknown wiki links).

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

21 years agoPHP's closing tag \?\> within // cvs log comments caused the trailing comments to...
carstenklapp [Mon, 24 Feb 2003 00:40:09 +0000 (00:40 +0000)]
PHP's closing tag \?\> within // cvs log comments caused the trailing comments to display as literal text on the PluginManager page.

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

21 years agoFix to allow empty labels for anchors. E.g. #[|Anchor 1] which should
dairiki [Sun, 23 Feb 2003 22:43:35 +0000 (22:43 +0000)]
Fix to allow empty labels for anchors.  E.g. #[|Anchor 1] which should
result in an invisible anchor.

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

21 years agoDisable currently broken plugin to prevent fatal PHP errors.
dairiki [Sun, 23 Feb 2003 20:10:48 +0000 (20:10 +0000)]
Disable currently broken plugin to prevent fatal PHP errors.
(Sorry.)

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

21 years agoFix for PHP warning.
dairiki [Sun, 23 Feb 2003 20:06:58 +0000 (20:06 +0000)]
Fix for PHP warning.

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

21 years agoFix for PHP warning.
dairiki [Sun, 23 Feb 2003 19:55:21 +0000 (19:55 +0000)]
Fix for PHP warning.

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

21 years agoFixes for SF bug #657661.
dairiki [Sun, 23 Feb 2003 18:58:42 +0000 (18:58 +0000)]
Fixes for SF bug #657661.

(Postgres' LIKE seems to always be case sensitive, but postgres has
the ILIKE operator for caseless matching.)

I suspect, but I'm not sure, that this might still be an issue
for the ADODB backend.  If anyone can check that out, please do.
(I don't have access to a postgres database for testing at present.)

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

21 years agoStupid typo/bug fix.
dairiki [Sun, 23 Feb 2003 03:37:05 +0000 (03:37 +0000)]
Stupid typo/bug fix.

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

21 years agoHackish fix for SF bug #622784.
dairiki [Sat, 22 Feb 2003 21:39:05 +0000 (21:39 +0000)]
Hackish fix for SF bug #622784.

(The root of the problem is clearly a PHP bug.)

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

21 years agoFix for SF bug #630700
dairiki [Sat, 22 Feb 2003 21:15:54 +0000 (21:15 +0000)]
Fix for SF bug #630700

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

21 years agoFixed SF bug #630747.
dairiki [Sat, 22 Feb 2003 21:06:10 +0000 (21:06 +0000)]
Fixed SF bug #630747.

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

21 years agoFixes for "Call-time pass by reference has been deprecated" errors.
dairiki [Sat, 22 Feb 2003 20:49:56 +0000 (20:49 +0000)]
Fixes for "Call-time pass by reference has been deprecated" errors.

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

21 years agoDelete unused (and unnecessary) sanify_input cruft.
dairiki [Sat, 22 Feb 2003 20:25:44 +0000 (20:25 +0000)]
Delete unused (and unnecessary) sanify_input cruft.

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

21 years agoFix comment regarding connecting to SQL server over a unix socket.
dairiki [Sat, 22 Feb 2003 19:43:50 +0000 (19:43 +0000)]
Fix comment regarding connecting to SQL server over a unix socket.

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

21 years agoIf DATA_PATH is not defined (by user in index.php), then use
dairiki [Sat, 22 Feb 2003 19:21:47 +0000 (19:21 +0000)]
If DATA_PATH is not defined (by user in index.php), then use
relative URLs to data.

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

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