X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=blobdiff_plain;f=html%2Fhtml%2Fthemes%2Fipfire%2Finclude%2Ffunctions.pl;h=c681f804a76a7a415f84f6e32396801164ba9a6a;hp=87e31674dc49c25c0fd471f44f3c3f837365a8f6;hb=8a5823b8c426375a63d49424e7d800530c50ee0b;hpb=16f6c28c8950259587f18d8c93729dcd2fdd0c46 diff --git a/html/html/themes/ipfire/include/functions.pl b/html/html/themes/ipfire/include/functions.pl index 87e31674dc..c681f804a7 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 -