There is must be some way to switch off this Skin Chooser or set onky skins you want your users to use...
The change is to add:
@include(INSTALL_PATH . 'skins/index.inc');
in function:
function rcmail_get_skins()
{
...
}
So you will get this one:
function rcmail_get_skins()
{
$path = 'skins';
$skins = array();
$dir = opendir($path);
if (!$dir)
return false;
while (($file = readdir($dir)) !== false)
{
$filename = $path.'/'.$file;
if (is_dir($filename) && is_readable($filename)
&& !in_array($file, array('.', '..', '.svn')))
$skins[] = $file;
}
closedir($dir);
@include(INSTALL_PATH . 'skins/index.inc');
return $skins;
}
After that you can create in directory:
skins
the file:
index.inc
with code like:
<?php
$skins = array (
'Test' => 'test',
'Default' => 'default'
);
?>
This is for cases when you have a lot of skins on "skins" directory.