squirrelmail-webmail  1.4.22
About: SquirrelMail is a standards-based webmail package with strong MIME support, address books, and folder manipulation (written in PHP4).
  Fossies Dox: squirrelmail-webmail-1.4.22.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

load_prefs.php File Reference

Go to the source code of this file.

Namespaces

 squirrelmail
 

Variables

if(! sqgetGlobalVar('username', $username, SQ_SESSION)) $custom_css = getPref($data_dir, $username, 'custom_css', 'none' )
 
 $theme = ( !isset($theme) ? array() : $theme )
 
 $color = ( !isset($color) ? array() : $color )
 
 $chosen_theme = getPref($data_dir, $username, 'chosen_theme')
 
 $found_theme = false
 
 $color [0] = '#DCDCDC'
 
 $color [1] = '#800000'
 
 $color [2] = '#CC0000'
 
 $color [3] = '#A0B8C8'
 
 $color [4] = '#FFFFFF'
 
 $color [5] = '#FFFFCC'
 
 $color [6] = '#000000'
 
 $color [7] = '#0000CC'
 
 $color [8] = '#000000'
 
 $color [9] = '#ABABAB'
 
 $color [10] = '#666666'
 
 $color [11] = '#770000'
 
 $color [12] = '#EDEDED'
 
 $color [15] = '#002266'
 
 $color [16] = '#ff9933'
 
if(isset($chosen_theme) && $found_theme &&(file_exists($chosen_theme))) else
 
 $move_to_trash
 
 $save_as_draft
 
if($default_unseen_type=='') if($default_unseen_notify=='') $unseen_type
 
 $unseen_notify
 
 $unseen_cum
 
 $folder_prefix
 
 $load_trash_folder = getPref($data_dir, $username, 'trash_folder')
 
 $load_sent_folder = getPref($data_dir, $username, 'sent_folder')
 
 $load_draft_folder = getPref($data_dir, $username, 'draft_folder')
 
 $show_num = getPref($data_dir, $username, 'show_num', 15 )
 
 $wrap_at = getPref( $data_dir, $username, 'wrap_at', 86 )
 
if($wrap_at< 15) $left_size = getPref($data_dir, $username, 'left_size')
 
if($left_size=='') $editor_size = getPref($data_dir, $username, 'editor_size', 76 )
 
 $editor_height = getPref($data_dir, $username, 'editor_height', 20 )
 
 $use_signature = getPref($data_dir, $username, 'use_signature', SMPREF_OFF )
 
 $prefix_sig = getPref($data_dir, $username, 'prefix_sig')
 
 $timezone = getPref($data_dir, $username, 'timezone', SMPREF_NONE )
 
 $reply_citation_style
 
 $reply_citation_start = getPref($data_dir, $username, 'reply_citation_start')
 
 $reply_citation_end = getPref($data_dir, $username, 'reply_citation_end')
 
 $body_quote = getPref($data_dir, $username, 'body_quote', '>')
 
 $reply_focus = getPref($data_dir, $username, 'reply_focus', '')
 
 $left_refresh = getPref($data_dir, $username, 'left_refresh', 600 )
 
 $sort = getPref($data_dir, $username, 'sort', 6 )
 
 $signature_abs = $signature = getSig($data_dir, $username, 'g')
 
 $message_highlight_list = array()
 
 $order = getPref($data_dir, $username, 'order1')
 
