diff --git a/.gitattributes b/.gitattributes index 72559bbf..8365479b 100644 --- a/.gitattributes +++ b/.gitattributes @@ -164,10 +164,6 @@ bureau/admin/images/delete.png -text bureau/admin/images/dom.png -text bureau/admin/images/edit.png -text bureau/admin/images/exit.png -text -bureau/admin/images/flag_de_DE.png -text -bureau/admin/images/flag_en_US.png -text -bureau/admin/images/flag_es_ES.png -text -bureau/admin/images/flag_fr_FR.png -text bureau/admin/images/folder.png -text bureau/admin/images/folderhta.png -text bureau/admin/images/ftp.png -text @@ -234,6 +230,7 @@ bureau/admin/menu_aide.php -text bureau/admin/menu_brouteur.php -text bureau/admin/menu_dom.php -text bureau/admin/menu_ftp.php -text +bureau/admin/menu_lang.php -text bureau/admin/menu_mail.php -text bureau/admin/menu_mem.php -text bureau/admin/menu_quota.php -text diff --git a/bureau/admin/images/flag_de_DE.png b/bureau/admin/images/flag_de_DE.png deleted file mode 100644 index 0a6a8703..00000000 Binary files a/bureau/admin/images/flag_de_DE.png and /dev/null differ diff --git a/bureau/admin/images/flag_en_US.png b/bureau/admin/images/flag_en_US.png deleted file mode 100644 index a1e212e9..00000000 Binary files a/bureau/admin/images/flag_en_US.png and /dev/null differ diff --git a/bureau/admin/images/flag_es_ES.png b/bureau/admin/images/flag_es_ES.png deleted file mode 100644 index ba6f854b..00000000 Binary files a/bureau/admin/images/flag_es_ES.png and /dev/null differ diff --git a/bureau/admin/images/flag_fr_FR.png b/bureau/admin/images/flag_fr_FR.png deleted file mode 100644 index 1d3c5dc4..00000000 Binary files a/bureau/admin/images/flag_fr_FR.png and /dev/null differ diff --git a/bureau/admin/menu.php b/bureau/admin/menu.php index 8e8b3a4c..84a2af30 100644 --- a/bureau/admin/menu.php +++ b/bureau/admin/menu.php @@ -38,25 +38,15 @@ require_once("../class/config.php");
"; -foreach($locales as $l) { ?> -
diff --git a/bureau/admin/menu_lang.php b/bureau/admin/menu_lang.php new file mode 100644 index 00000000..a10f1277 --- /dev/null +++ b/bureau/admin/menu_lang.php @@ -0,0 +1,12 @@ + + diff --git a/debian/alternc.links b/debian/alternc.links index 0406226f..366b9315 100644 --- a/debian/alternc.links +++ b/debian/alternc.links @@ -1,4 +1,3 @@ /usr/share/alternc/install/alternc.install usr/sbin/alternc.install -/etc/alternc/menulist.txt var/alternc/bureau/admin/menulist.txt fr_FR var/alternc/bureau/locales/fr_CA en_US var/alternc/bureau/locales/en_GB diff --git a/debian/alternc.preinst b/debian/alternc.preinst index baf0be1a..e9381271 100644 --- a/debian/alternc.preinst +++ b/debian/alternc.preinst @@ -55,12 +55,10 @@ case "$1" in echo "/etc/bind/master was not empty. Please remove it manually." fi - if [ ! -h /var/alternc/bureau/admin/menulist.txt ]; then + if [ ! -e /etc/alternc/menulist.txt ]; then if [ -f /var/alternc/bureau/admin/menulist.txt ]; then mv -f /var/alternc/bureau/admin/menulist.txt \ /etc/alternc/menulist.txt - ln -sf /etc/alternc/menulist.txt \ - /var/alternc/bureau/admin/menulist.txt fi fi diff --git a/etc/alternc/apache2.conf b/etc/alternc/apache2.conf index a5667c6c..47ef014c 100644 --- a/etc/alternc/apache2.conf +++ b/etc/alternc/apache2.conf @@ -3,6 +3,20 @@ ScriptAlias /cgi-bin/ /var/alternc/cgi-bin/ +#### Some security parameters +# We set a PhpMyAdmin alias to override the one PhpMyAdmin may have installed +# to prevent phpmyadmin to be bruteforced "by default" +Alias /phpmyadmin /usr/share/phpmyadmin + +# Deny access to the root filesystem +