]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - lib/plugin/_PreferencesInfo.php
protected function extractParts
[SourceForge/phpwiki.git] / lib / plugin / _PreferencesInfo.php
1 <?php
2
3 /**
4  * Copyright 1999, 2000, 2001, 2002 $ThePhpWikiProgrammingTeam
5  *
6  * This file is part of PhpWiki.
7  *
8  * PhpWiki is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * PhpWiki is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License along
19  * with PhpWiki; if not, write to the Free Software Foundation, Inc.,
20  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21  */
22
23 /**
24  * Plugin to display the current preferences without auth check.
25  */
26 class WikiPlugin__PreferencesInfo
27     extends WikiPlugin
28 {
29     function getName()
30     {
31         return _("PreferencesInfo");
32     }
33
34     function getDescription()
35     {
36         return sprintf(_("Get preferences information for current user %s."),
37             '[userid]');
38     }
39
40     function getDefaultArguments()
41     {
42         return array('page' => '[pagename]',
43             'userid' => '[userid]');
44     }
45
46     function run($dbi, $argstr, &$request, $basepage)
47     {
48         $args = $this->getArgs($argstr, $request);
49         // $user = &$request->getUser();
50         return Template('userprefs', $args);
51     }
52 }
53
54 // Local Variables:
55 // mode: php
56 // tab-width: 8
57 // c-basic-offset: 4
58 // c-hanging-comment-ender-p: nil
59 // indent-tabs-mode: nil
60 // End: