Add the following lines to main.inc.php (/config). I put them right before 'skin_path'
/*******************************/
// relative path to the base skin folder //
$rcmail_config['skin_base'] = 'skins/';
/*******************************/
Add the following lines to func.inc (/program/steps/settings). I put them after the reference to "prettydate"
/***********************************************************/
// show skin selection
$field_id = 'rcmfd_skin_path';
$select_skins = new select(array('name' => '_skin_path', 'id' => $field_id));
$dir = $CONFIG['skin_base'];
if (is_dir($dir))
{
chdir($dir);
$dirarr = scandir(getcwd());
//
foreach($dirarr as $value)
{
if (($value != '.') && ($value != '..') && is_dir($value))
{
$select_skins->add($value, 'skins/' . $value . '/');
}
}
}
$out .= sprintf("
| %s |
\n",
$field_id,
rep_specialchars_output(rcube_label('skin_path')),
$select_skins->show($CONFIG['skin_path']));
/***************************************************************/
Also add the following to your labels.inc (/program/localization/en_US for English)
/********************************/
$labels['skin_path'] = 'Skins';
/********************************/
Last but not least save_prefs.inc (/program/steps/settings)
/*********************************************************/
$a_user_prefs['skin_path'] = isset($_POST['_skin_path']) ? ($_POST['_skin_path']) : $CONFIG['skin_path'];
$CONFIG['skin_path'] = $CONFIG['skin_path'] ? unslashify($CONFIG['skin_path']) : 'skins/default';
$skin_path = $CONFIG['skin_path'];
/********************************************************/
That should do the trick. Let me know if something doesn't work, I will try my best to help.