summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-07-10 21:14:55 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-07-10 21:14:55 +0000
commit47025e9f26cf3f037841dcae5b281fc38f5051ba (patch)
tree3ebdc8b8e67ae67a6d1cb0bab5eb9a1e571f3d35
parent808f0dcec63a091085f6885f23a81de14d712bfb (diff)
Removing old inifile handling from admin.pl
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1372 4979c152-3d1c-0410-bac9-87ea11338e46
-rw-r--r--bin/admin.pl36
1 files changed, 0 insertions, 36 deletions
diff --git a/bin/admin.pl b/bin/admin.pl
index b430d865..5a89da02 100644
--- a/bin/admin.pl
+++ b/bin/admin.pl
@@ -34,7 +34,6 @@
#
#======================================================================
-$menufile = "menu.ini";
use LedgerSMB::Form;
use LedgerSMB::Locale;
@@ -647,41 +646,6 @@ sub form_header {
}
# access control
- open( FH, '<', $menufile )
- or $form->error( __FILE__ . ':' . __LINE__ . ': ' . "$menufile : $!" );
-
- # scan for first menu level
- @a = <FH>;
- close(FH);
-
- if ( open( FH, '<', "custom_$menufile" ) ) {
- push @a, <FH>;
- }
-
- close(FH);
-
- foreach $item (@a) {
-
- next unless $item =~ /\[\w+/;
- next if $item =~ /\#/;
-
- $item =~ s/(\[|\])//g;
- chop $item;
-
- if ( $item =~ /--/ ) {
-
- ( $level, $menuitem ) = split /--/, $item, 2;
- }
- else {
-
- $level = $item;
- $menuitem = $item;
- push @acsorder, $item;
- }
-
- push @{ $acs{$level} }, $menuitem;
-
- }
%role = (
'admin' => $locale->text('Administrator'),