| 1 | # -*- perl -*- | ||||||||||
| 2 | |||||||||||
| 3 | # | ||||||||||
| 4 | # $Id: SystemExplorer.pm,v 1.1 2004/04/01 17:08:53 eserte Exp $ | ||||||||||
| 5 | # Author: Slaven Rezic | ||||||||||
| 6 | # | ||||||||||
| 7 | # Copyright (C) 2004 Slaven Rezic. All rights reserved. | ||||||||||
| 8 | # This package is free software; you can redistribute it and/or | ||||||||||
| 9 | # modify it under the same terms as Perl itself. | ||||||||||
| 10 | # | ||||||||||
| 11 | # Mail: eserte@users.sourceforge.net | ||||||||||
| 12 | # WWW: http://www.sourceforge.net/projects/we-framework | ||||||||||
| 13 | # | ||||||||||
| 14 | |||||||||||
| 15 | package WebEditor::OldFeatures::SystemExplorer; | ||||||||||
| 16 | |||||||||||
| 17 | =head1 NAME | ||||||||||
| 18 | |||||||||||
| 19 | WebEditor::OldFeatures::SystemExplorer - | ||||||||||
| 20 | |||||||||||
| 21 | =head1 SYNOPSIS | ||||||||||
| 22 | |||||||||||
| 23 | |||||||||||
| 24 | =head1 DESCRIPTION | ||||||||||
| 25 | |||||||||||
| 26 | |||||||||||
| 27 | =head1 AUTHOR | ||||||||||
| 28 | |||||||||||
| 29 | Slaven Rezic. | ||||||||||
| 30 | |||||||||||
| 31 | =cut | ||||||||||
| 32 | |||||||||||
| 33 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 34 | 1 | ▶ | use vars qw($VERSION); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 35 | 1 | $VERSION = sprintf("%d.%02d", q$Revision: 1.1 $ =~ /(\d+)\.(\d+)/); | |||||||||
| 36 | |||||||||||
| 37 | 1 | ▶ | use mixin::with 'WebEditor::OldController'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 38 | |||||||||||
| 39 | 0 | ▶ | sub WebEditor_SystemExplorer_Class { "WebEditor::SystemExplorer" } | ||||||||
|
Subroutine
WebEditor_SystemExplorer_Class: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 40 | |||||||||||
| 41 | 0 | ▶ | sub systemexplorer { | ||||||||
|
Subroutine
systemexplorer: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||
| 42 | 0 | my $self = shift; | |||||||||
| 43 | 0 | $self->identify; | |||||||||
| 44 | 0 | my $root = $self->Root; | |||||||||
| 45 | 0 | ▶ | if (!$root->is_allowed(["admin"])) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 46 | 0 | die "This function is only allowed for users with admin rights\n"; | |||||||||
| 47 | } | ||||||||||
| 48 | 0 | eval qq{ require } . $self->WebEditor_SystemExplorer_Class; | |||||||||
| 49 | 0 | ▶ | die $@ if $@; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 50 | 0 | my $se = $self->WebEditor_SystemExplorer_Class->new($self); | |||||||||
| 51 | 0 | $se->dispatch; | |||||||||
| 52 | } | ||||||||||
| 53 | |||||||||||
| 54 | 1 | 1; | |||||||||