Geaendert:
authordelaco <delaco@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Thu, 20 Jul 2006 16:31:37 +0000 (16:31 +0000)
committerdelaco <delaco@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Thu, 20 Jul 2006 16:31:37 +0000 (16:31 +0000)
  * Grauer Hintergrund der Hardware-Graphen geaendert.
  * Hardwaregraphen im geaendert.
  * Grub-Conf erweitert fuer Delaco.
  * Viele Sachen gefixt...

git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@215 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

13 files changed:
config/cfgroot/header.pl
config/etc/profile
config/grub/grub.conf
config/grub/scsigrub.conf
doc/packages-list.txt
html/cgi-bin/changepw.cgi
html/cgi-bin/hardwaregraphs.cgi [moved from html/cgi-bin/hddgraph.cgi with 100% similarity]
langs/de/cgi-bin/de.pl
langs/en/cgi-bin/en.pl
lfs/apache
lfs/configroot
src/ROOTFILES.i386
src/scripts/makegraphs

index 251c1e9..e3910fa 100644 (file)
@@ -130,25 +130,31 @@ sub genmenu {
                                'title' => "$tr{'alt home'}",
                                'enabled' => 1,
                                };
-    $subsystem->{'20.passwords'} = {
+    $subsystem->{'20.dialup'} = {
+                               'caption' => $tr{'alt dialup'},
+                               'uri' => '/cgi-bin/pppsetup.cgi',
+                               'title' => "$tr{'alt dialup'}",
+                               'enabled' => 1,
+                               };
+    $subsystem->{'30.passwords'} = {
                                'caption' => $tr{'sspasswords'},
                                'uri' => '/cgi-bin/changepw.cgi',
                                'title' => "$tr{'sspasswords'}",
                                'enabled' => 1,
                                };
-    $subsystem->{'30.ssh'} = {
+    $subsystem->{'40.ssh'} = {
                                'caption' => $tr{'ssh access'},
                                'uri' => '/cgi-bin/remote.cgi',
                                'title' => "$tr{'ssh access'}",
                                'enabled' => 1,
                                };
-    $subsystem->{'40.gui'} = {
+    $subsystem->{'50.gui'} = {
                                'caption' => $tr{'gui settings'},
                                'uri' => '/cgi-bin/gui.cgi',
                                'title' => "$tr{'gui settings'}",
                                'enabled' => 1,
                                };
-    $subsystem->{'50.shutdown'} = {
+    $subsystem->{'60.shutdown'} = {
                                'caption' => $tr{'shutdown'},
                                'uri' => '/cgi-bin/shutdown.cgi',
                                'title' => "$tr{'shutdown'} / $tr{'reboot'}",
@@ -201,10 +207,10 @@ sub genmenu {
                                  'title' => "Firewall-Diagramme",
                                 'enabled' => 1,
                                  };
-    $substatus->{'70.hddtemp'} = {
-                                 'caption' => "$tr{'harddisk temperature graphs'}",
-                                 'uri' => '/cgi-bin/hddgraph.cgi',
-                                 'title' => "$tr{'harddisk temperature graphs'}",
+    $substatus->{'70.hardwaregraphs'} = {
+                                 'caption' => "$tr{'hardware graphs'}",
+                                 'uri' => '/cgi-bin/hardwaregraphs.cgi',
+                                 'title' => "$tr{'hardware graphs'}",
                                 'enabled' => 1,
                                  };
     $substatus->{'80.connections'} = {
@@ -244,37 +250,31 @@ sub genmenu {
                                 'title' => "$tr{'dhcp server'}",
                                 'enabled' => 1,
                                 };
-    $subnetwork->{'40.dialup'} = {
-                                 'caption' => $tr{'alt dialup'},
-                                 'uri' => '/cgi-bin/pppsetup.cgi',
-                                 'title' => "$tr{'alt dialup'}",
-                                 'enabled' => 1,
-                                 };
-    $subnetwork->{'50.scheduler'} = {
-                                 'caption' => $tr{'scheduler'},
-                                 'uri' => '/cgi-bin/connscheduler.cgi',
-                                 'title' => "$tr{'scheduler'}",
-                                 'enabled' => 1,
-                                 };
-    $subnetwork->{'60.hosts'} = {
+    $subnetwork->{'40.scheduler'} = {
+                                'caption' => $tr{'scheduler'},
+                                'uri' => '/cgi-bin/connscheduler.cgi',
+                                'title' => "$tr{'scheduler'}",
+                                'enabled' => 1,
+                                };
+    $subnetwork->{'50.hosts'} = {
                                 'caption' => $tr{'edit hosts'},
                                 'uri' => '/cgi-bin/hosts.cgi',
                                 'title' => "$tr{'edit hosts'}",
                                 'enabled' => 1,
                                 };
-    $subnetwork->{'70.upload'} = {
+    $subnetwork->{'60.upload'} = {
                                  'caption' => $tr{'upload'},
                                  'uri' => '/cgi-bin/upload.cgi',
                                  'title' => "$tr{'upload'}",
                                  'enabled' => 0,
                                  };
-    $subnetwork->{'80.aliases'} = {
+    $subnetwork->{'70.aliases'} = {
                                  'caption' => $tr{'aliases'},
                                  'uri' => '/cgi-bin/aliases.cgi',
                                  'title' => "$tr{'aliases'}",
                                  'enabled' => 0,
                                  };
-    $subnetwork->{'90.wakeonlan'} = {
+    $subnetwork->{'80.wakeonlan'} = {
                                  'caption' => $tr{'WakeOnLan'},
                                  'uri' => '/cgi-bin/wakeonlan.cgi',
                                  'title' => "$tr{'WakeOnLan'}",
@@ -751,7 +751,7 @@ sub openpage {
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
 END
 ;
-    if ($settings{'FX'} eq 'on') {
+    if ($settings{'FX'} ne 'off') {
     print <<END
     <meta http-equiv="Page-Enter" content="blendTrans(Duration=0.5,Transition=12)">
     <meta http-equiv="Page-Exit" content="blendTrans(Duration=0.5,Transition=12)">
@@ -822,6 +822,90 @@ END
     };
 }
 
+sub openpagewithoutmenu {
+    my $title = shift;
+    my $boh = shift;
+    my $extrahead = shift;
+
+    @URI=split ('\?',  $ENV{'REQUEST_URI'} );
+    &readhash("${swroot}/main/settings", \%settings);
+    &genmenu();
+
+    my $h2 = gettitle($menu);
+    my $helpuri = get_helpuri();
+
+    $title = "IPFire - $title";
+    if ($settings{'WINDOWWITHHOSTNAME'} eq 'on') {
+        $title =  "$settings{'HOSTNAME'}.$settings{'DOMAINNAME'} - $title"; 
+    }
+
+    print <<END
+<!DOCTYPE html 
+     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+  <head>
+  <title>$title</title>
+
+    $extrahead
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+END
+;
+    if ($settings{'FX'} eq 'on') {
+    print <<END
+    <meta http-equiv="Page-Enter" content="blendTrans(Duration=0.5,Transition=12)">
+    <meta http-equiv="Page-Exit" content="blendTrans(Duration=0.5,Transition=12)">
+END
+;
+    }
+    print <<END
+    <link rel="shortcut icon" href="/favicon.ico" />
+    <style type="text/css">\@import url(/include/style.css);</style>
+    <style type="text/css">\@import url(/include/menu.css);</style>
+    <style type="text/css">\@import url(/include/content.css);</style>
+    <script language="javascript" type="text/javascript">
+      
+        function swapVisibility(id) {
+            el = document.getElementById(id);
+           if(el.style.display != 'block') {
+               el.style.display = 'block'
+           }
+           else {
+               el.style.display = 'none'
+           }
+        }
+    </script>
+
+  </head>
+  <body>
+<!-- IPFIRE HEADER -->
+
+<div id="main">
+
+<div id="header">
+       <img id="logo-product" src="/images/logo_ipfire.gif">
+   <div id="header-icons">
+           <a href="http://users.ipfire.eu/" target="_blank"><img border="0" src="/images/help.gif"></a>
+   </div>
+</div>
+
+END
+;
+print <<END
+<div id="content">
+  <table width="90%">
+    <tr>
+      <td valign="top">
+      <p><center><img src="/images/iptux.png" width='160px' height='160px'></center></p>
+      </td>
+        <td width="100%" valign="top">
+        <div id="page-content">
+            <h2>$h2</h2>
+END
+    ;
+}
+
 sub closepage () {
     my $status = &connectionstatus();
     $uptime = `/usr/bin/uptime`;
index 87fe550..efb60d8 100644 (file)
@@ -46,4 +46,4 @@ echo -n -e '\033%G'
 
 export LANG PS1
 # Enable colors for applications like mc....
-export TERM=xterm-color
+export TERM=linux
index 1bd1cc0..8c2152c 100644 (file)
@@ -3,23 +3,63 @@ default saved
 foreground = 16064e
 background = ffffff
 splashimage (hd0,0)/grub/ipfire.xpm.gz
-title IPFire
+title IPFire (1024x768)
   root (hd0,0)
   kernel /vmlinuz root=ROOT panic=10 acpi=off vga=791 splash=silent ro
   initrd /initrd.splash
   savedefault
-title IPFire SMP
+title IPFire (800x600)
+  root (hd0,0)
+  kernel /vmlinuz root=ROOT panic=10 acpi=off vga=788 splash=silent ro
+  initrd /initrd.splash
+  savedefault
+title IPFire (text)
+  root (hd0,0)
+  kernel /vmlinuz root=ROOT panic=10 acpi=off ro
+  initrd /initrd.splash
+  savedefault
+title IPFire SMP (1024x768)
   root (hd0,0)
   kernel /vmlinuz-smp root=ROOT panic=10 acpi=off vga=791 splash=silent ro
   initrd /initrd.splash
   savedefault
-title IPFire (ACPI enabled)
+title IPFire SMP (800x600)
+  root (hd0,0)
+  kernel /vmlinuz-smp root=ROOT panic=10 acpi=off vga=788 splash=silent ro
+  initrd /initrd.splash
+  savedefault
+title IPFire SMP (text)
+  root (hd0,0)
+  kernel /vmlinuz-smp root=ROOT panic=10 acpi=off ro
+  initrd /initrd.splash
+  savedefault
+title IPFire (ACPI enabled) (1024x768)
   root (hd0,0)
   kernel /vmlinuz root=ROOT panic=10 vga=791 splash=silent ro
   initrd /initrd.splash
   savedefault
-title IPFire SMP (ACPI HT enabled)
+title IPFire (ACPI enabled) (800x600)
+  root (hd0,0)
+  kernel /vmlinuz root=ROOT panic=10 vga=788 splash=silent ro
+  initrd /initrd.splash
+  savedefault
+title IPFire (ACPI enabled) (text)
+  root (hd0,0)
+  kernel /vmlinuz root=ROOT panic=10 ro
+  initrd /initrd.splash
+  savedefault
+title IPFire SMP (ACPI HT enabled) (1024x768)
   root (hd0,0)
   kernel /vmlinuz-smp root=ROOT panic=10 acpi=ht vga=791 splash=silent ro
   initrd /initrd.splash
   savedefault
+title IPFire SMP (ACPI HT enabled) (800x600)
+  root (hd0,0)
+  kernel /vmlinuz-smp root=ROOT panic=10 acpi=ht vga=788 splash=silent ro
+  initrd /initrd.splash
+  savedefault
+title IPFire SMP (ACPI HT enabled) (text)
+  root (hd0,0)
+  kernel /vmlinuz-smp root=ROOT panic=10 acpi=ht ro
+  initrd /initrd.splash
+  savedefault
index 4b8e72c..e0c601e 100644 (file)
@@ -3,23 +3,63 @@ default saved
 foreground = 16064e
 background = ffffff
 splashimage (hd0,0)/grub/ipfire.xpm.gz
-title IPFire
+title IPFire (1024x768)
   root (hd0,0)
   kernel /vmlinuz root=ROOT panic=10 init=/linuxrc acpi=off vga=791 splash=silent rw
   initrd /ipfirerd.img
   savedefault
-title IPFire SMP
+title IPFire (800x600)
+  root (hd0,0)
+  kernel /vmlinuz root=ROOT panic=10 init=/linuxrc acpi=off vga=788 splash=silent rw
+  initrd /ipfirerd.img
+  savedefault
+title IPFire (text)
+  root (hd0,0)
+  kernel /vmlinuz root=ROOT panic=10 init=/linuxrc acpi=off rw
+  initrd /ipfirerd.img
+  savedefault
+title IPFire SMP (1024x768)
   root (hd0,0)
   kernel /vmlinuz-smp root=ROOT panic=10 init=/linuxrc acpi=off vga=791 splash=silent rw
   initrd /ipfirerd-smp.img
   savedefault
-title IPFire (ACPI enabled)
+title IPFire SMP (800x600)
+  root (hd0,0)
+  kernel /vmlinuz-smp root=ROOT panic=10 init=/linuxrc acpi=off vga=788 splash=silent rw
+  initrd /ipfirerd-smp.img
+  savedefault
+title IPFire SMP (text)
+  root (hd0,0)
+  kernel /vmlinuz-smp root=ROOT panic=10 init=/linuxrc acpi=off rw
+  initrd /ipfirerd-smp.img
+  savedefault
+title IPFire (ACPI enabled) (1024x768)
   root (hd0,0)
   kernel /vmlinuz root=ROOT panic=10 init=/linuxrc vga=791 splash=silent rw
   initrd /ipfirerd.img
   savedefault
-title IPFire SMP (ACPI HT enabled)
+title IPFire (ACPI enabled) (800x600)
+  root (hd0,0)
+  kernel /vmlinuz root=ROOT panic=10 init=/linuxrc vga=788 splash=silent rw
+  initrd /ipfirerd.img
+  savedefault
+title IPFire (ACPI enabled) (text)
+  root (hd0,0)
+  kernel /vmlinuz root=ROOT panic=10 init=/linuxrc rw
+  initrd /ipfirerd.img
+  savedefault
+title IPFire SMP (ACPI HT enabled) (1024x768)
   root (hd0,0)
   kernel /vmlinuz-smp root=ROOT panic=10 init=/linuxrc acpi=ht vga=791 splash=silent rw
   initrd /ipfirerd-smp.img
   savedefault
+title IPFire SMP (ACPI HT enabled) (800x600)
+  root (hd0,0)
+  kernel /vmlinuz-smp root=ROOT panic=10 init=/linuxrc acpi=ht vga=788 splash=silent rw
+  initrd /ipfirerd-smp.img
+  savedefault
+title IPFire SMP (ACPI HT enabled) (text)
+  root (hd0,0)
+  kernel /vmlinuz-smp root=ROOT panic=10 init=/linuxrc acpi=ht rw
+  initrd /ipfirerd-smp.img
+  savedefault
index c696a6e..136fcb3 100644 (file)
@@ -1,4 +1,4 @@
-====== List of softwares used to build IPFire Version: 1.4 ======
+====== List of softwares used to build IPFire Version: 2.0 ======
   * 3c5x9setup-1.00
   * 3cp4218-2003-10-22
   * Archive-Tar-1.29
index 037a8a5..af9719d 100644 (file)
@@ -61,7 +61,7 @@ if ($cgiparams{'ACTION_DIAL'} eq $Lang::tr{'save'})
                 }
                elsif (length($password1) >= 6)
                {
-                       system('/usr/bin/htpasswd', '-b', "${General::swroot}/auth/users", 'dial', "${password1}"); 
+                       system('/usr/bin/htpasswd', '-m', '-b', "${General::swroot}/auth/users", 'dial', "${password1}");
                        &General::log($Lang::tr{'dial user password has been changed'});
                }
                else {
index 95f479d..832cd10 100644 (file)
 'scheduled actions' => 'Geplante Aktionen',
 'scheduler' => 'Scheduler',
 'select profile' => 'W√§hle Profil',
-'up' => 'Hoch', 
+'up' => 'Hoch',
+'hardware graphs' => 'Hardware-Diagramme',
 
 ); 
 
index 6598cad..e027047 100644 (file)
 'scheduled actions' => 'Scheduled actions',
 'scheduler' => 'Scheduler',
 'select profile' => 'Select profile',
-'up' => 'Up', 
+'up' => 'Up',
+'hardware graphs' => 'hardware graphs',
 
 );
index effe2f9..ec5b0dd 100644 (file)
@@ -126,7 +126,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        chown -R root:root /home/httpd
        chmod -R 755 /home/httpd/cgi-bin
        chmod -R 644 /home/httpd/html
-       chmod 755 /home/httpd/html /home/httpd/html/{index.cgi,images,include}
+       chmod 755 /home/httpd/html /home/httpd/html/{index.cgi,redirect.cgi,dial.cgi,images,include}
 
 
        # backup directory needs nobody:nobody permissions
index ea44180..46837f0 100644 (file)
@@ -62,7 +62,7 @@ $(TARGET) :
            dhcp/fixleases dhcp/advoptions dmzholes/config ethernet/aliases ethernet/settings \
            isdn/settings main/hosts main/settings optionsfw/settings outgoing/settings outgoing/rules pakfire/settings \
            portfw/config ppp/settings-1 ppp/settings-2 ppp/settings-3 ppp/settings-4 \
-           ppp/settings-5 ppp/settings proxy/settings remote/settings qos/settings qos/classes qos/subclasses qos/level7config qos/portconfig \
+           ppp/settings-5 ppp/settings proxy/advanced/settings remote/settings qos/settings qos/classes qos/subclasses qos/level7config qos/portconfig \
            snort/settings vpn/config vpn/settings vpn/ipsec.conf \
            vpn/ipsec.secrets vpn/caconfig wakeonlan/clients.conf wireless/config wireless/settings; do \
                touch $(CONFIG_ROOT)/$$i; \
index 8135959..b469d1c 100644 (file)
@@ -21030,8 +21030,8 @@ home/httpd/cgi-bin/dial.cgi
 home/httpd/cgi-bin/dmzholes.cgi
 home/httpd/cgi-bin/graphs.cgi
 home/httpd/cgi-bin/gui.cgi
+home/httpd/cgi-bin/hardwaregraphs.cgi
 home/httpd/cgi-bin/hosts.cgi
-home/httpd/cgi-bin/hddgraph.cgi
 home/httpd/cgi-bin/ids.cgi
 home/httpd/cgi-bin/index.cgi
 home/httpd/cgi-bin/ipinfo.cgi
index 9c680a8..8f9aa67 100644 (file)
@@ -859,7 +859,7 @@ sub updatetempgraph
     "--alt-y-grid", "-w 600", "-h 100", "--alt-autoscale",
     "--color", "SHADEA#EAE9EE",
     "--color", "SHADEB#EAE9EE",
-    "--color", "BACK#EAE9EE",
+    "--color", "BACK#FFFFFF",
     "-t $tr{'mbmon temp'} ($tr{'graph per'} $tr{$period})" );
 
   $count = 1;
@@ -899,7 +899,7 @@ sub updatefangraph
     "--alt-y-grid", "-w 600", "-h 100", "--alt-autoscale",
     "--color", "SHADEA#EAE9EE",
     "--color", "SHADEB#EAE9EE",
-    "--color", "BACK#EAE9EE",
+    "--color", "BACK#FFFFFF",
     "-t $tr{'mbmon temp'} ($tr{'graph per'} $tr{$period})" );
 
   $count = 1;
@@ -939,7 +939,7 @@ sub updatevoltgraph
     "--alt-y-grid", "-w 600", "-h 100", "--alt-autoscale",
     "--color", "SHADEA#EAE9EE",
     "--color", "SHADEB#EAE9EE",
-    "--color", "BACK#EAE9EE",
+    "--color", "BACK#FFFFFF",
     "-t $tr{'mbmon temp'} ($tr{'graph per'} $tr{$period})" );
 
   $count = 1;