]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - lib/plugin/_PreferencesInfo.php
rcs_id no longer makes sense with Subversion global version number
[SourceForge/phpwiki.git] / lib / plugin / _PreferencesInfo.php
1 <?php // -*-php-*-
2 // rcs_id('$Id$');
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
19  * along with PhpWiki; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  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         return _("PreferencesInfo");
31     }
32
33     function getDescription () {
34         return sprintf(_("Get preferences information for current user %s."),
35                        '[userid]');
36     }
37
38     function getDefaultArguments() {
39         return array('page' => '[pagename]',
40                      'userid' => '[userid]');
41     }
42
43     function run($dbi, $argstr, &$request, $basepage) {
44         $args = $this->getArgs($argstr, $request);
45         // $user = &$request->getUser();
46         return Template('userprefs', $args);
47     }
48 };
49
50 // For emacs users
51 // Local Variables:
52 // mode: php
53 // tab-width: 8
54 // c-basic-offset: 4
55 // c-hanging-comment-ender-p: nil
56 // indent-tabs-mode: nil
57 // End:
58 ?>