~vcs-imports/clansuite/trunk

« back to all changes in this revision

Viewing changes to modules/search/controller/search.module.php

  • Committer: paulbr
  • Date: 2011-05-17 09:43:57 UTC
  • Revision ID: paulbr-20110517094357-yzy4qzdy62rc5dwb
- smarty function.icon.php fixed
- new table for news comments (test)
- entities: user/comment fixed
- new theme dark / csfw modified

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
   /**
 
3
    * Clansuite - just an eSports CMS
 
4
    * Jens-André Koch © 2005 - onwards
 
5
    * http://www.clansuite.com/
 
6
    *
 
7
    * This file is part of "Clansuite - just an eSports CMS".
 
8
    *
 
9
    * LICENSE:
 
10
    *
 
11
    *    This program is free software; you can redistribute it and/or modify
 
12
    *    it under the terms of the GNU General Public License as published by
 
13
    *    the Free Software Foundation; either version 2 of the License, or
 
14
    *    (at your option) any later version.
 
15
    *
 
16
    *    This program is distributed in the hope that it will be useful,
 
17
    *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
18
    *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
19
    *    GNU General Public License for more details.
 
20
    *
 
21
    *    You should have received a copy of the GNU General Public License
 
22
    *    along with this program; if not, write to the Free Software
 
23
    *    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
24
    *
 
25
    * @license    GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE".
 
26
    * @author     Jens-André Koch <vain@clansuite.com>
 
27
    * @copyright  Jens-André Koch (2005 - onwards)
 
28
    * @link       http://www.clansuite.com
 
29
    *
 
30
    * @version    SVN: $Id: about.module.php 4744 2010-09-26 23:13:04Z vain $
 
31
    */
 
32
 
 
33
//Security Handler
 
34
if(defined('IN_CS') === false)
 
35
{
 
36
    die('Clansuite not loaded. Direct Access forbidden.');
 
37
}
 
38
 
 
39
/**
 
40
 * Clansuite_Module_News
 
41
 *
 
42
 * @category    Clansuite
 
43
 * @package     Modules
 
44
 * @subpackage  Toolbox
 
45
 */
 
46
class Clansuite_Module_Search extends Clansuite_Module_Controller
 
47
{
 
48
 
 
49
    public function initializeModule()
 
50
    {
 
51
        # read module config
 
52
        $this->getModuleConfig();
 
53
    }
 
54
 
 
55
    public function action_show()
 
56
    {
 
57
        $this->display();
 
58
    }
 
59
 
 
60
    public function action_multisearch()
 
61
    {
 
62
        # Set Pagetitle and Breadcrumbs
 
63
        Clansuite_Breadcrumb::add( _('Show'), '/search/multisearch');
 
64
 
 
65
        #Clansuite_Debug::printR( $_POST );
 
66
 
 
67
        $qmod = $this->request->getParameterFromPost('qmod');
 
68
        $qmodOut = ucwords($qmod);
 
69
        $qfields = $this->request->getParameterFromPost('qfields');
 
70
        $qfieldsOut = str_replace( ',', ', ', $qfields);
 
71
        $qstring = trim($this->request->getParameterFromPost('q'));
 
72
        $qstringOut = $qstring;
 
73
 
 
74
        # Get Render Engine
 
75
        $view = $this->getView();
 
76
 
 
77
        $view->assign('qstring', $qstringOut);
 
78
        $view->assign('qmod', $qmodOut);
 
79
        $view->assign('qfields', $qfieldsOut);
 
80
 
 
81
        $this->display();
 
82
    }
 
83
 
 
84
    public function widget_multisearch()
 
85
    {
 
86
    }
 
87
 
 
88
}
 
89
?>
 
 
b'\\ No newline at end of file'