change url

This commit is contained in:
lars 2005-07-21 19:22:28 +00:00
parent 92e4db7063
commit 495bee4918
36 changed files with 46 additions and 38 deletions

View File

@ -1 +1 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl url https://192.168.0.23/cryptobox

View File

@ -1 +1 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl?action=init_ask url https://192.168.0.23/cryptobox?action=init_ask

View File

@ -1,4 +1,4 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl url https://192.168.0.23/cryptobox
data action=init_do data action=init_do
data password= data password=
data password2= data password2=

View File

@ -1,4 +1,4 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl url https://192.168.0.23/cryptobox
data action=init_do data action=init_do
data password=hallo data password=hallo
data password2=hall data password2=hall

View File

@ -1,4 +1,4 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl url https://192.168.0.23/cryptobox
data action=init_do data action=init_do
data password=hallo data password=hallo
data password2=hallo data password2=hallo

View File

@ -1 +1 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl?action=mount_ask url https://192.168.0.23/cryptobox?action=mount_ask

View File

@ -1,3 +1,3 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl url https://192.168.0.23/cryptobox
data action=mount_do data action=mount_do
data password=hallo data password=hallo

View File

@ -1 +1 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl?action=umount_ask url https://192.168.0.23/cryptobox?action=umount_ask

View File

@ -1 +1 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl?action=umount_do url https://192.168.0.23/cryptobox?action=umount_do

View File

@ -1 +1 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl?action=config_ask url https://192.168.0.23/cryptobox?action=config_ask

View File

@ -1,4 +1,4 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl url https://192.168.0.23/cryptobox
data action=config_do data action=config_do
data language=de data language=de
data ip=192.168.0.23 data ip=192.168.0.23

View File

@ -1,4 +1,4 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl url https://192.168.0.23/cryptobox
data action=init_do data action=init_do
data password=hallo data password=hallo
data password2=hallo data password2=hallo

View File

@ -1 +1 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl?action=mount_ask url https://192.168.0.23/cryptobox?action=mount_ask

View File

@ -1,3 +1,3 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl url https://192.168.0.23/cryptobox
data action=mount_do data action=mount_do
data password=hallo data password=hallo

View File

@ -1 +1 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl?action=umount_ask url https://192.168.0.23/cryptobox?action=umount_ask

View File

@ -1 +1 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl?action=umount_do url https://192.168.0.23/cryptobox?action=umount_do

View File

@ -1 +1 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl?action=config_ask url https://192.168.0.23/cryptobox?action=config_ask

View File

@ -1,4 +1,4 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl url https://192.168.0.23/cryptobox
data action=config_do data action=config_do
data language=en data language=en
data ip=192.168.0.23 data ip=192.168.0.23

View File

@ -1 +1 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl?action=init_ask url https://192.168.0.23/cryptobox?action=init_ask

View File

@ -1,4 +1,4 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl url https://192.168.0.23/cryptobox
data action=init_do data action=init_do
data password=hallo data password=hallo
data password2=hallo data password2=hallo

View File

@ -1 +1 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl?action=mount_ask url https://192.168.0.23/cryptobox?action=mount_ask

View File

@ -1,3 +1,3 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl url https://192.168.0.23/cryptobox
data action=mount_do data action=mount_do
data password= data password=

View File

@ -1 +1 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl?action=mount_do url https://192.168.0.23/cryptobox?action=mount_do

View File

@ -1,3 +1,3 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl url https://192.168.0.23/cryptobox
data action=mount_do data action=mount_do
data password=hallo data password=hallo

View File

@ -1,3 +1,3 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl url https://192.168.0.23/cryptobox
data action=mount_do data action=mount_do
data password=hallo data password=hallo

View File

@ -1 +1 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl?action=mount_ask url https://192.168.0.23/cryptobox?action=mount_ask

View File

@ -1,3 +1,3 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl url https://192.168.0.23/cryptobox
data action=mount_do data action=mount_do
data password=hallo data password=hallo

View File

@ -1 +1 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl?action=umount_ask url https://192.168.0.23/cryptobox?action=umount_ask

View File

@ -1 +1 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl?action=umount_do url https://192.168.0.23/cryptobox?action=umount_do

View File

@ -1,4 +1,4 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl url https://192.168.0.23/cryptobox
data action=config_do data action=config_do
data language=xy data language=xy
data ip=192.168.0.23 data ip=192.168.0.23

View File

@ -1,4 +1,4 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl url https://192.168.0.23/cryptobox
data action=config_do data action=config_do
data language=de data language=de
data ip=192-168.0.23 data ip=192-168.0.23

View File

@ -1,4 +1,4 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl url https://192.168.0.23/cryptobox
data action=config_do data action=config_do
data language=de data language=de
data ip=192.168.0.23 data ip=192.168.0.23

View File

@ -1,4 +1,4 @@
url https://192.168.0.23/cgi-bin/cryptobox.pl url https://192.168.0.23/cryptobox
data action=config_do data action=config_do
data language=en data language=en
data ip=10.1.1.1 data ip=10.1.1.1

View File

@ -41,11 +41,20 @@ sub load_hdf()
{ {
my $hdf = ClearSilver::HDF->new(); my $hdf = ClearSilver::HDF->new();
$hdf->readFile("$LANGUAGE_DIR/$LANGUAGE" . '.hdf'); my $fname = "$LANGUAGE_DIR/$LANGUAGE" . '.hdf';
die ("Language file ($fname) not found!") unless (-e "$fname");
$hdf->readFile("$fname");
$fname = "$TEMPLATE_DIR/main.cs";
die ("Template directory is invalid ($fname not found)!") unless (-e "$fname");
$hdf->setValue("TemplateDir","$TEMPLATE_DIR"); $hdf->setValue("TemplateDir","$TEMPLATE_DIR");
die ("Documentation directory ($DOC_DIR) not found!") unless (-d "$DOC_DIR");
$hdf->setValue("DocDir","$DOC_DIR"); $hdf->setValue("DocDir","$DOC_DIR");
$hdf->setValue("ScriptName", $ENV{'SCRIPT_NAME'});
# if it was requested as directory index (link from index.html), we should
# set a real script name - otherwise links with a query string will break
$hdf->setValue("ScriptName", ($ENV{'SCRIPT_NAME'} eq '/')? '/cryptobox' : $ENV{'SCRIPT_NAME'});
return $hdf; return $hdf;
} }

View File

@ -1 +0,0 @@
../index.html

View File

@ -4,12 +4,12 @@
<head> <head>
<title>CryptoBox</title> <title>CryptoBox</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="refresh" content="0;/cgi-bin/cryptobox.pl"> <meta http-equiv="refresh" content="0;/cryptobox">
<link rel="stylesheet" media="screen" href="/cryptobox.css" type="text/css" /> <link rel="stylesheet" media="screen" href="/cryptobox.css" type="text/css" />
</head> </head>
<body> <body>
<p>Please go to the <a href="/cgi-bin/cryptobox.pl" title="CryptoBox">CryptoBox-Interface</a></p> <p>Please go to the <a href="/cryptobox" title="CryptoBox">CryptoBox-Interface</a></p>
</body> </body>
</html> </html>