git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3784
7612ce4b-ef26-0410-bec9-
ea0150e637f0
$chosen_theme = getPref($data_dir, $username, 'chosen_theme');
$found_theme = false;
$chosen_theme = getPref($data_dir, $username, 'chosen_theme');
$found_theme = false;
+
+/* need to adjust $chosen_theme path with SM_PATH */
+$chosen_theme = preg_replace("/(\.\.\/){1,}/", SM_PATH, $chosen_theme);
+
for ($i = 0; $i < count($theme); ++$i){
if ($theme[$i]['PATH'] == $chosen_theme) {
$found_theme = true;
for ($i = 0; $i < count($theme); ++$i){
if ($theme[$i]['PATH'] == $chosen_theme) {
$found_theme = true;
+sqsession_register($color, 'color');
+
if (!defined('download_php')) {
session_register('theme_css');
}
if (!defined('download_php')) {
session_register('theme_css');
}