X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=html%2Fcgi-bin%2Fpakfire.cgi;h=143f123b7f71853905175421fe21c55cb73ea96f;hb=00512a5ac800205a9f46cd0936909d5c921e6643;hp=9cfe83eec64b666090b10f93df36c2a869b26e99;hpb=d97b2de4a135b323612a0d7c24760ce9f9ff5040;p=ipfire-2.x.git diff --git a/html/cgi-bin/pakfire.cgi b/html/cgi-bin/pakfire.cgi index 9cfe83eec6..143f123b7f 100644 --- a/html/cgi-bin/pakfire.cgi +++ b/html/cgi-bin/pakfire.cgi @@ -2,7 +2,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007 Michael Tremer & Christian Schmidt # +# Copyright (C) 2007-2011 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 # @@ -43,7 +43,6 @@ $pakfiresettings{'VALID'} = ''; $pakfiresettings{'INSPAKS'} = ''; $pakfiresettings{'DELPAKS'} = ''; $pakfiresettings{'AUTOUPDATE'} = 'off'; -$pakfiresettings{'AUTOUPGRADE'} = 'off'; $pakfiresettings{'HEALTHCHECK'} = 'on'; $pakfiresettings{'UUID'} = 'on'; @@ -82,12 +81,12 @@ END - +
+END my @output = `grep pakfire /var/log/messages | tail -20`; foreach (@output) { - print "$_"; + print "$_
END &Header::closebox(); @@ -229,13 +219,19 @@ my $packages_update_age = &General::age("/opt/pakfire/db/lists/packages_list.db" print <
"; } print <+ +END +if ( -e "/var/run/need_reboot") { + print " "; + print " $Lang::tr{'needreboot'}! " +} +print < $Lang::tr{'pakfire system state'}: $Lang::tr{'pakfire core update level'}: $core_release
- $Lang::tr{'pakfire last update'} $core_update_age ago
- $Lang::tr{'pakfire last serverlist update'} $server_update_age ago
- $Lang::tr{'pakfire last core list update'} $corelist_update_age ago
- $Lang::tr{'pakfire last package update'} $packages_update_age ago + $Lang::tr{'pakfire last update'} $core_update_age $Lang::tr{'pakfire ago'}
+ $Lang::tr{'pakfire last serverlist update'} $server_update_age $Lang::tr{'pakfire ago'}
+ $Lang::tr{'pakfire last core list update'} $corelist_update_age $Lang::tr{'pakfire ago'}
+ $Lang::tr{'pakfire last package update'} $packages_update_age $Lang::tr{'pakfire ago'}- @@ -266,7 +262,7 @@ print <
- +@@ -281,7 +277,7 @@ print <
- + END @@ -296,9 +292,6 @@ print <$Lang::tr{'pakfire update daily'} on | off $Lang::tr{'pakfire core update auto'} - on | - off $Lang::tr{'pakfire health check'} on | off