dairiki [Wed, 7 Nov 2001 20:30:47 +0000 (20:30 +0000)]
Cleanups of quoting details in the searches.
This fixes, among other thing, SF bug #456863.
Depending on the backend searches for pages and/or page names
containing '/', '\', '%', and/or '_' all failed in some way
or another.
The fixes to lib/dbmlib.php are untested, but parallel those in
lib/dbalib.php, so should be okay.
The fixes in lib/pgsql.php, lib/msql.php, and lib/mssql.php are
also untested. They more or less parallel tested fixes in
lib/mysql.php, but it would probably be good if someone could
test them.
dairiki [Wed, 7 Nov 2001 18:58:14 +0000 (18:58 +0000)]
Fix SF bug #462168: hit count broken for pages with apostrophes in their names.
These fixes are untested, but they are entirely analogous to similar fixes
in mysql.php (which I have tested). Barring typos on my part, I think
they're unlikely to cause problems.
wainstead [Wed, 7 Nov 2001 03:23:24 +0000 (03:23 +0000)]
Added a new constant, DBM_FILE_TYPE, defaulting to 'gdbm'. It's
defined in config.php and used in dbalib.php. INSTALL now notes the
setting of this constant, and how a blank page can occur the first
time the user tries to view PhpWiki.
dairiki [Sun, 4 Nov 2001 03:46:10 +0000 (03:46 +0000)]
Fix bug reported by Roger Goun <roger@bcah.com>:
Wrap RCS $Id$ in call to rcs_id(). (In some cases (admin.php) we must
not emit any output until we've set some HTTP headers.)
Fixed bug: BackLinkSearchNextMatch needed the address of $res. It was
not incrementing $res[row] so it formed an infinite loop and phpwiki
would just time out.
wainstead [Sun, 26 Aug 2001 16:44:28 +0000 (16:44 +0000)]
Added PhpWikiAdministration to RecentChanges... this list should be
dynamic however. For that matter I'd rather have a totally automated
RecentChanges like UseMod does.
dairiki [Sat, 18 Aug 2001 05:09:09 +0000 (05:09 +0000)]
Fix SF bug #227748.
When using the flat-file back end, page names with slashes in them didn't work.
We fix this by urlencoding '%' '/' '\\' and ':' when they occur in page names.
WARNING: If any pages currently in your flat-file database contain any of
those characters in their titles, this change will make them invisible
to PhpWiki. You should back them up before upgrading, and restore them
after upgrading.
dairiki [Sat, 18 Aug 2001 03:57:27 +0000 (03:57 +0000)]
Fixed SF Bug #233898. (MySQL backend insensitive to case in page names.)
Note that this involves a change to the MySQL schema. A convenient
mysql script, schemas/update.mysql.1.2.0-1.2.1, is provided which can
be used to update your schema in-place.
dairiki [Sat, 18 Aug 2001 02:38:34 +0000 (02:38 +0000)]
Attempt to fix SF bug #413446.
I think this bug was due to using PHP's file() function to slurp in the
files (as an array of lines). The files, being serialized data, consist
of only one (sometimes very long) line. I think (at least in some PHPs)
this make the file() function unhappy.
Fixed to use fread() rather than file(). Also make sure to open files
in 'binary' mode.
dairiki [Sat, 18 Aug 2001 01:50:47 +0000 (01:50 +0000)]
Fixed SF Bug #414789
URLs like http://a.com/WikiWord were getting recognized as WikiWords
by ExtractWikiPageLinks, therefore resulting in erroneous entries
in the links table of those backends which have one.
dairiki [Sat, 18 Aug 2001 01:30:56 +0000 (01:30 +0000)]
Fix SF bug #418267.
Deeply nested lists resulted in a "Stack bounds exceeded in
SetHTMLOutputMode" fatal error. Now we just clamp the nesting
depth to 10 (eleven leading '*'s are treated as if there were
only ten of them.)
dairiki [Sat, 18 Aug 2001 00:35:10 +0000 (00:35 +0000)]
Added real back-link searches.
The pgsql and msql backends are completely untested at this point,
but they "should work". (I.e.: they're probably broken now.)
dairiki [Sat, 18 Aug 2001 00:34:27 +0000 (00:34 +0000)]
Added real back-link searches.
The pgsql and msql backends are completely untested at this point,
but they "should work". (I.e.: they're probably broken now.)
The msql back-link search is a bit buggy, and will not find links
if they are split between two records ("lines") in the page store.
(The proper remedy for this is to implement the links table in
the msql back end.)
Fix link to BuscarPagina.
(Reported by Aníbal Rojas <ard@valhallaproject.com>.)
Note the BuscarPagina should probably (I think) be renamed
to BuscarPágina. (PaginaPrincipal, as well as other pages
probably need to have accents added as well.)
dairiki [Thu, 1 Mar 2001 01:48:43 +0000 (01:48 +0000)]
SF Patch #404963:
Updated German pgsrc by Jörg Rathlev <jrathlev@users.sourceforge.net>
I've done some work to complete the german translation
of the files in locale/de/pgsrc/. I've also slightly
modified some of the already translated german pages.
The only pages I've not (yet) translated are GuterStil
(english GoodStyle - hard to do since it's only a
quotation), PhpWikiAdministration and WabiSabi. All
other pages are included in the attached zip archive.
wainstead [Thu, 1 Feb 2001 04:24:26 +0000 (04:24 +0000)]
Commented out the GetAllWikiPageNames and SetAllWikiPageNames
functions. They don't work yet... and as long as they are defined, the
lists of related pages appear at the bottom of all pages but have no
values in them.
wainstead [Thu, 1 Feb 2001 04:12:38 +0000 (04:12 +0000)]
Updated the opening statement (mSQL support isn't very new anymore ;-)
and explained why there are missing features vs. the other database
implementations.
wainstead [Wed, 31 Jan 2001 03:11:25 +0000 (03:11 +0000)]
Going back to version 1.5, this time with the signature Jan Hidder
used for InsertPage() that I removed, thus causing a bug. It feels
slower now though.
wainstead [Wed, 31 Jan 2001 02:18:26 +0000 (02:18 +0000)]
Fixed a bug in the loading of dbmlib.php; if the $whichdatabase was
set to 'dbm' a logic error always set it to 'dba', which had
unpredictable results with PHP3.
wainstead [Sat, 20 Jan 2001 21:52:21 +0000 (21:52 +0000)]
Added a new database configuration selection, 'default'. There is an
if/else that determines whether the user is running PHP3 or PHP4 and
sets $WhichDatabase to either 'dbm' or 'dba', and then the
corresponding library file (dbmlib.php or dbalib.php) is loaded.
wainstead [Fri, 19 Jan 2001 22:20:30 +0000 (22:20 +0000)]
Joel Uckelman <uckelman@iastate.edu> contributed code changes
including a new database library file 'dbalib.php' that uses the new
interface library for DBM files. The changes in config.php still
default to the dbmlib.php library for now, and the user must set
'dba' in config.php if they are using PHP 4.0.4 or later. Tested
this (just barely) on a newly built PHP 4.0.4p1 on my RH6.2 box.
ahollosi [Thu, 4 Jan 2001 18:34:15 +0000 (18:34 +0000)]
ZERO/SINGLE_DEPTH renamed into ZERO/NESTED_LEVEL
empty lines are now treated as tag '' (i.e. no tag) instead of '<p>'
normal text is now treated as '<p>' instead of tag ''
added and corrected some comments, some code cleanup
ahollosi [Sat, 30 Dec 2000 21:42:50 +0000 (21:42 +0000)]
cleaned up ParseAndLink() function, consequences:
- link['type']='unknwon' no longer exists (never happened anyway)
- link['type']='wiki' is now link['type']='wiki-simple'
- "phpwiki:" may appear in unnamed links as well
- LinkURL() function now takes second argument