Beispiel #1
0
*   (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*
###################################################*/
//------------------------------------------------------------------- Language
require_once '../kernel/begin.php';
load_module_lang('search');
if (!SearchAuthorizationsService::check_authorizations()->read()) {
    $error_controller = PHPBoostErrors::user_not_authorized();
    DispatchManager::redirect($error_controller);
}
$tpl = new FileTemplate('search/search_forms.tpl');
//--------------------------------------------------------------------- Params
$request = AppContext::get_request();
$search = retrieve(REQUEST, 'q', '');
$unsecure_search = stripslashes(retrieve(REQUEST, 'q', ''));
$search_in = retrieve(POST, 'search_in', 'all');
$selected_modules = retrieve(POST, 'searched_modules', array());
$query_mode = retrieve(POST, 'query_mode', true);
if ($search_in !== 'all') {
    $selected_modules = array($search_in);
} else {
    if (count($selected_modules) == 1) {
 public function is_displayed()
 {
     return SearchAuthorizationsService::check_authorizations()->read();
 }