Title: My Homepage
Comment: Logged-in users' personal homepage.
My Homepage
Error: You must be logged in to access this page.
if ($root->{auth}) {
# If the blog plugin exists, load its config.
my %plugin = (
blog => 0,
);
if (-f "$root->{base}/inc/blog.lib") {
$root->{blogcfg} = &readConfig('blog.conf') unless exists $root->{blogcfg};
$plugin{blog} = 1;
}
$root->{content} = "My Homepage
\n\n"
. "Welcome to your home page.\n\n"
. "Would you like to...\n"
. "
";
# Can we interact with the blog?
if ($plugin{blog}) {
my $perms = &getBlogPermissions();
if ($perms =~ /^(authors|publishers)$/i) {
$root->{content} .= "Web Blog Links:\n"
. "\n";
}
}
# Administrative Links.
if (&isAdmin()) {
$root->{content} .= "Administrator Links:\n"
. "\n";
}
}