-
+/**
+ * options_display.php
+ *
+ * Copyright (c) 1999-2002 The SquirrelMail Project Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Displays all optinos about display preferences
+ *
+ * $Id$
+ */
-
-
+/* Define the group constants for the display options page. */
+define('SMOPT_GRP_GENERAL', 0);
+define('SMOPT_GRP_MAILBOX', 1);
+define('SMOPT_GRP_MESSAGE', 2);
-
+ $optvals[SMOPT_GRP_MESSAGE][] = array(
+ 'name' => 'internal_date_sort',
+ 'caption' => _("Use receive date for sort"),
+ 'type' => SMOPT_TYPE_BOOLEAN,
+ 'refresh' => SMOPT_REFRESH_ALL
+ );
+ if ($allow_thread_sort == TRUE) {
+ $optvals[SMOPT_GRP_MESSAGE][] = array(
+ 'name' => 'sort_by_ref',
+ 'caption' => _("Use References header for thread sort"),
+ 'type' => SMOPT_TYPE_BOOLEAN,
+ 'refresh' => SMOPT_REFRESH_ALL
+ );
+ }
+ /* Assemble all this together and return it as our result. */
+ $result = array(
+ 'grps' => $optgrps,
+ 'vals' => $optvals
+ );
+ return ($result);
+}
-
+/******************************************************************/
+/** Define any specialized save functions for this option page. ***/
+/******************************************************************/
- |
-
+function save_option_theme($option) {
+ global $theme;
-
+ /* Do checking to make sure $new_theme is in the array. */
+ $theme_in_array = false;
+ for ($i = 0; $i < count($theme); ++$i) {
+ if ($theme[$i]['PATH'] == $option->new_value) {
+ $theme_in_array = true;
+ break;
+ }
+ }
- |
-