for($i=1; $order;++$i) if(!isset($index_order)) $alt_index_colors
 
 $location_of_bar
 
 $location_of_buttons
 
 $collapse_folders
 
 $show_html_default
 
 $addrsrch_fullname
 
 $enable_forward_as_attachment
 
 $show_xmailer_default
 
 $attachment_common_show_images = getPref($data_dir, $username, 'attachment_common_show_images', SMPREF_OFF )
 
 $pf_cleandisplay = getPref($data_dir, $username, 'pf_cleandisplay', SMPREF_OFF)
 
 $mdn_user_support = getPref($data_dir, $username, 'mdn_user_support', SMPREF_ON)
 
 $include_self_reply_all
 
 $page_selector = getPref($data_dir, $username, 'page_selector', SMPREF_ON)
 
 $page_selector_max = getPref($data_dir, $username, 'page_selector_max', 10)
 
 $date_format = getPref($data_dir, $username, 'date_format', 3)
 
 $hour_format = getPref($data_dir, $username, 'hour_format', SMPREF_TIME_12HR)
 
 $compose_new_win = getPref($data_dir, $username, 'compose_new_win', 0)
 
 $compose_height = getPref($data_dir, $username, 'compose_height', 550)
 
 $compose_width = getPref($data_dir, $username, 'compose_width', 640)
 
 $sig_first = getPref($data_dir, $username, 'sig_first', 0)
 
 $strip_sigs = getPref($data_dir, $username, 'strip_sigs', 0)
 
 $internal_date_sort = getPref($data_dir, $username, 'internal_date_sort', SMPREF_ON)
 
 $sort_by_ref = getPref($data_dir, $username, 'sort_by_ref', 1)
 
 $javascript_setting = getPref($data_dir, $username, 'javascript_setting', SMPREF_JS_AUTODETECT)
 
 $javascript_on = getPref($data_dir, $username, 'javascript_on', SMPREF_ON)
 
 $use_javascript_addr_book = getPref($data_dir, $username, 'use_javascript_addr_book', $default_use_javascript_addr_book)
 
 $search_memory = getPref($data_dir, $username, 'search_memory', 0)
 
 $mailbox_select_style = getPref($data_dir, $username, 'mailbox_select_style', 1)
 
 $show_full_date = getPref($data_dir, $username, 'show_full_date', 0)
 
 $truncate_sender = getPref($data_dir, $username, 'truncate_sender', 50)
 
 $truncate_subject = getPref($data_dir, $username, 'truncate_subject', 50)
 

Variable Documentation

◆ $addrsrch_fullname

$addrsrch_fullname
Initial value:
=
getPref($data_dir, $username, 'addrsrch_fullname', 'fullname')

Definition at line 225 of file load_prefs.php.

Referenced by AddressBook\full_address().

◆ $alt_index_colors

for ( $i=1;$order;++ $i) if (!isset( $index_order)) $alt_index_colors
Initial value:
=
getPref($data_dir, $username, 'alt_index_colors', SMPREF_ON )

Definition at line 210 of file load_prefs.php.

◆ $attachment_common_show_images

$attachment_common_show_images = getPref($data_dir, $username, 'attachment_common_show_images', SMPREF_OFF )

Definition at line 233 of file load_prefs.php.

Referenced by attachment_common_link_image(), and magicHTML().

◆ $body_quote

$body_quote = getPref($data_dir, $username, 'body_quote', '>')

Definition at line 159 of file load_prefs.php.

Referenced by newMail().

◆ $chosen_theme

for ( $i=0;$i< count( $theme);++ $i) $chosen_theme = getPref($data_dir, $username, 'chosen_theme')

Definition at line 30 of file load_prefs.php.

◆ $collapse_folders

$collapse_folders
Initial value:
=
getPref($data_dir, $username, 'collapse_folders', SMPREF_ON)

Definition at line 219 of file load_prefs.php.

Referenced by compute_folder_children(), and formatMailboxName().

◆ $color [1/16]

$color[0] = '#DCDCDC'

This theme as a failsafe if no themes were found. It makes no sense to cause the whole thing to exit just because themes were not found. This is the absolute last resort. Moved here to provide 'sane' defaults for incomplete themes.

Definition at line 50 of file load_prefs.php.

◆ $color [2/16]

$color[10] = '#666666'

Definition at line 60 of file load_prefs.php.

◆ $color [3/16]

$color[11] = '#770000'

Definition at line 61 of file load_prefs.php.

◆ $color [4/16]

$color[12] = '#EDEDED'

Definition at line 62 of file load_prefs.php.

◆ $color [5/16]

$color[15] = '#002266'

Definition at line 63 of file load_prefs.php.

◆ $color [6/16]

$color[16] = '#ff9933'

Definition at line 64 of file load_prefs.php.

◆ $color [7/16]

$color[1] = '#800000'

Definition at line 51 of file load_prefs.php.

◆ $color [8/16]

$color[2] = '#CC0000'

Definition at line 52 of file load_prefs.php.

◆ $color [9/16]

$color[3] = '#A0B8C8'

Definition at line 53 of file load_prefs.php.

◆ $color [10/16]

$color[4] = '#FFFFFF'

Definition at line 54 of file load_prefs.php.

◆ $color [11/16]

$color[5] = '#FFFFCC'

Definition at line 55 of file load_prefs.php.

◆ $color [12/16]

$color[6] = '#000000'

Definition at line 56 of file load_prefs.php.

◆ $color [13/16]

$color[7] = '#0000CC'

Definition at line 57 of file load_prefs.php.

