X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=blobdiff_plain;f=html%2Fhtml%2Fthemes%2Fipfire%2Finclude%2Ffunctions.pl;h=87bd94906cd63f2862f717456ede386bfa13d8c9;hp=8956b8297d6d5e45c90d90fa2cf30013073c4386;hb=70df830214c97a68fcb7e89ae0d7df58c35590be;hpb=1065bfea84cb9bb8301aeedc900ea8c32673b6f1 diff --git a/html/html/themes/ipfire/include/functions.pl b/html/html/themes/ipfire/include/functions.pl index 8956b8297d..87bd94906c 100644 --- a/html/html/themes/ipfire/include/functions.pl +++ b/html/html/themes/ipfire/include/functions.pl @@ -1,31 +1,50 @@ #!/usr/bin/perl +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007 Michael Tremer & Christian Schmidt # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### sub showmenu() { print < - + EOF ; } @@ -33,13 +52,13 @@ EOF sub getselected($) { my $root = shift; if (!$root) { - return 0; + return 0; } foreach my $item (%$root) { - if ($root->{$item}{'selected'}) { - return $root->{$item}; - } + if ($root->{$item}{'selected'}) { + return $root->{$item}; + } } } @@ -47,45 +66,45 @@ sub showsubsection($$) { my $root = shift; if (! $root) { - return; + return; } my $selected = getselected($root); if (! $selected) { - return; + return; } my $submenus = $selected->{'subMenu'}; if (! $submenus) { - return; + return; } print <Sidemenu -