2006-12-02 04:36:16 +00:00
|
|
|
<?php
|
|
|
|
/*
|
2009-11-12 15:11:17 +00:00
|
|
|
* e107 website system
|
|
|
|
*
|
2009-11-18 01:06:08 +00:00
|
|
|
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
2009-11-12 15:11:17 +00:00
|
|
|
* Released under the terms and conditions of the
|
|
|
|
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* $Source: /cvs_backup/e107_0.8/e107_handlers/search/advanced_comment.php,v $
|
2010-02-10 18:18:01 +00:00
|
|
|
* $Revision$
|
|
|
|
* $Date$
|
|
|
|
* $Author$
|
2009-11-12 15:11:17 +00:00
|
|
|
*/
|
2006-12-02 04:36:16 +00:00
|
|
|
|
|
|
|
if (!defined('e107_INIT')) { exit; }
|
|
|
|
|
|
|
|
$advanced['type']['type'] = 'dropdown';
|
|
|
|
$advanced['type']['text'] = LAN_SEARCH_57.':';
|
|
|
|
$advanced['type']['list'][] = array('id' => 'all', 'title' => LAN_SEARCH_58);
|
|
|
|
|
|
|
|
$advanced_caption['id'] = 'type';
|
|
|
|
$advanced_caption['title']['all'] = LAN_SEARCH_59;
|
|
|
|
|
|
|
|
foreach ($search_prefs['comments_handlers'] as $h_key => $value) {
|
|
|
|
if (check_class($value['class'])) {
|
|
|
|
$path = ($value['dir'] == 'core') ? e_HANDLER.'search/comments_'.$h_key.'.php' : e_PLUGIN.$value['dir'].'/search/search_comments.php';
|
|
|
|
require_once($path);
|
|
|
|
$advanced['type']['list'][] = array('id' => 's_'.$value['id'], 'title' => $comments_title);
|
|
|
|
$advanced_caption['title']['s_'.$value['id']] = LAN_SEARCH_60.' '.$comments_title;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$advanced['date']['type'] = 'date';
|
2015-01-30 23:43:15 -08:00
|
|
|
$advanced['date']['text'] = LAN_DATE_POSTED.':';
|
2006-12-02 04:36:16 +00:00
|
|
|
|
|
|
|
$advanced['author']['type'] = 'author';
|
|
|
|
$advanced['author']['text'] = LAN_SEARCH_61.':';
|
|
|
|
|
|
|
|
?>
|