◆ $color [14/16]

$color[8] = '#000000'

Definition at line 58 of file load_prefs.php.

◆ $color [15/16]

$color[9] = '#ABABAB'

Definition at line 59 of file load_prefs.php.

◆ $color [16/16]

$color = ( !isset($color) ? array() : $color )

Definition at line 28 of file load_prefs.php.

Referenced by addr_display_result(), address_form(), addressbook_init(), addressbook_inp_field(), bug_report_button_do(), calendar_header(), checkInput(), CheckNewMailboxSound(), confirm_deletion(), confirm_update(), create_collapse_link(), create_unseen_string(), day_header(), delete_move_next_moveNextForm(), delete_move_next_moveRightMainForm(), delete_move_next_read(), deliverMessage(), display_events(), display_result(), displayMessageArray(), displayPageHeader(), do_error(), drawmonthview(), endcalendar(), error_box(), error_message(), formatAttachments(), formatEnvheader(), formatMailboxName(), formatMenubar(), formatToolbar(), fortune_show(), get_paginator_str(), abook_local_file\list_addr(), list_writable_backends(), load_optpage_data_personal(), logout_error(), abook_local_file\lookup(), mail_message_listing_beginning(), mail_message_listing_end(), mime_structure(), parseEmail(), pf_show_attachments(), plain_error_message(), plugin_listcommands_menu(), printHeader(), printMessageInfo(), printSearchMessages(), abook_local_file\search(), SendMDN(), show_event_form(), show_message_details(), ShowIdentityInfo(), showInputForm(), showMessagesForMailbox(), sqimap_append_checkresponse(), sqimap_get_message(), sqimap_get_small_header_list(), sqimap_login(), sqimap_mailbox_select(), sqimap_read_data_list(), sqimap_run_command(), sqimap_run_command_list(), sqimap_run_literal_command(), sqspell_makePage(), sqspell_makeWindow(), startcalendar(), translate_new_form(), translate_read_form(), translateText(), update_event_form(), view_header(), and writecalendardata().

◆ $compose_height

$compose_height = getPref($data_dir, $username, 'compose_height', 550)

Definition at line 252 of file load_prefs.php.

Referenced by displayPageHeader().

◆ $compose_new_win

$compose_new_win = getPref($data_dir, $username, 'compose_new_win', 0)

◆ $compose_width

$compose_width = getPref($data_dir, $username, 'compose_width', 640)

Definition at line 253 of file load_prefs.php.

Referenced by displayPageHeader().

◆ $custom_css

if (! sqgetGlobalVar( 'username', $username, SQ_SESSION)) $custom_css = getPref($data_dir, $username, 'custom_css', 'none' )

SquirrelMail required files.

Definition at line 25 of file load_prefs.php.

Referenced by displayHtmlHeader().

◆ $date_format

$date_format = getPref($data_dir, $username, 'date_format', 3)

Definition at line 247 of file load_prefs.php.

Referenced by date_intl(), getDateString(), and getLongDateString().

◆ $editor_height

$editor_height = getPref($data_dir, $username, 'editor_height', 20 )

Definition at line 145 of file load_prefs.php.

Referenced by showInputForm().

◆ $editor_size

if ( $left_size=='') $editor_size = getPref($data_dir, $username, 'editor_size', 76 )

◆ $enable_forward_as_attachment

$enable_forward_as_attachment
Initial value:
=
getPref($data_dir, $username, 'enable_forward_as_attachment', SMPREF_ON)

Definition at line 228 of file load_prefs.php.

Referenced by formatMenubar().

◆ $folder_prefix

◆ $found_theme

$found_theme = false

Definition at line 31 of file load_prefs.php.

◆ $hour_format

$hour_format = getPref($data_dir, $username, 'hour_format', SMPREF_TIME_12HR)

Definition at line 248 of file load_prefs.php.

Referenced by getDateString(), and getLongDateString().

◆ $include_self_reply_all

$include_self_reply_all
Initial value:
=
getPref($data_dir, $username, 'include_self_reply_all', SMPREF_ON)

Definition at line 239 of file load_prefs.php.

Referenced by replyAllString().

◆ $internal_date_sort

$internal_date_sort = getPref($data_dir, $username, 'internal_date_sort', SMPREF_ON)

Definition at line 263 of file load_prefs.php.

Referenced by calc_msort(), printHeader(), printMessageInfo(), and sqimap_get_sort_order().

◆ $javascript_on

◆ $javascript_setting

