1 # Blosxom Plugin: whoami
2 # Author(s): Rael Dornfest <rael@oreilly.com>
4 # Documentation: See the bottom of this file or type: perldoc whoami
8 # --- Configurable variables -----
10 # --------------------------------
22 my($pkg, $path, $filename, $story_ref, $title_ref, $body_ref) = @_;
24 $username = $fullname = '';
26 if ( -e "$blosxom::datadir$path/$filename.$blosxom::file_extension" ) {
27 my @user_info = getpwuid( stat("$blosxom::datadir$path/$filename.$blosxom::file_extension")->uid );
28 ($username, $fullname) = ($user_info[0],$user_info[6]);
40 Blosxom Plug-in: whoami
44 Populates $whoami::username and $whoami::$fullname with
45 local username and full name, respectively, for each story. Useful
46 for group Blosxom blogs.
52 Version number coincides with the version of Blosxom with which the
53 current version was first bundled.
57 Rael Dornfest <rael@oreilly.com>, http://www.raelity.org/
61 Blosxom Home/Docs/Licensing: http://www.raelity.org/apps/blosxom/
63 Blosxom Plugin Docs: http://www.raelity.org/apps/blosxom/plugin.shtml
67 Address bug reports and comments to the Blosxom mailing list
68 [http://www.yahoogroups.com/group/blosxom].
72 Blosxom and this Blosxom Plug-in
73 Copyright 2003, Rael Dornfest
75 Permission is hereby granted, free of charge, to any person obtaining a
76 copy of this software and associated documentation files (the "Software"),
77 to deal in the Software without restriction, including without limitation
78 the rights to use, copy, modify, merge, publish, distribute, sublicense,
79 and/or sell copies of the Software, and to permit persons to whom the
80 Software is furnished to do so, subject to the following conditions:
82 The above copyright notice and this permission notice shall be included
83 in all copies or substantial portions of the Software.
85 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
86 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
87 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
88 THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
89 OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
90 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
91 OTHER DEALINGS IN THE SOFTWARE.