Fix: L'écran de personalisation des paramètres doit etre accessible à l'utilisateur.
This commit is contained in:
parent
20fea3c804
commit
7682e026b9
@ -163,7 +163,6 @@ if ($_GET["action"] == 'edit')
|
|||||||
|
|
||||||
// Theme
|
// Theme
|
||||||
show_theme(1);
|
show_theme(1);
|
||||||
print '<br>';
|
|
||||||
|
|
||||||
print '</div>';
|
print '</div>';
|
||||||
|
|
||||||
@ -199,7 +198,6 @@ else
|
|||||||
|
|
||||||
// Skin
|
// Skin
|
||||||
show_theme(0);
|
show_theme(0);
|
||||||
print '<br>';
|
|
||||||
|
|
||||||
print '</div>';
|
print '</div>';
|
||||||
|
|
||||||
@ -219,7 +217,7 @@ llxFooter('$Date$ - $Revision$');
|
|||||||
|
|
||||||
function show_theme($edit=0)
|
function show_theme($edit=0)
|
||||||
{
|
{
|
||||||
global $langs,$dirtheme,$bc;
|
global $user,$langs,$dirtheme,$bc;
|
||||||
|
|
||||||
$nbofthumbs=5;
|
$nbofthumbs=5;
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
@ -240,7 +238,7 @@ function show_theme($edit=0)
|
|||||||
$file=$dirtheme."/".$subdir."/thumb.png";
|
$file=$dirtheme."/".$subdir."/thumb.png";
|
||||||
if (! file_exists($file)) $file=$dirtheme."/nophoto.jpg";
|
if (! file_exists($file)) $file=$dirtheme."/nophoto.jpg";
|
||||||
print '<table><tr><td><img src="'.$file.'" width="80" height="60"></td></tr><tr><td align="center">';
|
print '<table><tr><td><img src="'.$file.'" width="80" height="60"></td></tr><tr><td align="center">';
|
||||||
if ($subdir == MAIN_THEME)
|
if ($subdir == $user->conf->MAIN_THEME)
|
||||||
{
|
{
|
||||||
print '<input '.($edit?'':'disabled').' type="radio" '.$bc[$var].' style="border: 0px;" checked name="main_theme" value="'.$subdir.'"> <b>'.$subdir.'</b>';
|
print '<input '.($edit?'':'disabled').' type="radio" '.$bc[$var].' style="border: 0px;" checked name="main_theme" value="'.$subdir.'"> <b>'.$subdir.'</b>';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user