Correction : langue on enleve le flag.
Securité : deny access à http://panel-alternc/class/ Menulist dans /etc/alternc et plus dans /var/alternc/bureau/
This commit is contained in:
parent
5668506c08
commit
61071e8c6c
|
@ -164,10 +164,6 @@ bureau/admin/images/delete.png -text
|
||||||
bureau/admin/images/dom.png -text
|
bureau/admin/images/dom.png -text
|
||||||
bureau/admin/images/edit.png -text
|
bureau/admin/images/edit.png -text
|
||||||
bureau/admin/images/exit.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/folder.png -text
|
||||||
bureau/admin/images/folderhta.png -text
|
bureau/admin/images/folderhta.png -text
|
||||||
bureau/admin/images/ftp.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_brouteur.php -text
|
||||||
bureau/admin/menu_dom.php -text
|
bureau/admin/menu_dom.php -text
|
||||||
bureau/admin/menu_ftp.php -text
|
bureau/admin/menu_ftp.php -text
|
||||||
|
bureau/admin/menu_lang.php -text
|
||||||
bureau/admin/menu_mail.php -text
|
bureau/admin/menu_mail.php -text
|
||||||
bureau/admin/menu_mem.php -text
|
bureau/admin/menu_mem.php -text
|
||||||
bureau/admin/menu_quota.php -text
|
bureau/admin/menu_quota.php -text
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 147 B |
Binary file not shown.
Before Width: | Height: | Size: 803 B |
Binary file not shown.
Before Width: | Height: | Size: 168 B |
Binary file not shown.
Before Width: | Height: | Size: 178 B |
|
@ -38,25 +38,15 @@ require_once("../class/config.php");
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$MENUPATH="/var/alternc/bureau/admin/";
|
$MENUPATH="/var/alternc/bureau/admin/";
|
||||||
$tt=@fopen("menulist.txt","rb");
|
$file=file("/etc/alternc/menulist.txt", FILE_SKIP_EMPTY_LINES);
|
||||||
if ($tt) {
|
foreach($file as $v) {
|
||||||
while (!feof ($tt)) {
|
$v=trim($v);
|
||||||
$c=trim(fgets($tt,4096));
|
if ( file_exists($MENUPATH.$v)) include($MENUPATH.$v);
|
||||||
if ($c && file_exists($MENUPATH.$c)) {
|
|
||||||
include($MENUPATH.$c);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
fclose($tt);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<p class="center"><a href="http://www.alternc.org" target="_blank"><img src="logo2.png" border="0" alt="AlternC" /></a>
|
<p class="center"><a href="http://www.alternc.org" target="_blank"><img src="logo2.png" border="0" alt="AlternC" /></a>
|
||||||
<br />
|
<br />
|
||||||
<?php
|
<?php
|
||||||
echo "$L_VERSION";
|
echo "$L_VERSION";
|
||||||
echo "</p><p class='center'>";
|
|
||||||
foreach($locales as $l) { ?>
|
|
||||||
<a href="?setlang=<?php echo $l; ?>"><img alt='<?php __($l); ?>' src='images/flag_<?php echo $l;?>.png' /></a><?php
|
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
<div class="menu-box">
|
||||||
|
<div class="menu-title">
|
||||||
|
<img src="/admin/images/lang.png" alt="<?php __("Langues"); ?>" /> <?php __("Langues"); ?></div>
|
||||||
|
<div class="menu-content" id="menu-lang">
|
||||||
|
<ul>
|
||||||
|
<?php foreach($locales as $l) { ?>
|
||||||
|
<li><a href="/admin/login.php?setlang=<?php echo $l; ?>" target="_top"><?php __($l); ?></a></li>
|
||||||
|
<?php } ?>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/usr/share/alternc/install/alternc.install usr/sbin/alternc.install
|
/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
|
fr_FR var/alternc/bureau/locales/fr_CA
|
||||||
en_US var/alternc/bureau/locales/en_GB
|
en_US var/alternc/bureau/locales/en_GB
|
||||||
|
|
|
@ -55,12 +55,10 @@ case "$1" in
|
||||||
echo "/etc/bind/master was not empty. Please remove it manually."
|
echo "/etc/bind/master was not empty. Please remove it manually."
|
||||||
fi
|
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
|
if [ -f /var/alternc/bureau/admin/menulist.txt ]; then
|
||||||
mv -f /var/alternc/bureau/admin/menulist.txt \
|
mv -f /var/alternc/bureau/admin/menulist.txt \
|
||||||
/etc/alternc/menulist.txt
|
/etc/alternc/menulist.txt
|
||||||
ln -sf /etc/alternc/menulist.txt \
|
|
||||||
/var/alternc/bureau/admin/menulist.txt
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,20 @@
|
||||||
|
|
||||||
ScriptAlias /cgi-bin/ /var/alternc/cgi-bin/
|
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
|
||||||
|
<Directory />
|
||||||
|
Options FollowSymLinks
|
||||||
|
AllowOverride None
|
||||||
|
Order allow,deny
|
||||||
|
Deny from all
|
||||||
|
</Directory>
|
||||||
|
#### End security parameters
|
||||||
|
|
||||||
<Directory /var/alternc/cgi-bin/>
|
<Directory /var/alternc/cgi-bin/>
|
||||||
Options FollowSymLinks IncludesNOEXEC ExecCGI
|
Options FollowSymLinks IncludesNOEXEC ExecCGI
|
||||||
AllowOverride None
|
AllowOverride None
|
||||||
|
@ -11,14 +25,7 @@ ScriptAlias /cgi-bin/ /var/alternc/cgi-bin/
|
||||||
AddHandler cgi-script .cgi
|
AddHandler cgi-script .cgi
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
<Directory />
|
<Directory /var/alternc/bureau/admin/>
|
||||||
Options FollowSymLinks
|
|
||||||
AllowOverride None
|
|
||||||
Order allow,deny
|
|
||||||
Deny from all
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory /var/alternc/bureau>
|
|
||||||
Order allow,deny
|
Order allow,deny
|
||||||
Allow from all
|
Allow from all
|
||||||
|
|
||||||
|
@ -27,6 +34,7 @@ ScriptAlias /cgi-bin/ /var/alternc/cgi-bin/
|
||||||
php_admin_flag register_globals on
|
php_admin_flag register_globals on
|
||||||
AddDefaultCharset ISO-8859-1
|
AddDefaultCharset ISO-8859-1
|
||||||
php_admin_value open_basedir /etc/alternc/:/var/run/alternc/:/var/alternc/bureau/:/var/alternc/html/:/var/alternc/tmp:/tmp:/usr/share/php/:/var/cache/alternc-webalizer/:/etc/locale.gen
|
php_admin_value open_basedir /etc/alternc/:/var/run/alternc/:/var/alternc/bureau/:/var/alternc/html/:/var/alternc/tmp:/tmp:/usr/share/php/:/var/cache/alternc-webalizer/:/etc/locale.gen
|
||||||
|
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -9,3 +9,4 @@ menu_sql.php
|
||||||
menu_quota.php
|
menu_quota.php
|
||||||
menu_aide.php
|
menu_aide.php
|
||||||
menu_mem.php
|
menu_mem.php
|
||||||
|
menu_lang.php
|
||||||
|
|
Loading…
Reference in New Issue