$javascript_setting = getPref($data_dir, $username, 'javascript_setting', SMPREF_JS_AUTODETECT)

Definition at line 269 of file load_prefs.php.

◆ $left_refresh

$left_refresh = getPref($data_dir, $username, 'left_refresh', 600 )

Definition at line 167 of file load_prefs.php.

◆ $left_size

if ( $wrap_at< 15) $left_size = getPref($data_dir, $username, 'left_size')

Definition at line 135 of file load_prefs.php.

◆ $load_draft_folder

$load_draft_folder = getPref($data_dir, $username, 'draft_folder')

Definition at line 123 of file load_prefs.php.

◆ $load_sent_folder

$load_sent_folder = getPref($data_dir, $username, 'sent_folder')

Definition at line 115 of file load_prefs.php.

◆ $load_trash_folder

$load_trash_folder = getPref($data_dir, $username, 'trash_folder')

Definition at line 107 of file load_prefs.php.

◆ $location_of_bar

$location_of_bar
Initial value:
=

Definition at line 214 of file load_prefs.php.

◆ $location_of_buttons

$location_of_buttons
Initial value:
=
getPref($data_dir, $username, 'location_of_buttons', SMPREF_LOC_BETWEEN)

Definition at line 216 of file load_prefs.php.

Referenced by showInputForm().

◆ $mailbox_select_style

$mailbox_select_style = getPref($data_dir, $username, 'mailbox_select_style', 1)

Definition at line 275 of file load_prefs.php.

◆ $mdn_user_support

$mdn_user_support = getPref($data_dir, $username, 'mdn_user_support', SMPREF_ON)

◆ $message_highlight_list

$message_highlight_list = array()

Definition at line 176 of file load_prefs.php.

Referenced by printMessageInfo(), and sqimap_search().

◆ $move_to_trash

◆ $order

$order = getPref($data_dir, $username, 'order1')

Definition at line 197 of file load_prefs.php.

◆ $page_selector

$page_selector = getPref($data_dir, $username, 'page_selector', SMPREF_ON)

Definition at line 243 of file load_prefs.php.

◆ $page_selector_max

$page_selector_max = getPref($data_dir, $username, 'page_selector_max', 10)

Definition at line 244 of file load_prefs.php.

◆ $pf_cleandisplay

$pf_cleandisplay = getPref($data_dir, $username, 'pf_cleandisplay', SMPREF_OFF)

Definition at line 234 of file load_prefs.php.

◆ $prefix_sig

$prefix_sig = getPref($data_dir, $username, 'prefix_sig')

Definition at line 147 of file load_prefs.php.

Referenced by showInputForm().

◆ $reply_citation_end

$reply_citation_end = getPref($data_dir, $username, 'reply_citation_end')

Definition at line 157 of file load_prefs.php.

Referenced by getReplyCitation().

◆ $reply_citation_start

$reply_citation_start = getPref($data_dir, $username, 'reply_citation_start')

Definition at line 156 of file load_prefs.php.

Referenced by getReplyCitation().

◆ $reply_citation_style

$reply_citation_style
Initial value:
=
getPref($data_dir, $username, 'reply_citation_style', SMPREF_NONE )

Definition at line 154 of file load_prefs.php.

Referenced by getReplyCitation().

◆ $reply_focus

$reply_focus = getPref($data_dir, $username, 'reply_focus', '')

Definition at line 164 of file load_prefs.php.

Referenced by compose_Header(), and displayPageHeader().

◆ $save_as_draft

$save_as_draft

◆ $search_memory

$search_memory = getPref($data_dir, $username, 'search_memory', 0)

Definition at line 273 of file load_prefs.php.

◆ $show_full_date

$show_full_date = getPref($data_dir, $username, 'show_full_date', 0)

Definition at line 279 of file load_prefs.php.

Referenced by getDateString().

◆ $show_html_default

$show_html_default
Initial value:
=
getPref($data_dir, $username, 'show_html_default', SMPREF_OFF)

Definition at line 222 of file load_prefs.php.

Referenced by formatBody().

◆ $show_num

◆ $show_xmailer_default

$show_xmailer_default
Initial value:
=
getPref($data_dir, $username, 'show_xmailer_default', SMPREF_OFF )

Definition at line 231 of file load_prefs.php.

Referenced by formatEnvheader().

◆ $sig_first

$sig_first = getPref($data_dir, $username, 'sig_first', 0)

Definition at line 257 of file load_prefs.php.

Referenced by showInputForm().

