* This program is licensed under GPL. See COPYING for details
*
*/
global $sent_confirmation_debug;
$sent_confirmation_debug = 0;
// include compatibility plugin
//
if (defined('SM_PATH'))
include_once(SM_PATH . 'plugins/compatibility/functions.php');
else if (file_exists('../plugins/compatibility/functions.php'))
include_once('../plugins/compatibility/functions.php');
else if (file_exists('./plugins/compatibility/functions.php'))
include_once('./plugins/compatibility/functions.php');
function sent_conf_options() {
global $sent_conf_allow_user_override, $sent_conf_message_style,
$sent_conf_include_recip_addr, $sent_conf_show_only_first_recip_addr,
$username, $data_dir, $sent_conf_include_cc, $sent_conf_include_bcc,
$sent_conf_show_headers, $sent_conf_enable_orig_msg_options, $sent_conf_enable;
if (compatibility_check_sm_version(1, 3))
include_once (SM_PATH . 'plugins/sent_confirmation/config.php');
else
include_once ('../plugins/sent_confirmation/config.php');
if (!$sent_conf_allow_user_override)
return;
$sent_conf_enable = ($sent_conf_message_style == 'off' ? 0 : 1);
$sent_conf_enable = getPref($data_dir, $username, 'sent_conf_enable', $sent_conf_enable);
$sent_conf_style = getPref($data_dir, $username, 'sent_conf_style', $sent_conf_message_style);
$sent_conf_incl_recip = getPref($data_dir, $username, 'sent_conf_incl_recip', $sent_conf_include_recip_addr);
$sent_conf_show_only_first_recip_addr = getPref($data_dir, $username, 'sent_conf_show_only_first_recip_addr', $sent_conf_show_only_first_recip_addr);
$sent_conf_include_cc = getPref($data_dir, $username, 'sent_conf_include_cc', $sent_conf_include_cc);
$sent_conf_include_bcc = getPref($data_dir, $username, 'sent_conf_include_bcc', $sent_conf_include_bcc);
$sent_conf_show_headers = getPref($data_dir, $username, 'sent_conf_show_headers', $sent_conf_show_headers);
$sent_conf_enable_orig_msg_options = getPref($data_dir, $username, 'sent_conf_enable_orig_msg_options', $sent_conf_enable_orig_msg_options);
bindtextdomain('sent_confirmation', SM_PATH . 'plugins/sent_confirmation/locale');
textdomain('sent_confirmation');
echo "
| |
\n"
. "| "
. _("Sent Mail Confirmation") . " |
\n";
echo "| \n".
_("Confirm Recipients:") . " | \n".
" " . _("Yes") . "\n".
" " . _("No") . "\n".
" |
\n";
echo "| \n".
_("Above Message List:") . " | \n".
"\n |
\n".
"| \n".
_("Above Message List, Expanded:") . " | \n".
"\n |
\n".
"\n".
_("Transitional Window, With Address Book Functionality:") . " | \n".
"\n |
\n".
"| \n".
_("Transitional Window, Simple:") . " | \n".
"\n |
\n".
"| \n".
_("Show Header Fields:") . " | \n".
" " . _("Yes") . "\n".
" " . _("No") . "\n".
" |
\n";
echo "| \n".
_("Include Recipient Address:") . " | \n".
" " . _("Yes") . "\n".
" " . _("No") . "\n".
" |
\n";
echo "| \n".
_("Only Show First Recipient:") . " | \n".
" " . _("Yes") . "\n".
" " . _("No") . "\n".
" |
\n";
echo "| \n".
_("Show Cc Recipients:") . " | \n".
" " . _("Yes") . "\n".
" " . _("No") . "\n".
" |
\n";
echo "| \n".
_("Show Bcc Recipients:") . " | \n".
" " . _("Yes") . "\n".
" " . _("No") . "\n".
" |
\n";
echo "| \n".
_("Enable Original Message Options:") . " | \n".
" " . _("Yes") . "\n".
" " . _("No") . "\n".
" |
\n";
bindtextdomain('squirrelmail', SM_PATH . 'locale');
textdomain('squirrelmail');
}
function sent_conf_options_save() {
global $sent_conf_allow_user_override, $username, $data_dir,
$sent_conf_style, $sent_conf_incl_recip, $sent_conf_include_cc,
$sent_conf_show_only_first_recip_addr, $sent_conf_include_bcc,
$sent_conf_show_headers, $sent_conf_enable_orig_msg_options,
$sent_conf_enable;
if (compatibility_check_sm_version(1, 3))
include_once (SM_PATH . 'plugins/sent_confirmation/config.php');
else
include_once ('../plugins/sent_confirmation/config.php');
if (!$sent_conf_allow_user_override)
return;
compatibility_sqextractGlobalVar('sent_conf_enable');
compatibility_sqextractGlobalVar('sent_conf_style');
compatibility_sqextractGlobalVar('sent_conf_incl_recip');
compatibility_sqextractGlobalVar('sent_conf_show_only_first_recip_addr');
compatibility_sqextractGlobalVar('sent_conf_include_cc');
compatibility_sqextractGlobalVar('sent_conf_include_bcc');
compatibility_sqextractGlobalVar('sent_conf_show_headers');
compatibility_sqextractGlobalVar('sent_conf_enable_orig_msg_options');
setPref($data_dir, $username, 'sent_conf_enable', $sent_conf_enable);
setPref($data_dir, $username, 'sent_conf_style', $sent_conf_style);
setPref($data_dir, $username, 'sent_conf_incl_recip', $sent_conf_incl_recip);
setPref($data_dir, $username, 'sent_conf_show_only_first_recip_addr', $sent_conf_show_only_first_recip_addr);
setPref($data_dir, $username, 'sent_conf_include_cc', $sent_conf_include_cc);
setPref($data_dir, $username, 'sent_conf_include_bcc', $sent_conf_include_bcc);
setPref($data_dir, $username, 'sent_conf_show_headers', $sent_conf_show_headers);
setPref($data_dir, $username, 'sent_conf_enable_orig_msg_options', $sent_conf_enable_orig_msg_options);
}
?>