rurban [Sun, 1 Feb 2004 09:14:11 +0000 (09:14 +0000)]
Started with Group_Ldap (not yet ready)
added new _AuthInfo plugin to help in auth problems (warning: may display passwords)
fixed some configurator vars
renamed LDAP_AUTH_SEARCH to LDAP_BASE_DN
changed PHPWIKI_VERSION from 1.3.8a to 1.3.8pre
USE_DB_SESSION defaults to true on SQL
changed GROUP_METHOD definition to string, not constants
changed sample user DBAuthParams from UPDATE to REPLACE to be able to
create users. (Not to be used with external databases generally, but
with the default internal user table)
fixed the IndexAsConfigProblem logic. this was flawed:
scripts which are the same virtual path defined their own lib/main call
(hmm, have to test this better, phpwiki.sf.net/demo works again)
rurban [Tue, 27 Jan 2004 23:25:51 +0000 (23:25 +0000)]
added new tables to mysql schema
fixed default DBAUthParam samples to match these
added group constants (look terrible, I'd prefer strings instead of constants)
rurban [Mon, 26 Jan 2004 09:18:00 +0000 (09:18 +0000)]
* changed stored pref representation as before.
the array of objects is 1) bigger and 2)
less portable. If we would import packed pref
objects and the object definition was changed, PHP would fail.
This doesn't happen with an simple array of non-default values.
* use $prefs->retrieve and $prefs->store methods, where retrieve
understands the interim format of array of objects also.
* simplified $prefs->get() and fixed $prefs->set()
* added $user->_userid and class '_WikiUser' portability functions
* fixed $user object ->_level upgrading, mostly using sessions.
this fixes yesterdays problems with loosing authorization level.
* fixed WikiUserNew::checkPass to return the _level
* fixed WikiUserNew::isSignedIn
* added explodePageList to class PageList, support sortby arg
* fixed UserPreferences for WikiUserNew
* fixed WikiPlugin for empty defaults array
* UnfoldSubpages: added pagename arg, renamed pages arg,
removed sort arg, support sortby arg
rurban [Sun, 25 Jan 2004 10:26:02 +0000 (10:26 +0000)]
fixed bug [ 541193 ] HTTP_SERVER_VARS are Apache specific
http://sourceforge.net/tracker/index.php?func=detail&aid=541193&group_id=6121&atid=106121
CGI and other servers than apache populate _ENV and not _SERVER
rurban [Sun, 25 Jan 2004 03:05:00 +0000 (03:05 +0000)]
First working version, but has some problems with the current main loop.
Implemented new auth method dispatcher and policies, all the external
_PassUser classes (also for ADODB and Pear DB).
The two global funcs UserExists() and CheckPass() are probably not needed,
since the auth loop is done recursively inside the class code, upgrading
the user class within itself.
Note: When a higher user class is returned, this doesn't mean that the user
is authorized, $user->_level is still low, and only upgraded on successful
login.
rurban [Sat, 24 Jan 2004 23:24:07 +0000 (23:24 +0000)]
Patch by Alec Thomas, allows Perl regular expressions in SiteMap exclude lists.
exclude=WikiWikiWeb,(?:Category|Topic).*
It is backwards compatible unless old exclude lists, and therefore Wiki
page names, contain regular expression characters.
carstenklapp [Fri, 26 Dec 2003 06:41:16 +0000 (06:41 +0000)]
Bugfix: Try to defer OS errors about session.save_path and ACCESS_LOG,
so they don't prevent IE from partially (or not at all) rendering the
page. This should help a little for the IE user who encounters trouble
when setting up a new PhpWiki for the first time.
carstenklapp [Sun, 21 Dec 2003 00:29:45 +0000 (00:29 +0000)]
Minor bugfix: Fixed broken debug argument.
Internal changes: Only create a DebugTimer when actually called for;
moved debug message out of page content and into deferred page error
notification via trigger_error. Memory management: Only include_once
lib/PageList when absolutely necessary (at this time, this will
probably only benefit the PluginManager as an incremental speedup &
slightly reduced memory).
carstenklapp [Sun, 14 Dec 2003 05:36:31 +0000 (05:36 +0000)]
Internal changes to prepare for an upcoming feature: Added some
conditions and alternate phrases (alternate wording of text srings
when referring to a non-existant page (i.e. WikiLink 'unknown')) when
calling the BackLinks plugin *within* a non-existant page, such as
from within an editpage or browse template while editing a new page.
carstenklapp [Fri, 12 Dec 2003 01:01:46 +0000 (01:01 +0000)]
New feature: Plugin to download page dumps of individual pages. In the
future this could be used as a rudimentary way to sync pages between
wikis.
Internal changes: enhanced and renamed from the experimental
_MailifyPage plugin.
carstenklapp [Fri, 12 Dec 2003 00:52:55 +0000 (00:52 +0000)]
New feature: Plugin to download page dumps of individual pages. In the
future this could be used as a rudimentary way to sync pages between
wikis.
Internal changes: enhanced and renamed from the experimental
_MailifyPage plugin.
carstenklapp [Wed, 10 Dec 2003 01:01:24 +0000 (01:01 +0000)]
New features: Also show plugin pages for localized variants.
Gracefully handle broken plugins in the plugins folder (such as other
lingering php files).
Bugfix: Cleaned up Php warnings related to oddities of UserPreference
plugin (whose default value contains an array).
Internal changes: Gave GoodVariableNames to the nightmarish
ones. Simplified some code with WikiLink 'if_known'.
carstenklapp [Tue, 9 Dec 2003 20:00:43 +0000 (20:00 +0000)]
Bugfix: The last BogoUserPrefs-bugfix prevented the admin from saving
prefs into his own homepage, fixed broken logic. Tightened up BogoUser
prefs saving ability by checking for true existance of homepage
(previously a page revision of 0 also counted as valid, again due to
somewhat flawed logic).
carstenklapp [Mon, 8 Dec 2003 22:43:30 +0000 (22:43 +0000)]
New experimental plugin to provide a different kind of
PageHistory. Functional as-is, but is in need of much cleanup and
refactoring. Probably very, very slow on wikis with many pages!
carstenklapp [Sun, 7 Dec 2003 20:35:26 +0000 (20:35 +0000)]
Bugfix: Concurrent updates broken since after 1.3.4 release: Fatal
error: Call to undefined function: gettransformedcontent() in
/home/groups/p/ph/phpwiki/htdocs/phpwiki2/lib/editpage.php on line
205.
carstenklapp [Sat, 6 Dec 2003 04:56:23 +0000 (04:56 +0000)]
Security bugfix (minor): Prevent BogoUser~s from saving extraneous
_pref object meta-data within locked pages.
Previously, BogoUser~s who signed in with a (valid) WikiWord such as
"HomePage" could actually save preferences into that page, even though
it was already locked by the administrator. Thus, any subsequent
WikiLink~s to that page would become prefixed with "that nice little"
UserIcon, as if that page represented a valid user.
Note that the admin can lock (even) non-existant pages as desired or
necessary (i.e. any DB page whose revision==0), to prevent the
arbitrary BogoUser from saving preference metadata into such a page;
for example, the silly WikiName "@qmgi`Vcft_x|" (that is the
\$examplechars presented in login.tmpl, in case it is not visible here
in the CVS comments).
To remove the prefs metadata from a page, the admin can use the
EditMetaData plugin, enter pref as the key, leave the value box empty
and then submit the change. For example:
(It seems a rethinking of WikiUserNew.php with its WikiUser and
UserPreferences classes is in order. Ideally the WikiDB would
transparently handle such a situation, perhaps BogoUser~s should
simply be restricted to saving preferences into a cookie until his/her
e-mail address has been verified.)
carstenklapp [Fri, 5 Dec 2003 20:54:14 +0000 (20:54 +0000)]
CSS tweaks: Removed the recently added border from definition lists
<dl>. It looks very bad with OldStyleMarkup, where dl~s were often
used to simply indent text.
carstenklapp [Fri, 5 Dec 2003 15:51:37 +0000 (15:51 +0000)]
Added note that use of the configurator is depreciated.
Enable localization/gettextification of $KeywordLinkRegexp. (Also, now
users not familiar with regex can more easily just edit the $keywords
array).
Added four new constants to define author and copyright link rel~s
used in html head. This makes it easier to run multiple wikis off of
one set of code.
Eliminated RECENT_CHANGES constant for RSS auto discovery because it's
another step to watch out for when running a non-english wiki. Now
simply defined as _("RecentChanges") in head.tmpl itself. Non-standard
wikis where the RecentChanges page has been named to something else
will have to modify this in head.tmpl (along with all other places the
word RecentChanges appears in the code, something that already would
have had to be done on such a wiki anyway).
Added a little more info and instructions to flesh out:
DEBUG, WIKI_NAME, ADMIN_USER, $DisabledActions, $DBParams, CHARSET.
A few typos and spelling mistakes corrected, and some text rewrapped.
carstenklapp [Fri, 5 Dec 2003 15:36:39 +0000 (15:36 +0000)]
Improvements: to make it easier to run multiple wikis off of one set
of code, urls for link rel author and copyright now defined in
index.php.
Bugfix: updated language meta tag to use DEFAULT_LANGUAGE constant
instead of old LANG global.
Internal change: Eliminated RECENT_CHANGES constant from RSS link,
just use the easily localizable _("RecentChanges").
Typo fixed.
carstenklapp [Fri, 5 Dec 2003 01:32:28 +0000 (01:32 +0000)]
New feature: Easier to run multiple wiks off of one set of code. Name
your logo and signature image files "YourWikiNameLogo.png" and
"YourWikiNameSignature.png" and put them all into
themes/default/images. YourWikiName should match what is defined as
WIKI_NAME in index.php. In case the image is not found, the default
shipped with PhpWiki will be used.
carstenklapp [Thu, 4 Dec 2003 19:33:30 +0000 (19:33 +0000)]
Bugfix: Under certain PhpWiki installations (such as the PhpWiki at
SF), the user was unable to select a theme other than the server's
default. (Use the more robust Theme::findFile instead of PHP's
file_exists function to detect installed themes).
carstenklapp [Wed, 3 Dec 2003 21:45:48 +0000 (21:45 +0000)]
Added admin user, password user, and preference classes. Added
password checking functions for users and the admin. (Now the easy
parts are nearly done).
carstenklapp [Wed, 3 Dec 2003 02:09:26 +0000 (02:09 +0000)]
Minor new feature: Added 'PurgeHtmlCache' "convenience" button for the
admin and for everyone when DEBUGging, to purge html cache for only
the current page. (Admin can still purge the html cache for all pages
in PhpWikiAdministration).
carstenklapp [Tue, 2 Dec 2003 05:46:36 +0000 (05:46 +0000)]
Complete rewrite of WikiUser.php.
This should make it easier to hook in user permission groups etc. some
time in the future. Most importantly, to finally get UserPreferences
fully working properly for all classes of users: AnonUser, BogoUser,
AdminUser; whether they have a NamesakePage (PersonalHomePage) or not,
want a cookie or not, and to bring back optional AutoLogin with the
UserName stored in a cookie--something that was lost after PhpWiki had
dropped the default http auth login method.
Added WikiUser classes which will (almost) work together with existing
UserPreferences class. Other parts of PhpWiki need to be updated yet
before this code can be hooked up.
carstenklapp [Mon, 1 Dec 2003 22:23:01 +0000 (22:23 +0000)]
Bugfix: UserPreferences are no longer clobbered when signing in after
the previous session has ended (i.e. user closed browser then signed
in again). This is still a bit of a mess, and the preferences do not
take effect until the next page browse/link has been clicked.