SourceForge logo
SourceForge logo
Menu

phpwiki-checkins

Update of /cvsroot/phpwiki/phpwiki/pgsrc
In directory usw-pr-cvs1:/tmp/cvs-serv2684/pgsrc
Modified Files:
	FindPage MostPopular PhpWikiAdministration ReleaseNotes 
Added Files:
	BackLinks DebugInfo FullTextSearch LikePages RecentChanges 
	TitleSearch WikiPlugin 
Log Message:
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
<php...@li...>, or privately, to
<da...@da...>.
--- NEW FILE ---
>From hos...@da... Sat Feb 10 21:28:19 2001
Subject: BackLinks
From: hos...@da... (PhpWiki)
Date: 2001年8月31日 22:07:14 -0700
Mime-Version: 1.0
Content-Type: application/x-phpwiki;
 pagename=BackLinks;
 flags=PAGE_LOCKED
Content-Transfer-Encoding: binary
<?plugin BackLinks include_self=1 page||='' ?>
--- NEW FILE ---
<?plugin _BackendInfo page||='' ?>
--- NEW FILE ---
>From hos...@da... Sat Feb 10 21:28:19 2001
Subject: FullTextSearch
From: hos...@da... (PhpWiki)
Date: 2001年9月12日 13:49:06 -0700
Mime-Version: 1.0 (Produced by PhpWiki 1.1.x)
Content-Type: application/x-phpwiki;
 pagename=FullTextSearch;
 flags=PAGE_LOCKED
Content-Transfer-Encoding: binary
<?plugin FullTextSearch?>
----
Search Again:
<?plugin-form TitleSearch?>
<?plugin-form FullTextSearch?>
--- NEW FILE ---
LikePages are pages which share an initial or final word with that page.
See also Wiki:LikePages and MeatBall:LikePages.
----
<?plugin LikePages page ?>
--- NEW FILE ---
>From hos...@da... Sat Feb 10 21:28:19 2001
Subject: TitleSearch
From: hos...@da... (PhpWiki)
Date: 2001年9月12日 13:47:25 -0700
Mime-Version: 1.0 (Produced by PhpWiki 1.1.x)
Content-Type: application/x-phpwiki;
 pagename=TitleSearch;
 flags=PAGE_LOCKED
Content-Transfer-Encoding: binary
<?plugin TitleSearch?>
----
Search Again:
<?plugin-form TitleSearch?>
<?plugin-form FullTextSearch?>
--- NEW FILE ---
The latest hacks include support for !WikiPlugins.
!WikiPlugins allow one to easily add new types of dynamic content (as well as other functionality)
to wiki pages within PhpWiki. In this very wiki, the RecentChanges, BackLinks,
LikePages and DebugInfo pages are all implemented using plugins. 
I expect that the search result pages, as well as much PhpWikiAdministration will
soon be implemented via plugins as well. (I think the oh-so-ugly
[MagicPhpWikiURLs] can be replaced by plugins, too.)
!Example
Currently, one invokes a plugin by putting something like:
 <?''''plugin !BackLinks?>
into a regular wiki-page. That particular example produces as list
of pages which link to the current page. Here it is:
<?plugin BackLinks?>
(This is great for Category and Topic pages. You can use this to get
an automatic in-line listing of pages in the Category or Topic.)
!Details
(This is all subject to change.)
Plugins can take certain named arguments (most do).
The values of these arguments can be determined four different ways.
In order of precedence:
# The plugin invocation can specify the value for an argument, like so:
;;: <?''''plugin !BackLinks page=!OtherPage ?>
# The argument can be specified via an HTTP query argument. This doesn't happen (is not allowed) unless the argument is mentioned in the plugin invocation:
;;: <?''''plugin !BackLinks page ?>
# Default values specified in the plugin invocation:
;;: <?''''plugin !BackLinks page||=!OtherPage ?>
# The plugin must supply default values for each argument it uses. (The BackLinks plugin uses
the current page as the default value for the ''page'' argument.
!More Ideas for Plugins
* Search
* MostPopular
* WantedPages, OrphanPages, other various indexing schemes.
* Diff, PageHistory
* TitleSearch: LikePages (match_head, match_tail).
* Redirect plugin -- <?''''plugin Redirect target=!OtherPage ?>
* Calendar
Index: FindPage
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/pgsrc/FindPage,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** FindPage	2001年05月31日 17:45:41	1.6
--- FindPage	2001年09月18日 19:16:23	1.7
***************
*** 8,16 ****
 or ''sandwich''.
 
! %%Search%%
 
 Use the following for a full text search. This takes a few seconds. The results will show all lines on a given page that contain a match.
 
! %%Fullsearch%%
 
 ------
--- 8,16 ----
 or ''sandwich''.
 
! <?plugin-form TitleSearch?>
 
 Use the following for a full text search. This takes a few seconds. The results will show all lines on a given page that contain a match.
 
! <?plugin-form FullTextSearch?>
 
 ------
Index: MostPopular
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/pgsrc/MostPopular,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** MostPopular	2000年06月26日 21:26:45	1.1
--- MostPopular	2001年09月18日 19:16:23	1.2
***************
*** 1,4 ****
! The 20 most popular pages of this wiki:
! (hitcount, pagename)
 
- %%Mostpopular%%
--- 1,2 ----
! <?plugin MostPopular limit=20 ?>
 
Index: PhpWikiAdministration
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/pgsrc/PhpWikiAdministration,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** PhpWikiAdministration	2001年04月06日 18:21:37	1.8
--- PhpWikiAdministration	2001年09月18日 19:16:23	1.9
***************
*** 15,19 ****
 ! Log In
 
! __[Log In | phpwiki:?action=login]__
 
 This allows you to login.
--- 15,19 ----
 ! Log In
 
! __[Log In | phpwiki:?action=login]__
 
 This allows you to login.
Index: ReleaseNotes
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/pgsrc/ReleaseNotes,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** ReleaseNotes	2001年02月13日 05:54:38	1.8
--- ReleaseNotes	2001年09月18日 19:16:23	1.9
***************
*** 1,2 ****
--- 1,12 ----
+ Jeffs Hacks.
+ 
+ * New database API. See lib/WikiDB.php and lib/WikiDB/backend.php for the bulk of the documentation on this. The new database can save multiple archived versions of each page. A mechanism for purging archived revisions is now in place as well. See the $!ExpireParams setting in index.php, and lib/!ArchiveCleaner.php for details. At this point, the DBA, MySQL and Postgres backends are functional. The DBA backend could use some performance optimization. The whole API is still subject to some change as I figure out a clean way to provide for a variety of (not all forseen) methods of indexing and searching the wiki.
+ * New WikiPlugin architecture.
+ * New template engine. This needs to be documented further, but, for now, see lib/Template.php. On second thought, don't (lib/Template.php desperately needs refactoring, still.) The basic advance is that PHP4's ob_*() functions can be used to capture output from eval()ed PHP code. This allows the templates to be PHP code...
+ * Edit preview button on the edit page. Now you can see what your edits look like before committing them.
+ * Reworked the style-sheets. I still need to clean this up some more. I would appreciate comments and bug reports on it. So far I've only tested the new style sheets with Netscape 4.77 and Mozilla 0.9.3 (both running under Linux.)
+ * Expanded syntax for text search, now searches like "wiki or web -page" (or "(wiki or web) and not page") will do more-or-less what they look like they'll do.
+ * Security Issues: PhpWiki will now work with PHP's register_globals set to off.
+ 
 PhpWiki 1.3.x development branch.
 
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /