]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - html/html/themes/ipfire-new/include/functions.pl
ipfire-new: Update footer.
[people/pmueller/ipfire-2.x.git] / html / html / themes / ipfire-new / include / functions.pl
index 490b634572c1a6dc46be44d4a7e1692576083e2a..86bc70939600e1ac20497e2ba3dc9f183c0494e7 100644 (file)
@@ -186,21 +186,22 @@ sub openpagewithoutmenu {
 # print page closing html layout
 
 sub closepage () {
-       my $status = &connectionstatus();
-       my $uptime = `/usr/bin/uptime|cut -d \" \" -f 4-`;
-       $uptime =~ s/year(s|)/$Lang::tr{'year'}/;
-       $uptime =~ s/month(s|)/$Lang::tr{'month'}/;
-       $uptime =~ s/days/$Lang::tr{'days'}/;
-       $uptime =~ s/day /$Lang::tr{'day'}/;
-       $uptime =~ s/user(s|)/$Lang::tr{'user'}/;
-       $uptime =~ s/load average/$Lang::tr{'uptime load average'}/;  
+       open(FILE, "</etc/system-release");
+       my $system_release = <FILE>;
+       $system_release =~ s/core/Core Update/;
+       close(FILE);
 
 print <<END;
                </div>
        </div>
 
        <div id="footer" class='bigbox fixed'>
-               $status   Uptime: $uptime
+               <span class="pull-right">
+                       <a href="http://www.ipfire.org/" target="_blank"><strong>IPFire.org</strong></a> &bull;
+                       <a href="http://www.ipfire.org/donate" target="_blank">$Lang::tr{'support donation'}</a>
+               </span>
+
+               <strong>$system_release</strong>
        </div>
 </body>
 </html>