X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Ffilters%2Foptions.php;h=77a62fb3c1295737e25289bdc78c47db9eddcd82;hb=c8a2c24d8574fc4cc23960a864bac25b34f87d54;hp=6fad1b47ca22b9427ed4dec88b5e9f582ed3afc9;hpb=0e838332def195e56273ec10b96385fbe07b9042;p=squirrelmail.git diff --git a/plugins/filters/options.php b/plugins/filters/options.php index 6fad1b47..77a62fb3 100644 --- a/plugins/filters/options.php +++ b/plugins/filters/options.php @@ -1,27 +1,29 @@ '); + $action = 'edit'; + } setPref($data_dir, $username, "filter".$theid, $filter_where.",".$filter_what.",".$filter_folder); $filters[$theid]["where"] = $filter_where; $filters[$theid]["what"] = $filter_what; @@ -50,16 +56,44 @@ filter_swap($theid, $theid - 1); } elseif (isset($action) && $action == 'move_down') { filter_swap($theid, $theid + 1); + } elseif (isset($user_submit)) { + echo "
"._("Saved Scan type")."
\n"; + setPref($data_dir, $username, 'filters_user_scan', $filters_user_scan_set); } $filters = load_filters(); + $filters_user_scan = getPref($data_dir, $username, 'filters_user_scan'); echo '
' . ''. "
". '
' . _("Options") . ' - ' . _("Message Filtering") . '
'. '
'. - '
[' . _("New") . + + '
'. + '
'. + ''. + ''. + ''. + ''. + ''. + '
' . _("What to Scan:") . ''. + '
'. + '
'. + '
'. + + '
[' . _("New") . '] - [' . _("Done") . ']

'; if (isset($action) && ($action == 'add' || $action == 'edit')) { @@ -70,10 +104,10 @@ $theid = count($filters); } echo '
'. - '
'. - '
'. - ''. - ''. + ''. + '
 
'. + ''. + ''. ''. ''. @@ -155,13 +192,13 @@ if (isset($filters[$i + 1])) { echo "" . _("Down") . ''; if ($i > 0) { - echo ' | '; + echo ' | '; } } if ($i > 0) { echo "" . _("Up") . ''; } - echo ']';
' . _("Match:") . ''. ''. '
- '; + echo ']-'; printf( _("If %s contains %s then move to %s"), _($filters[$i]['where']), $filters[$i]['what'], $fdr ); echo '