]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Added a notification to index.cgi when core-updates are available.
authorJan Paul Tuecking <earl@ipfire.org>
Mon, 14 Sep 2009 15:59:50 +0000 (17:59 +0200)
committerJan Paul Tuecking <earl@ipfire.org>
Mon, 14 Sep 2009 15:59:50 +0000 (17:59 +0200)
html/cgi-bin/index.cgi [changed mode: 0644->0755]
langs/de/cgi-bin/de.pl
langs/en/cgi-bin/en.pl
src/pakfire/lib/functions.pl

old mode 100644 (file)
new mode 100755 (executable)
index df78315..54c0d19
@@ -28,6 +28,7 @@ use strict;
 require '/var/ipfire/general-functions.pl';
 require "${General::swroot}/lang.pl";
 require "${General::swroot}/header.pl";
+require "/opt/pakfire/lib/functions.pl";
 
 my %cgiparams=();
 my %pppsettings=();
@@ -421,6 +422,10 @@ if ($warnmessage) {
 }
 print <<END;
 </table>
+END
+;
+&Pakfire::dblist("upgrade", "notice");
+print <<END;
 
 END
 } else {
index b4a92d4235fbe58417e00ac8dc047b897014afba..90c57b07e571df6296e238000ec625f7a59d2f34 100644 (file)
@@ -23,6 +23,9 @@
 'ConnSched time' => 'Zeit:',
 'ConnSched up' => 'Hoch',
 'ConnSched weekdays' => 'Wochentage:',
+'core notice 1' => '<strong>Hinweis:</strong> Es steht eine Aktualisierung von Core-Update',
+'core notice 2' => 'nach',
+'core notice 3' => 'zur Verfügung.',
 'Enter TOS' => 'Aktivieren oder deaktivieren sie die TOS-Bits <br /> und klicken Sie danach auf <i>Speichern</i>.',
 'Existing Files' => 'Dateien in der Datenbank',
 'HDD temperature' => 'HDD-Temperatur',
index d86fa97a6a7164193fa7c9a3804c332766283a0d..acf83fa65668503a61e421770a9478a02c209084 100644 (file)
@@ -25,6 +25,9 @@
 'ConnSched time' => 'Time:',
 'ConnSched up' => 'Up',
 'ConnSched weekdays' => 'Days of the week:',
+'core notice 1' => '<strong>Notice:</strong> There is an core-update from',
+'core notice 2' => 'to',
+'core notice 3' => 'available.',
 'Enter TOS' => 'Activate or Deactivate TOS-Bits <br /> and then press <i>Save</i>.',
 'Existing Files' => 'Files in database',
 'HDD temperature' => 'HDD temperature',
index c47ff39bbdba48cc196b8b703ee8919c5c5e3d78..10630a1dac96a7a0ac9e3c4b4cbe04587a895748 100644 (file)
@@ -399,6 +399,9 @@ sub dblist {
                if ("$core_release" > "$Conf::core_mine") {
                        if ("$forweb" eq "forweb") {
                                print "<option value=\"core\">Core-Update -- $Conf::version -- Release: $Conf::core_mine -> $core_release</option>\n";
+                       }
+                       elsif ("$forweb" eq "notice") {
+                               print "<a href='pakfire.cgi'>$Lang::tr{'core notice 1'} $Conf::core_mine $Lang::tr{'core notice 2'} $core_release $Lang::tr{'core notice 3'}</a>";
                        } else {
                                my $command = "Core-Update $Conf::version\nRelease: $Conf::core_mine -> $core_release\n";
                                if ("$Pakfire::enable_colors" eq "1") {