*
* Displays all optinos about display preferences
*
- * @copyright © 1999-2007 The SquirrelMail Project Team
+ * @copyright 1999-2021 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
$template_themes = $oTemplate->get_alternative_stylesheets(true);
asort($template_themes);
foreach ($template_themes as $sheet=>$name) {
- $theme_values[$sheet] = 'Template Theme - '.htmlspecialchars($name);
+ $theme_values[$sheet] = 'Template Theme - '.sm_encode_html_special_chars($name);
}
// Next, list user-provided styles
asort($user_themes);
foreach ($user_themes as $style) {
if ($style['PATH'] == 'none')
continue;
- $theme_values[$style['PATH']] = 'User Theme - '.htmlspecialchars($style['NAME']);
+ $theme_values[$style['PATH']] = 'User Theme - '.sm_encode_html_special_chars($style['NAME']);
}
if (count($user_themes) + count($template_themes) > 1) {
'size' => SMOPT_SIZE_TINY
);
+ $optvals[SMOPT_GRP_MAILBOX][] = array(
+ 'name' => 'show_personal_names',
+ 'caption' => _("Show Names Instead of Email Addresses"),
+ 'type' => SMOPT_TYPE_BOOLEAN,
+ 'refresh' => SMOPT_REFRESH_NONE,
+ );
+
$optvals[SMOPT_GRP_MAILBOX][] = array(
'name' => 'show_full_date',
'caption' => _("Always Show Full Date"),
'refresh' => SMOPT_REFRESH_ALL
);
+ $optvals[SMOPT_GRP_MESSAGE][] = array(
+ 'name' => 'return_to_message_list_after_move',
+ 'caption' => _("Return To Message List After Move"),
+ 'type' => SMOPT_TYPE_BOOLEAN,
+ 'refresh' => SMOPT_REFRESH_NONE
+ );
+
/*** Load the Address Book Options into the array ***/
// Don't assume the new value is there, double check
// and only save if found
$found = false;
- while (!$found && (list($index, $data) = each($icon_themes))) {
- if ($data['PATH'] == $option->new_value)
+ foreach ($icon_themes as $data) {
+ if ($data['PATH'] == $option->new_value) {
$found = true;
+ break;
+ }
}
if (!$found)
// Don't assume the new value is there, double check
// and only save if found
$found = false;
- reset($user_themes);
- while (!$found && (list($index, $data) = each($user_themes))) {
- if ($data['PATH'] == $option->new_value)
+ foreach ($user_themes as $data) {
+ if ($data['PATH'] == $option->new_value) {
$found = true;
+ break;
+ }
}
if (!$found) {
$template_themes = $oTemplate->get_alternative_stylesheets(true);
- while (!$found && (list($path, $name) = each($template_themes))) {
- if ($path == $option->new_value)
+ foreach ($template_themes as $path => $name) {
+ if ($path == $option->new_value) {
$found = true;
+ break;
+ }
}
}