home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 April
/
CMCD0404.ISO
/
Software
/
Freeware
/
Programare
/
groupoffice-com-2.01
/
modules
/
wiki
/
action
/
find.php
< prev
next >
Wrap
PHP Script
|
2004-03-08
|
560b
|
28 lines
<?php
// $Id: find.php,v 1.1 2004/01/12 22:14:04 comsubvie Exp $
require('parse/html.php');
require(TemplateDir . '/find.php');
// Find a string in the database.
function action_find()
{
global $pagestore, $find, $style, $SeparateLinkWords;
$list = $pagestore->find($find);
switch ($style) {
case 'meta':
$SeparateLinkWords = 0;
break;
}
$text = '';
foreach($list as $page)
{ $text = $text . html_ref($page, $page) . html_newline(); }
template_find(array('find' => $find,
'pages' => $text));
}
?>