4 Copyright 1999, 2000, 2001, 2002 $ThePhpWikiProgrammingTeam
6 This file is part of PhpWiki.
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.
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.
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
24 * Plugin to display the current preferences without auth check.
26 class WikiPlugin__PreferencesInfo
30 return _("PreferencesInfo");
33 function getDescription () {
34 return sprintf(_("Get preferences information for current user %s."),
38 function getVersion() {
39 return preg_replace("/[Revision: $]/", '',
43 function getDefaultArguments() {
44 return array('page' => '[pagename]',
45 'userid' => '[userid]');
48 function run($dbi, $argstr, &$request, $basepage) {
49 $args = $this->getArgs($argstr, $request);
50 // $user = &$request->getUser();
51 return Template('userprefs', $args);
55 // $Log: not supported by cvs2svn $
56 // Revision 1.2 2003/01/18 21:19:25 carstenklapp
58 // Reformatting; added copyleft, getVersion, getDescription
66 // c-hanging-comment-ender-p: nil
67 // indent-tabs-mode: nil