SourceForge logo
SourceForge logo
Menu

phpwiki-checkins

From: Geoffrey T. D. <da...@us...> - 2001年08月18日 00:35:12
Update of /cvsroot/phpwiki/phpwiki
In directory usw-pr-cvs1:/tmp/cvs-serv8120
Modified Files:
 Tag: release-1_2-branch
	DBLIB.txt index.php 
Log Message:
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.)
Index: DBLIB.txt
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/DBLIB.txt,v
retrieving revision 1.8
retrieving revision 1.8.2.1
diff -C2 -r1.8 -r1.8.2.1
*** DBLIB.txt	2000年12月12日 21:53:20	1.8
--- DBLIB.txt	2001年08月18日 00:35:10	1.8.2.1
***************
*** 119,122 ****
--- 119,139 ----
 
 
+ MakeBackLinkSearchRegexp($pagename)
+ takes: a page name
+ returns: A PCRE suitable for searching for a link to the given page
+ within page (wiki-markup) text. 
+ 
+ InitBackLinkSearch($dbi, $pagename)
+ takes: db reference, page name
+ returns: a handle to identify the query and the current position
+ within the result set.
+ 
+ BackLinkSearchNextMatch($dbi, &$pos)
+ takes: db reference, reference to a hash created by
+ InitBackLinkSearch
+ returns: the next page name that contains a link to the specified page.
+ (advances $pos to next result field as well)
+ 
+ 
 IncreaseHitCount($dbi, $pagename)
 takes: db reference, string (name of a page)
Index: index.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/index.php,v
retrieving revision 1.5
retrieving revision 1.5.2.1
diff -C2 -r1.5 -r1.5.2.1
*** index.php	2000年11月08日 15:34:06	1.5
--- index.php	2001年08月18日 00:35:10	1.5.2.1
***************
*** 31,34 ****
--- 31,42 ----
 } elseif (isset($full)) {
 include "lib/fullsearch.php";
+ } elseif (isset($refs)) {
+ if (function_exists('InitBackLinkSearch')) {
+ 	 include "lib/backlinks.php";
+ }
+ else {
+ 	 $full = $refs;
+ 	 include "lib/fullsearch.php";
+ }
 } elseif (isset($post)) {
 include "lib/savepage.php";
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 によって変換されたページ (->オリジナル) /