Browse Source

directory structure debianized

URL of stylesheet is now a configurable setting
master
lars 16 years ago
parent
commit
253794d46a
  1. 5
      cbox-tree.d/etc/cryptobox/cryptobox.conf
  2. 4
      cbox-tree.d/usr/lib/cgi-bin/cryptobox.pl
  3. 2
      cbox-tree.d/usr/share/cryptobox/templates/header.cs
  4. 0
      cbox-tree.d/var/www/cryptobox-data/antlogo100px.png
  5. 0
      cbox-tree.d/var/www/cryptobox-data/antlogo100px_green.png
  6. 0
      cbox-tree.d/var/www/cryptobox-data/antlogo100px_red.png
  7. 0
      cbox-tree.d/var/www/cryptobox-data/backg.gif
  8. 10
      cbox-tree.d/var/www/cryptobox-data/cryptobox.css
  9. 0
      cbox-tree.d/var/www/cryptobox-data/list.gif
  10. 0
      cbox-tree.d/var/www/cryptobox-data/screenshots/de_config.png
  11. 0
      cbox-tree.d/var/www/cryptobox-data/screenshots/de_init.png
  12. 0
      cbox-tree.d/var/www/cryptobox-data/screenshots/de_mount.png
  13. 0
      cbox-tree.d/var/www/cryptobox-data/screenshots/de_w98_login.png
  14. 0
      cbox-tree.d/var/www/cryptobox-data/screenshots/de_w98_network_drive.png
  15. 0
      cbox-tree.d/var/www/cryptobox-data/screenshots/de_w98_not_logged_in.png
  16. 0
      cbox-tree.d/var/www/cryptobox-data/screenshots/en_config.png
  17. 0
      cbox-tree.d/var/www/cryptobox-data/screenshots/en_mount.png
  18. 0
      cbox-tree.d/var/www/cryptobox-data/screenshots/en_w98_login.png
  19. 0
      cbox-tree.d/var/www/cryptobox-data/screenshots/en_w98_network_drive.png
  20. 0
      cbox-tree.d/var/www/cryptobox-data/screenshots/en_w98_not_logged_in.png
  21. 0
      cbox-tree.d/var/www/cryptobox-data/smile.png
  22. 0
      cbox-tree.d/var/www/cryptobox-data/smile4.png
  23. 0
      cbox-tree.d/var/www/cryptobox-data/somerights20.gif

5
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

4
cbox-tree.d/var/www/cgi-bin/cryptobox.pl → 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);

2
cbox-tree.d/usr/share/cryptobox/templates/header.cs

@ -10,7 +10,7 @@
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="stylesheet" media="screen" href="/cryptobox.css" type="text/css" />
<link rel="stylesheet" media="screen" href="<?cs var:Settings.Stylesheet ?>" type="text/css" />
<?cs if:Data.Redirect.URL ?><meta http-equiv="refresh" content="<?cs var:Data.Redirect.Delay ?>;url=<?cs var:Data.Redirect.URL ?>" /><?cs
elif:Data.Redirect.Action ?><meta http-equiv="refresh" content="<?cs var:Data.Redirect.Delay ?>;url=<?cs call:getSelfURL('action=' + Data.Redirect.Action, '') ?>" /><?cs /if ?>
</head>

0
cbox-tree.d/var/www/cryptobox-img/antlogo100px.png → cbox-tree.d/var/www/cryptobox-data/antlogo100px.png

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

0
cbox-tree.d/var/www/cryptobox-img/antlogo100px_green.png → cbox-tree.d/var/www/cryptobox-data/antlogo100px_green.png

Before

Width:  |  Height:  |  Size: 8.4 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

0
cbox-tree.d/var/www/cryptobox-img/antlogo100px_red.png → cbox-tree.d/var/www/cryptobox-data/antlogo100px_red.png

Before

Width:  |  Height:  |  Size: 8.0 KiB

After

Width:  |  Height:  |  Size: 8.0 KiB

0
cbox-tree.d/var/www/cryptobox-img/backg.gif → cbox-tree.d/var/www/cryptobox-data/backg.gif

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

10
cbox-tree.d/var/www/cryptobox.css → 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 {

0
cbox-tree.d/var/www/cryptobox-img/list.gif → cbox-tree.d/var/www/cryptobox-data/list.gif

Before

Width:  |  Height:  |  Size: 51 B

After

Width:  |  Height:  |  Size: 51 B

0
cbox-tree.d/var/www/cryptobox-img/screenshots/de_config.png → cbox-tree.d/var/www/cryptobox-data/screenshots/de_config.png

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 78 KiB

0
cbox-tree.d/var/www/cryptobox-img/screenshots/de_init.png → cbox-tree.d/var/www/cryptobox-data/screenshots/de_init.png

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 61 KiB

0
cbox-tree.d/var/www/cryptobox-img/screenshots/de_mount.png → cbox-tree.d/var/www/cryptobox-data/screenshots/de_mount.png

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB

0
cbox-tree.d/var/www/cryptobox-img/screenshots/de_w98_login.png → cbox-tree.d/var/www/cryptobox-data/screenshots/de_w98_login.png

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

0
cbox-tree.d/var/www/cryptobox-img/screenshots/de_w98_network_drive.png → cbox-tree.d/var/www/cryptobox-data/screenshots/de_w98_network_drive.png

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

0
cbox-tree.d/var/www/cryptobox-img/screenshots/de_w98_not_logged_in.png → cbox-tree.d/var/www/cryptobox-data/screenshots/de_w98_not_logged_in.png

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

0
cbox-tree.d/var/www/cryptobox-img/screenshots/en_config.png → cbox-tree.d/var/www/cryptobox-data/screenshots/en_config.png

Before

Width:  |  Height:  |  Size: 83 KiB

After

Width:  |  Height:  |  Size: 83 KiB

0
cbox-tree.d/var/www/cryptobox-img/screenshots/en_mount.png → cbox-tree.d/var/www/cryptobox-data/screenshots/en_mount.png

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 70 KiB

0
cbox-tree.d/var/www/cryptobox-img/screenshots/en_w98_login.png → cbox-tree.d/var/www/cryptobox-data/screenshots/en_w98_login.png

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

0
cbox-tree.d/var/www/cryptobox-img/screenshots/en_w98_network_drive.png → cbox-tree.d/var/www/cryptobox-data/screenshots/en_w98_network_drive.png

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

0
cbox-tree.d/var/www/cryptobox-img/screenshots/en_w98_not_logged_in.png → cbox-tree.d/var/www/cryptobox-data/screenshots/en_w98_not_logged_in.png

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

0
cbox-tree.d/var/www/cryptobox-img/smile.png → cbox-tree.d/var/www/cryptobox-data/smile.png

Before

Width:  |  Height:  |  Size: 356 B

After

Width:  |  Height:  |  Size: 356 B

0
cbox-tree.d/var/www/cryptobox-img/smile4.png → cbox-tree.d/var/www/cryptobox-data/smile4.png

Before

Width:  |  Height:  |  Size: 275 B

After

Width:  |  Height:  |  Size: 275 B

0
cbox-tree.d/var/www/cryptobox-img/somerights20.gif → cbox-tree.d/var/www/cryptobox-data/somerights20.gif

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Loading…
Cancel
Save