/usr/share/horde/mnemo/lib/Form/Search.php is in php-horde-mnemo 4.2.12-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | <?php
/**
* Copyright 2013-2016 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (ASL). If you
* did not receive this file, see http://www.horde.org/licenses/apache.
*
* @author Jan Schneider <jan@horde.org>
* @package Mnemo
*/
/**
* Notes search form.
*
* @author Jan Schneider <jan@horde.org>
* @package Mnemo
*/
class Mnemo_Form_Search extends Horde_Form
{
public function __construct($vars)
{
parent::__construct($vars, _("Search"));
$this->addHidden('', 'actionID', 'text', false);
$this->addVariable(_("For"), 'search_pattern', 'text', false);
$v = $this->addVariable(
_("In"), 'search_type', 'radio', false, false, null,
array(array('desc' => _("Title"), 'body' => _("Body")))
);
$v->setDefault('desc');
$this->setButtons(_("Search"));
}
public function render()
{
$this->_vars->actionID = 'search_memos';
parent::renderActive(null, null, Horde::url('list.php'));
}
}
|