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=c83897e0e075a7c60f30756e386778a74d1fa7e5;hb=8a5823b8c426375a63d49424e7d800530c50ee0b;hpb=6be4dd24043dc331a2ffda3b40a7cf150d1f8f0a diff --git a/html/html/themes/ipfire/include/functions.pl b/html/html/themes/ipfire/include/functions.pl index c83897e0e0..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 -