◆ $signature_abs

$signature_abs = $signature = getSig($data_dir, $username, 'g')

Definition at line 173 of file load_prefs.php.

◆ $sort

◆ $sort_by_ref

$sort_by_ref = getPref($data_dir, $username, 'sort_by_ref', 1)

Definition at line 266 of file load_prefs.php.

Referenced by get_thread_sort().

◆ $strip_sigs

$strip_sigs = getPref($data_dir, $username, 'strip_sigs', 0)

Definition at line 260 of file load_prefs.php.

Referenced by newMail().

◆ $theme

$theme = ( !isset($theme) ? array() : $theme )

Definition at line 27 of file load_prefs.php.

◆ $timezone

$timezone = getPref($data_dir, $username, 'timezone', SMPREF_NONE )

Definition at line 150 of file load_prefs.php.

◆ $truncate_sender

$truncate_sender = getPref($data_dir, $username, 'truncate_sender', 50)

Definition at line 282 of file load_prefs.php.

Referenced by printMessageInfo().

◆ $truncate_subject

$truncate_subject = getPref($data_dir, $username, 'truncate_subject', 50)

Definition at line 284 of file load_prefs.php.

Referenced by printMessageInfo().

◆ $unseen_cum

$unseen_cum
Initial value:
=
getPref($data_dir, $username, 'unseen_cum', false)

Definition at line 100 of file load_prefs.php.

Referenced by create_unseen_string().

◆ $unseen_notify

$unseen_notify
Initial value:

Definition at line 97 of file load_prefs.php.

Referenced by CheckNewMailboxSound(), create_collapse_link(), and formatMailboxName().

◆ $unseen_type

if ( $default_unseen_type=='') if ( $default_unseen_notify=='') $unseen_type
Initial value:

Definition at line 95 of file load_prefs.php.

Referenced by CheckNewMailboxSound(), create_unseen_string(), and formatMailboxName().

◆ $use_javascript_addr_book

$use_javascript_addr_book = getPref($data_dir, $username, 'use_javascript_addr_book', $default_use_javascript_addr_book)

Definition at line 271 of file load_prefs.php.

Referenced by showComposeButtonRow(), and showInputForm().

◆ $use_signature

$use_signature = getPref($data_dir, $username, 'use_signature', SMPREF_OFF )

Definition at line 146 of file load_prefs.php.

Referenced by newMail(), and showInputForm().

◆ $wrap_at

$wrap_at = getPref( $data_dir, $username, 'wrap_at', 86 )

Definition at line 132 of file load_prefs.php.

Referenced by formatBody(), pf_clean_string(), translate_read_form(), and translateText().

◆ else

if ($ser=getPref( $data_dir, $username, 'hililist')) else
Initial value:
{
if (isset($theme) && isset($theme[$theme_default]) && file_exists($theme[$theme_default]['PATH'])) {
@include_once($theme[$theme_default]['PATH']);
}
}
if (!defined('download_php')) {
}
$move_to_sent =

Definition at line 68 of file load_prefs.php.

getPref
getPref($data_dir, $username, $string, $default='')
Definition: db_prefs.php:316
$theme_css
$theme_css
Definition: config_default.php:696
$data_dir
$data_dir
Definition: config_default.php:499
$default_move_to_sent
$default_move_to_sent
Definition: config_default.php:392
$default_save_as_draft
$default_save_as_draft
Definition: config_default.php:393
$username
global $username
Definition: validate.php:55
SMPREF_LOC_LEFT
const SMPREF_LOC_LEFT
Definition: constants.php:35
$default_unseen_notify
$default_unseen_notify
Definition: config_default.php:464
$chosen_theme
$chosen_theme
Definition: load_prefs.php:30
SMPREF_NONE
const SMPREF_NONE
Definition: constants.php:29
$theme_default
$theme_default
Definition: config_default.php:695
SMPREF_OFF
const SMPREF_OFF
Definition: constants.php:26
sqsession_register
sqsession_register($var, $name)
Definition: global.php:289
$default_move_to_trash
$default_move_to_trash
Definition: config_default.php:391
SMPREF_ON
const SMPREF_ON
Definition: constants.php:28
$default_unseen_type
$default_unseen_type
Definition: config_default.php:465
$default_folder_prefix
$default_folder_prefix
Definition: config_default.php:342
SMPREF_LOC_BETWEEN
const SMPREF_LOC_BETWEEN
Definition: constants.php:33
$theme
$theme
Definition: load_prefs.php:27