diff --git a/cbox-tree.d/etc/cryptobox/cryptobox.conf b/cbox-tree.d/etc/cryptobox/cryptobox.conf
index a5173cc..3b5777e 100644
--- a/cbox-tree.d/etc/cryptobox/cryptobox.conf
+++ b/cbox-tree.d/etc/cryptobox/cryptobox.conf
@@ -6,9 +6,12 @@ NET_IFACE=eth0
SAMBA_USER=nobody
SCAN_DEVICES="hda hdb hdc hdd hde hdf hdg scd0 scd1 scd2 scd3 sg sda sdb sdc sdd"
+# web interface
+HTML_TEMPLATE_DIR=/usr/share/cryptobox/templates
+STYLESHEET_URL=/cryptobox-data/cryptobox.css
+
# directories
LANGUAGE_DIR=/usr/share/cryptobox/lang
-HTML_TEMPLATE_DIR=/usr/share/cryptobox/templates
DOC_DIR=/usr/share/doc/cryptobox/html
CONFIG_DEFAULTS_DIR=/usr/share/cryptobox/defaults
CONFIG_DIR=/mnt/cb-etc
diff --git a/cbox-tree.d/var/www/cgi-bin/cryptobox.pl b/cbox-tree.d/usr/lib/cgi-bin/cryptobox.pl
similarity index 99%
rename from cbox-tree.d/var/www/cgi-bin/cryptobox.pl
rename to cbox-tree.d/usr/lib/cgi-bin/cryptobox.pl
index ca128bd..75139ae 100755
--- a/cbox-tree.d/var/www/cgi-bin/cryptobox.pl
+++ b/cbox-tree.d/usr/lib/cgi-bin/cryptobox.pl
@@ -35,6 +35,7 @@ $DEFAULT_LANGUAGE = $config->{LANGUAGE};
$HTML_TEMPLATE_DIR = $config->{HTML_TEMPLATE_DIR};
$DOC_DIR = $config->{DOC_DIR};
$IS_DEVEL = ( -e $config->{DEV_FEATURES_SCRIPT});
+$STYLESHEET_URL = $config->{STYLESHEET_URL};
# TODO: just a quick-and-dirty hack during migration to multiple containers
my $CRYPTO_DEV = "`$CB_SCRIPT get_config device`2";
@@ -75,6 +76,9 @@ sub load_hdf
(my $script_url = $ENV{'SCRIPT_NAME'}) =~ m/^[^&]*/;
$hdf->setValue("ScriptName", ($ENV{'SCRIPT_NAME'} eq '/')? '/cryptobox' : $script_url );
+ # set stylesheet url
+ $hdf->setValue("Settings.Stylesheet",$STYLESHEET_URL);
+
&load_selected_language($hdf);
&get_available_languages($hdf);
diff --git a/cbox-tree.d/usr/share/cryptobox/templates/header.cs b/cbox-tree.d/usr/share/cryptobox/templates/header.cs
index 48a561a..e87dcf8 100644
--- a/cbox-tree.d/usr/share/cryptobox/templates/header.cs
+++ b/cbox-tree.d/usr/share/cryptobox/templates/header.cs
@@ -10,7 +10,7 @@
-
+
diff --git a/cbox-tree.d/var/www/cryptobox-img/antlogo100px.png b/cbox-tree.d/var/www/cryptobox-data/antlogo100px.png
similarity index 100%
rename from cbox-tree.d/var/www/cryptobox-img/antlogo100px.png
rename to cbox-tree.d/var/www/cryptobox-data/antlogo100px.png
diff --git a/cbox-tree.d/var/www/cryptobox-img/antlogo100px_green.png b/cbox-tree.d/var/www/cryptobox-data/antlogo100px_green.png
similarity index 100%
rename from cbox-tree.d/var/www/cryptobox-img/antlogo100px_green.png
rename to cbox-tree.d/var/www/cryptobox-data/antlogo100px_green.png
diff --git a/cbox-tree.d/var/www/cryptobox-img/antlogo100px_red.png b/cbox-tree.d/var/www/cryptobox-data/antlogo100px_red.png
similarity index 100%
rename from cbox-tree.d/var/www/cryptobox-img/antlogo100px_red.png
rename to cbox-tree.d/var/www/cryptobox-data/antlogo100px_red.png
diff --git a/cbox-tree.d/var/www/cryptobox-img/backg.gif b/cbox-tree.d/var/www/cryptobox-data/backg.gif
similarity index 100%
rename from cbox-tree.d/var/www/cryptobox-img/backg.gif
rename to cbox-tree.d/var/www/cryptobox-data/backg.gif
diff --git a/cbox-tree.d/var/www/cryptobox.css b/cbox-tree.d/var/www/cryptobox-data/cryptobox.css
similarity index 95%
rename from cbox-tree.d/var/www/cryptobox.css
rename to cbox-tree.d/var/www/cryptobox-data/cryptobox.css
index a3eb4ef..c6641ce 100644
--- a/cbox-tree.d/var/www/cryptobox.css
+++ b/cbox-tree.d/var/www/cryptobox-data/cryptobox.css
@@ -1,5 +1,5 @@
body {
- background-image: url(cryptobox-img/backg.gif);
+ background-image: url(backg.gif);
background-position: top center;
background-attachment: fixed;
background-repeat: no-repeat;
@@ -44,7 +44,7 @@ body {
height: 120px;
margin: 0;
padding: 0;
- background-image: url(cryptobox-img/antlogo100px.png);
+ background-image: url(antlogo100px.png);
background-position: top right;
background-attachment: scroll;
background-repeat: no-repeat;
@@ -55,7 +55,7 @@ body {
height: 120px;
margin: 0;
padding: 0;
- background-image: url(cryptobox-img/antlogo100px_green.png);
+ background-image: url(antlogo100px_green.png);
background-position: top right;
background-attachment: scroll;
background-repeat: no-repeat;
@@ -66,7 +66,7 @@ body {
height: 120px;
margin: 0;
padding: 0;
- background-image: url(cryptobox-img/antlogo100px_red.png);
+ background-image: url(antlogo100px_red.png);
background-position: top right;
background-attachment: scroll;
background-repeat: no-repeat;
@@ -152,7 +152,7 @@ body {
#words ul li {
padding: 0 1em;
line-height: 1.7em;
- list-style-image: url(cryptobox-img/list.gif);
+ list-style-image: url(list.gif);
}
#footer {
diff --git a/cbox-tree.d/var/www/cryptobox-img/list.gif b/cbox-tree.d/var/www/cryptobox-data/list.gif
similarity index 100%
rename from cbox-tree.d/var/www/cryptobox-img/list.gif
rename to cbox-tree.d/var/www/cryptobox-data/list.gif
diff --git a/cbox-tree.d/var/www/cryptobox-img/screenshots/de_config.png b/cbox-tree.d/var/www/cryptobox-data/screenshots/de_config.png
similarity index 100%
rename from cbox-tree.d/var/www/cryptobox-img/screenshots/de_config.png
rename to cbox-tree.d/var/www/cryptobox-data/screenshots/de_config.png
diff --git a/cbox-tree.d/var/www/cryptobox-img/screenshots/de_init.png b/cbox-tree.d/var/www/cryptobox-data/screenshots/de_init.png
similarity index 100%
rename from cbox-tree.d/var/www/cryptobox-img/screenshots/de_init.png
rename to cbox-tree.d/var/www/cryptobox-data/screenshots/de_init.png
diff --git a/cbox-tree.d/var/www/cryptobox-img/screenshots/de_mount.png b/cbox-tree.d/var/www/cryptobox-data/screenshots/de_mount.png
similarity index 100%
rename from cbox-tree.d/var/www/cryptobox-img/screenshots/de_mount.png
rename to cbox-tree.d/var/www/cryptobox-data/screenshots/de_mount.png
diff --git a/cbox-tree.d/var/www/cryptobox-img/screenshots/de_w98_login.png b/cbox-tree.d/var/www/cryptobox-data/screenshots/de_w98_login.png
similarity index 100%
rename from cbox-tree.d/var/www/cryptobox-img/screenshots/de_w98_login.png
rename to cbox-tree.d/var/www/cryptobox-data/screenshots/de_w98_login.png
diff --git a/cbox-tree.d/var/www/cryptobox-img/screenshots/de_w98_network_drive.png b/cbox-tree.d/var/www/cryptobox-data/screenshots/de_w98_network_drive.png
similarity index 100%
rename from cbox-tree.d/var/www/cryptobox-img/screenshots/de_w98_network_drive.png
rename to cbox-tree.d/var/www/cryptobox-data/screenshots/de_w98_network_drive.png
diff --git a/cbox-tree.d/var/www/cryptobox-img/screenshots/de_w98_not_logged_in.png b/cbox-tree.d/var/www/cryptobox-data/screenshots/de_w98_not_logged_in.png
similarity index 100%
rename from cbox-tree.d/var/www/cryptobox-img/screenshots/de_w98_not_logged_in.png
rename to cbox-tree.d/var/www/cryptobox-data/screenshots/de_w98_not_logged_in.png
diff --git a/cbox-tree.d/var/www/cryptobox-img/screenshots/en_config.png b/cbox-tree.d/var/www/cryptobox-data/screenshots/en_config.png
similarity index 100%
rename from cbox-tree.d/var/www/cryptobox-img/screenshots/en_config.png
rename to cbox-tree.d/var/www/cryptobox-data/screenshots/en_config.png
diff --git a/cbox-tree.d/var/www/cryptobox-img/screenshots/en_mount.png b/cbox-tree.d/var/www/cryptobox-data/screenshots/en_mount.png
similarity index 100%
rename from cbox-tree.d/var/www/cryptobox-img/screenshots/en_mount.png
rename to cbox-tree.d/var/www/cryptobox-data/screenshots/en_mount.png
diff --git a/cbox-tree.d/var/www/cryptobox-img/screenshots/en_w98_login.png b/cbox-tree.d/var/www/cryptobox-data/screenshots/en_w98_login.png
similarity index 100%
rename from cbox-tree.d/var/www/cryptobox-img/screenshots/en_w98_login.png
rename to cbox-tree.d/var/www/cryptobox-data/screenshots/en_w98_login.png
diff --git a/cbox-tree.d/var/www/cryptobox-img/screenshots/en_w98_network_drive.png b/cbox-tree.d/var/www/cryptobox-data/screenshots/en_w98_network_drive.png
similarity index 100%
rename from cbox-tree.d/var/www/cryptobox-img/screenshots/en_w98_network_drive.png
rename to cbox-tree.d/var/www/cryptobox-data/screenshots/en_w98_network_drive.png
diff --git a/cbox-tree.d/var/www/cryptobox-img/screenshots/en_w98_not_logged_in.png b/cbox-tree.d/var/www/cryptobox-data/screenshots/en_w98_not_logged_in.png
similarity index 100%
rename from cbox-tree.d/var/www/cryptobox-img/screenshots/en_w98_not_logged_in.png
rename to cbox-tree.d/var/www/cryptobox-data/screenshots/en_w98_not_logged_in.png
diff --git a/cbox-tree.d/var/www/cryptobox-img/smile.png b/cbox-tree.d/var/www/cryptobox-data/smile.png
similarity index 100%
rename from cbox-tree.d/var/www/cryptobox-img/smile.png
rename to cbox-tree.d/var/www/cryptobox-data/smile.png
diff --git a/cbox-tree.d/var/www/cryptobox-img/smile4.png b/cbox-tree.d/var/www/cryptobox-data/smile4.png
similarity index 100%
rename from cbox-tree.d/var/www/cryptobox-img/smile4.png
rename to cbox-tree.d/var/www/cryptobox-data/smile4.png
diff --git a/cbox-tree.d/var/www/cryptobox-img/somerights20.gif b/cbox-tree.d/var/www/cryptobox-data/somerights20.gif
similarity index 100%
rename from cbox-tree.d/var/www/cryptobox-img/somerights20.gif
rename to cbox-tree.d/var/www/cryptobox-data/somerights20.gif