'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'}",
'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'} = {
'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'}",
<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)">
};
}
+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`;
export LANG PS1
# Enable colors for applications like mc....
-export TERM=xterm-color
+export TERM=linux
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
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
-====== 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
}
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 {
'scheduled actions' => 'Geplante Aktionen',
'scheduler' => 'Scheduler',
'select profile' => 'Wähle Profil',
-'up' => 'Hoch',
+'up' => 'Hoch',
+'hardware graphs' => 'Hardware-Diagramme',
);
'scheduled actions' => 'Scheduled actions',
'scheduler' => 'Scheduler',
'select profile' => 'Select profile',
-'up' => 'Up',
+'up' => 'Up',
+'hardware graphs' => 'hardware graphs',
);
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
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; \
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
"--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;
"--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;
"--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;