]>
CyberLeo.Net >> Repos - SourceForge/phpwiki.git/log
dairiki [Thu, 8 Nov 2001 16:26:08 +0000 (16:26 +0000)]
New file.
For people with (suitably configured) apache servers, this sets some
of PHP's configuration variables to safer values. In particular,
register_globals and allow_url_fopen are turned off.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@619
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Thu, 8 Nov 2001 16:02:40 +0000 (16:02 +0000)]
Move admin/removepage.php to lib/removepage.php.
(Removepage.php was the only file in admin/ which was part
of the main phpwiki app.)
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@618
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Thu, 8 Nov 2001 16:00:39 +0000 (16:00 +0000)]
For security add .htaccess files to subdirectories.
For people with (suitably configured) apache web servers, these
will deny direct web access to the files in the subdirectories:
lib, locale, pgsrc, schemas, and templates.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@617
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Thu, 8 Nov 2001 15:47:31 +0000 (15:47 +0000)]
This is obsolete. Deleted.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@616
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
riessen [Thu, 8 Nov 2001 11:01:16 +0000 (11:01 +0000)]
extended the functionality of the cvs backend, extended the unit test
for the backend. have yet to start on th
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@615
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Thu, 8 Nov 2001 02:01:02 +0000 (02:01 +0000)]
New page. This one show all recent edits.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@614
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Wed, 7 Nov 2001 22:27:54 +0000 (22:27 +0000)]
Added note about creating a HomePage before making a zip dump.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@612
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Wed, 7 Nov 2001 21:12:47 +0000 (21:12 +0000)]
Fix quoting of search expressions. (Searches for words containing
'%', '\', or '_' were broken prior to this fix.)
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@610
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Tue, 6 Nov 2001 17:13:22 +0000 (17:13 +0000)]
Fix typo.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@600
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Mon, 29 Oct 2001 21:08:09 +0000 (21:08 +0000)]
Fixes based on SF Patch #471014. Detect when protocol is https rather than
http, and adjust SERVER_URL appropriately.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@592
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Mon, 29 Oct 2001 20:43:18 +0000 (20:43 +0000)]
(Slightly modified) SF Patch #473466 by <ax@condat.de>.
Fixes to work on windows systems where the path separator is ';'
rather than ':'.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@591
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Mon, 29 Oct 2001 19:34:27 +0000 (19:34 +0000)]
Explicitly set auto_redirect=0 in TitleSearch form.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@590
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Mon, 29 Oct 2001 19:31:11 +0000 (19:31 +0000)]
Title and full-text searches are now handled by plug-ins.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@589
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Mon, 29 Oct 2001 18:41:11 +0000 (18:41 +0000)]
Fix SF bug #473493: Need to include lib/template.php before calling
GeneratePage(). (Patch from Steven Murdoch.)
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@588
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Mon, 29 Oct 2001 18:24:26 +0000 (18:24 +0000)]
Fix SF Bug #473499: Diff from page history always diffs HomePage when
USE_PATH_INFO is false. (Patch from Steven Murdoch.)
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@587
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Mon, 29 Oct 2001 17:58:37 +0000 (17:58 +0000)]
Fix SF bug #468595: Can not unlock pages.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@586
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Mon, 29 Oct 2001 17:57:24 +0000 (17:57 +0000)]
Cleanup to get rid of PHP warning.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@585
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
riessen [Mon, 1 Oct 2001 21:58:32 +0000 (21:58 +0000)]
unit test for the cvs backend class
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@584
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
riessen [Mon, 1 Oct 2001 21:55:54 +0000 (21:55 +0000)]
initial implementation of a cvs backend ...
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@583
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
riessen [Fri, 28 Sep 2001 14:28:22 +0000 (14:28 +0000)]
first skeleton version of the cvs
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@582
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Fri, 21 Sep 2001 14:41:33 +0000 (14:41 +0000)]
Fix the fix: fun with regexps. (minor).
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@577
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Fri, 21 Sep 2001 01:04:54 +0000 (01:04 +0000)]
Updated assert_text. I think the version of httpunit I developed against
was different in its output.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@576
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Thu, 20 Sep 2001 21:33:09 +0000 (21:33 +0000)]
Simple test to verify text appears in the source of a page.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@575
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Thu, 20 Sep 2001 20:55:20 +0000 (20:55 +0000)]
Three simple tests.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@574
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Thu, 20 Sep 2001 20:53:19 +0000 (20:53 +0000)]
Given an input file, generate a Java source file.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@573
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Thu, 20 Sep 2001 20:52:22 +0000 (20:52 +0000)]
This Perl script generates a Makefile and a build.xml for ant, based on the available input files in the tests directory.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@572
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Thu, 20 Sep 2001 19:09:26 +0000 (19:09 +0000)]
_pear_notice_filter: Another minor fix (this time for windows.)
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@571
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Thu, 20 Sep 2001 18:26:14 +0000 (18:26 +0000)]
Workaround for apparent bug in some versions of PHP (notably the
PHP 4.0.6 which is on SourceForge's project web server.)
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@570
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Thu, 20 Sep 2001 18:25:15 +0000 (18:25 +0000)]
_pear_notice_filter(): minor fix.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@569
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Wed, 19 Sep 2001 19:20:30 +0000 (19:20 +0000)]
Search some standard locations for PEAR library code if DB.php is
not found in PHP's include_path.
Added some workarounds for a bug in the PEAR DB code which ships
with PHP 4.0.6.
(I have now tested the MySQL backend with PEAR code from PHP 4.0.4pl1,
PHP 4.0.5 and PHP 4.0.6. Only the 4.0.6 code is buggy. With the new
fixes, all three versions seem to work fine. The bug is reported
to be fixed in the CVS version of the PHP source code.)
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@568
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Wed, 19 Sep 2001 19:16:27 +0000 (19:16 +0000)]
New file lib/FileFinder.php with utility code to help find source files.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@567
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Wed, 19 Sep 2001 19:12:16 +0000 (19:12 +0000)]
Added note about the possible need to set session.save_path.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@566
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Wed, 19 Sep 2001 03:54:28 +0000 (03:54 +0000)]
msql is not likely to be supported by DB.php, the demand is minimal, msql is going throught a revision anyway, etc. etc.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@565
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Wed, 19 Sep 2001 03:44:53 +0000 (03:44 +0000)]
Oops. I changed the directory for dbm files and committed it by
accident. Careless.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@564
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Wed, 19 Sep 2001 03:24:36 +0000 (03:24 +0000)]
Updated the "emacs local variables" blocks.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@563
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Wed, 19 Sep 2001 02:58:24 +0000 (02:58 +0000)]
Minor cleanup.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@562
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Wed, 19 Sep 2001 02:58:00 +0000 (02:58 +0000)]
Fixed a couple bugs having to do with file uploads, and zip archive
unzipping.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@561
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Wed, 19 Sep 2001 02:36:24 +0000 (02:36 +0000)]
Added new local variables list; reformatted leading whitespace.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@560
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Wed, 19 Sep 2001 02:27:50 +0000 (02:27 +0000)]
Testing latest Local Variables setting. I stripped all leading white
space and then did an indent-region.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@559
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Tue, 18 Sep 2001 21:26:31 +0000 (21:26 +0000)]
Updated info for posting patches, bugs and getting support.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@558
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Tue, 18 Sep 2001 21:20:30 +0000 (21:20 +0000)]
Added a CVS id tag.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@557
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Tue, 18 Sep 2001 19:19:05 +0000 (19:19 +0000)]
Jeff's hacks II, continued:
More new files which I neglected to add during the previous commit.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@556
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Tue, 18 Sep 2001 19:16:24 +0000 (19:16 +0000)]
Jeff's hacks II.
This is a major change, to say the least. Some highlights:
o Completely new database API.
WARNING: all database schemas (currently MySQL, Postgres and DBA
support is working) use completely revised schema, so you must
start this new code with a new blank database...
o WikiPlugins
o New template engine.
In addition, some more incremental changes:
o Cascading Style Sheets reworked.
o Expanded syntax for text search: e.g. "wiki OR wacky AND NOT page".
o PhpWiki should now work with register_globals off. (Security issue.)
o Edit preview button.
(and probably more, which I'm forgetting about now.)
Much of this code is still in a state of flux (particularly
the new template engine code, and to a lesser extent the API
for the plugins.)
Feel free to play and hack on this, just be warned that some of it may
still change quite a bit...
See pgsrc/ReleaseNotes for a few more notes.
And feel free to post questions or comments either publicly on
<phpwiki-talk@lists.sourceforge.net>, or privately, to
<dairiki@dairiki.org>.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@555
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Tue, 18 Sep 2001 18:20:59 +0000 (18:20 +0000)]
Merged back some stuff which inadvertently (I think) got tossed during
the last edit.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@553
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Sun, 16 Sep 2001 21:31:19 +0000 (21:31 +0000)]
Mispelled Administer.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@551
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Sun, 16 Sep 2001 21:30:50 +0000 (21:30 +0000)]
Added link to PhpWikiAdministration. This is really for the person who
first installs PhpWiki, because we've gotten a lot of questions about
this. I would think most people will remove this link when they
personalize the HomePage, so putting it here should be fine.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@550
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Sun, 26 Aug 2001 17:00:50 +0000 (17:00 +0000)]
Fixed some bugs in the page source in the "Emphasis" section.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@545
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Tue, 14 Aug 2001 21:41:10 +0000 (21:41 +0000)]
(WikiUser::getPreferences): More fixes to address PHP warnings.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@534
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Sun, 12 Aug 2001 23:57:37 +0000 (23:57 +0000)]
Undefined links will now have a question mark at the start instead of
at the end of the link; this idea comes from the book The Wiki Way and
it's supposed to be a bit clearer to the user.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@533
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Thu, 9 Aug 2001 16:21:44 +0000 (16:21 +0000)]
Fix for PHP warning: "argument passed to unserialize() is not an string".
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@532
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Fri, 20 Jul 2001 17:40:12 +0000 (17:40 +0000)]
Added support for bogo-logins.
One can now "login" using any WikiWord as a user ID.
(Unless logging in as the admin user, any password will work.)
Currently, the sole effect of logging in is that the
the logged-in user ID is recorded as the author of any
page edits. Thus, "logging in" allows one to control
the author which appears in RecentChanges and the page
info display.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@531
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Fri, 20 Jul 2001 17:29:43 +0000 (17:29 +0000)]
Initial file for an abstract base class. For now I copy/pasted the
methods suggested in WikiDatabase
(http://phpwiki.sourceforge.net/phpwiki/index.php) as a starting
point, though there were a few that were undecided and I left those
out.
At least for now the class can support retrievePage() and insertPage()
and a few other basic methods, so rudimentary work can start.
The flowerbox reads:
/*
* Abstract base class for the database used by PhpWiki.
* This should be extended by classes for DB/dbx, dba and
* flat file.
*/
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@530
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
uckelman [Wed, 18 Jul 2001 04:59:47 +0000 (04:59 +0000)]
Changed PostgreSQL db library and schema to work with versioning, maybe.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@529
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
uckelman [Wed, 18 Jul 2001 04:56:14 +0000 (04:56 +0000)]
More cosmetic changes... wow did I not follow formating conventions the
first time around.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@528
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
uckelman [Wed, 18 Jul 2001 01:06:29 +0000 (01:06 +0000)]
Minor cosmetic changes (removed some hard tabs).
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@527
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Tue, 17 Jul 2001 15:58:28 +0000 (15:58 +0000)]
Bug fix: ..._wikilinks => ..._links.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@525
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Sun, 15 Jul 2001 16:03:26 +0000 (16:03 +0000)]
Updated the table names.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@524
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Sun, 15 Jul 2001 15:49:44 +0000 (15:49 +0000)]
Changed one line: lib/config.php to index.php.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@523
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Sun, 15 Jul 2001 15:47:59 +0000 (15:47 +0000)]
Fixed the table names. Here is an example of duplicate information,
where the table names are stored both in schema.mysql and
mysql.php. Of course I failed to notice this and the nightly build was
broken. Task #34376.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@522
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Thu, 12 Jul 2001 03:49:05 +0000 (03:49 +0000)]
Added a comment regarding the table name prefix as a precaution to
admins who set up alpha versions of 1.3.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@521
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Thu, 12 Jul 2001 03:25:11 +0000 (03:25 +0000)]
Oops: fixed a typo just now.
Updated table names so all are prefaced with 'phpwiki_'. This is not
tested with Postgresql yet though.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@520
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Thu, 12 Jul 2001 03:24:18 +0000 (03:24 +0000)]
Updated table names so all are prefaced with 'phpwiki_'. This is not
tested with Postgresql yet though.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@519
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Thu, 12 Jul 2001 03:21:35 +0000 (03:21 +0000)]
I changed the table names in the schema so all are prefaced with phpwiki_.
I updated index.php (where the config info is) as well; seems to test OK.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@518
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Sat, 7 Jul 2001 17:44:25 +0000 (17:44 +0000)]
Got fooled by an IF with no braces.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@517
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Sat, 7 Jul 2001 17:34:52 +0000 (17:34 +0000)]
Reformatted the code by hand to PEAR standards. Well, mostly by
hand. php-mode doesn't like variable assignments that span several
lines like:
$html = "<P><B>"
. sprintf(gettext ("Searching for \"%s\" ....."),
htmlspecialchars($searchterm))
. "</B></P>\n";
I have to indent this by hand.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@516
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
uckelman [Tue, 26 Jun 2001 18:14:41 +0000 (18:14 +0000)]
Removed EditCopy link.
Removed minor edit code, but I will be adding it back Real Soon(tm).
Added ###IF !CURRENT### block to notify user when editing an archived page.
Added ###CURRENT_VERSION### to handle concurrent edit checking.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@515
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
uckelman [Tue, 26 Jun 2001 18:13:00 +0000 (18:13 +0000)]
Edited footer links slightly to allow for page versioning.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@514
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
uckelman [Tue, 26 Jun 2001 18:08:32 +0000 (18:08 +0000)]
lib/editpage.php
- Added $version to RetrievePage calls.
- Removed EditCopy, since it's no longer needed.
lib/loadsave.php
- Changed call to InsertPage to ReplaceCurrentPage.
- Changed call to SaveCopyToArchive to SavePageToArchive.
- Added $version to RetrievePage calls.
lib/savepage.php
- Changed call to InsertPage to ReplaceCurrentPage.
- Changed call to SaveCopyToArchive to SavePageToArchive.
- All old versions of pages are now saved to archive.
- Added $version to RetrievePage calls.
lib/stdlib.php
- Changed call to InsertPage to ReplaceCurrentPage.
- Added $version to RetrievePage call.
- Added $WikiPageStore as global in GeneratePage.
- Added CURRENT as _iftoken. This is needed so users can edit from archived pages, but still be prevented from completing their edit if the current page version changes while they are editing. VERSION doesn't work for this anymore, since the version being edited might not be CURRENT.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@513
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
uckelman [Tue, 26 Jun 2001 18:04:54 +0000 (18:04 +0000)]
Added $version to RetrievePage call.
Added code to determine which pagestore to check when displaying pages, since user could be requesting something from the archive.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@512
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
uckelman [Tue, 26 Jun 2001 18:03:41 +0000 (18:03 +0000)]
Added $version to RetrievePage calls.
Changed to recognize $ver1 and $ver2 in URLs to allow diffs of aribtrary page versions.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@511
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
uckelman [Tue, 26 Jun 2001 18:02:43 +0000 (18:02 +0000)]
This is a near total rewrite of this file. It is responsible for displaying all of the radio buttons and version listing now.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@510
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
uckelman [Tue, 26 Jun 2001 18:01:01 +0000 (18:01 +0000)]
Lots of changes here:
- Added $clobber as argument to InsertPage. If $clobber, then use 'replace '; otherwise use 'insert'i. Pages going into the current store should clobber, but pages going into the archive should not. (Assuming that an unlimited number of pages are kept. I still need to implement archive limiting...)
- Created function ReplaceCurrentPage.
- Moved link updating from InsertPage to ReplaceCurrentPage.
- Renamed SaveCopyToArchive to SavePageToArchive.
- Created function RetrievePageVersions. Returns an arary of page hashes that contains all versions of the specified page.
- Added $version as argument to RetrievePage. It needs to know which version to get. Version 0 (zero)is magic, and always refers to the current version.
- Created function GetMaxVersionNumber. This is used mostly to determine which version to get for the diffs against current pages.
- Created function IsVersionInWiki.
- Created function IsVersionInArchive.
- Created function SelectStore. Given a page name and a version, this function returns the store where that page resides.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@509
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
uckelman [Tue, 26 Jun 2001 17:51:30 +0000 (17:51 +0000)]
Changed primary key to (pagename, version) in table archive to allow muliple pages with the same name.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@508
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Tue, 26 Jun 2001 17:23:59 +0000 (17:23 +0000)]
Added bit about following the PEAR coding standards; provided link;
made sure the Wiki formatting was correct.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@507
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Fri, 22 Jun 2001 21:52:06 +0000 (21:52 +0000)]
Corrected the URL for php-mode. I use the one from ontosys.com, but
there is another from sourceforge.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@506
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Fri, 22 Jun 2001 21:35:44 +0000 (21:35 +0000)]
Added bit about Emacs mode, where to get it, how to add it to your
.emacs file, and a request for Vim info.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@505
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Fri, 22 Jun 2001 21:27:55 +0000 (21:27 +0000)]
Same as dbmlib.php: ran indent-region on whole buffer, corrected
missed spots, untabify.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@504
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Fri, 22 Jun 2001 21:24:40 +0000 (21:24 +0000)]
Converted white space only; I ran indent-region on the whole buffer in
Emacs while in PHP mode; then I hunted through the file for any
inconsistencies (there were a couple), then ran untabify on the whole
buffer. This is largely what the code style should look like.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@503
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Thu, 31 May 2001 17:48:05 +0000 (17:48 +0000)]
Re-make *.{po,mo} files.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@499
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Thu, 31 May 2001 17:46:58 +0000 (17:46 +0000)]
Dutch translation updates by Jan Nieuwenhuizen <janneke@gnu.org>.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@498
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Thu, 31 May 2001 17:45:41 +0000 (17:45 +0000)]
Missing periods added by Jan Nieuwenhuizen <janneke@gnu.org>.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@497
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Thu, 31 May 2001 17:45:24 +0000 (17:45 +0000)]
Documentation fix (phpwiki: URLs) (per request by Jan).
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@496
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Thu, 31 May 2001 17:43:05 +0000 (17:43 +0000)]
Gettext()ification of more strings, by Jan Nieuwenhuizen <janneke@gnu.org>
(with a few fixes by me.)
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@495
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Thu, 31 May 2001 17:41:55 +0000 (17:41 +0000)]
Minor fix to cleanup "Undefined variable: time" notice.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@494
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Thu, 31 May 2001 17:39:02 +0000 (17:39 +0000)]
Revert $LANG back to being a global rather than an environment variable
(as per patches from Jan Nieuwenhuizen <janneke@gnu.org>.)
Use constants LC_ALL (&c) rather than literal "LC_ALL" as first
argument to setlocale().
Define constants LC_ALL and LC_CTYPE if needed (for PHP < 4.0.5).
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@493
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Thu, 31 May 2001 17:35:32 +0000 (17:35 +0000)]
New file: beginnings of coding style notes.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@492
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Mon, 21 May 2001 17:28:44 +0000 (17:28 +0000)]
Add Italian translations by Marco Milanesi <kpanic@ada2.unipv.it>.
I (GTD) munged the template files so that they more-or-less work
with the current alpha code.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@491
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Mon, 21 May 2001 17:26:11 +0000 (17:26 +0000)]
Re-make in locale.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@490
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Mon, 9 Apr 2001 19:31:49 +0000 (19:31 +0000)]
Restrict the conditions under which we try to load initial page
contents from pgsrc.
Now we only load pgsrc iff the user is attempt to browse the HomePage.
This allows some hope of fixing things if the configured pgsrc, e.g.
doesn't include a HomePage. (Without this patch, one gets stuck in a
loop --- every attempt to do anything with the wiki results in a
load of pgsrc.)
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@486
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Mon, 9 Apr 2001 19:28:52 +0000 (19:28 +0000)]
Make tables left aligned, rather than centered.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@485
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Sat, 7 Apr 2001 17:17:11 +0000 (17:17 +0000)]
Removed extraneous parenthesis.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@484
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Sat, 7 Apr 2001 17:13:29 +0000 (17:13 +0000)]
More munging of the translated pgsrc and templates.
Changes include:
Converting old markup (tab-delimited lists, triple-quote bold.)
Fixing templates so that they work with the current code.
Fixing/deleting/or munging (some of the) outdated or incorrect
information contained in the page text.
Removing the 'RecentChanges' pages. (They are now completely
autogenerated.)
The translations will need a good going over by someone who
speaks the languages at some point.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@483
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Sat, 7 Apr 2001 17:07:17 +0000 (17:07 +0000)]
New file: locale/Makefile to replace locale/translate.sh
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@482
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Sat, 7 Apr 2001 15:00:55 +0000 (15:00 +0000)]
Updated the edit hints at the bottom of the page.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@481
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Sat, 7 Apr 2001 00:38:41 +0000 (00:38 +0000)]
Munged for German and Spanish templates and pgsrc so that they work
with the current code.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@480
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Sat, 7 Apr 2001 00:34:30 +0000 (00:34 +0000)]
Use strftime() for dates/times instead of date().
(Strftime() supports locales, date() does not.)
Also fixed a couple minor bugs having to do with the initial
creation of the RecentChanges page, and other miscellaneous
wiki setup.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@479
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Fri, 6 Apr 2001 21:18:13 +0000 (21:18 +0000)]
Re-ran locale/translate.sh script to rebuild .mo files.
(Manual search/replace of FrontPage -> HomePage had munged the files.)
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@478
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
dairiki [Fri, 6 Apr 2001 21:12:59 +0000 (21:12 +0000)]
Updated translate.sh script to scan current source code for
gettext strings to be translated.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@477
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Fri, 6 Apr 2001 18:21:37 +0000 (18:21 +0000)]
Did find-grep to replace all occurances of FrontPage to HomePage.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@476
96ab9672 -09ca-45d6-a79d-
3d69d39ca109
wainstead [Fri, 6 Apr 2001 18:08:04 +0000 (18:08 +0000)]
Moved FrontPage to HomePage.
git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@475
96ab9672 -09ca-45d6-a79d-
3d69d39ca109