]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - lib/plugin/_PreferencesInfo.php
mor Preferences testing (still wrong)
[SourceForge/phpwiki.git] / lib / plugin / _PreferencesInfo.php
1 <?php // -*-php-*-
2 rcs_id('$Id: _PreferencesInfo.php,v 1.1 2002-08-23 21:54:30 rurban Exp $');
3 /**
4  * Plugin to display the current preferences without auth check.
5  */
6 class WikiPlugin__PreferencesInfo
7 extends WikiPlugin
8 {
9     function getName () {
10         return _("PreferencesInfo");
11     }
12
13     function getDescription () {
14         return sprintf(_("Get preferences information for current user %s."), '[userid]');
15     }
16
17     function getDefaultArguments() {
18         return array('page' => '[pagename]',
19                      'userid' => '[userid]');
20     }
21    
22     function run($dbi, $argstr, $request) {
23         $args = $this->getArgs($argstr, $request);
24         // $user = &$request->getUser();
25         return Template('userprefs', $args);
26     }
27 };
28
29 // For emacs users
30 // Local Variables:
31 // mode: php
32 // tab-width: 8
33 // c-basic-offset: 4
34 // c-hanging-comment-ender-p: nil
35 // indent-tabs-mode: nil
36 // End:
37 ?>