71bbb9f664984aab1cdd4b92010404fc9e21d386
2 /********************************************************************************
3 * include/js_factory.inc.php : The include file for creating dynamic JS functions
4 * --------------------------
6 * This file is part of the philter distribution
7 * Copyright: See COPYING files that comes with this distribution
8 ********************************************************************************/
10 <script language
="javascript1.3" type
="text/javascript">
13 /********** i18n **********/
15 echo "del_i18n = '"._i18n('del')."';\n";
16 echo "del_q_i18n = '"._i18n('del_email_q')."';\n";
18 /********** mail_pool **********/
19 echo $mail_pool->to_js();
21 /********** filter **********/
22 echo $filter->to_js();
24 /********** matches **********/
25 foreach($philter->config
['match_plugins'] as $id=>$plugin) {
26 echo "matches_list[$id] = '" . $plugin->name() . "';\n";
27 echo "matches_func[$id] = " . $plugin->to_js() . ";\n\n";
30 /********** actions **********/
31 foreach($philter->config
['action_plugins'] as $id=>$plugin) {
32 echo "actions_list[$id] = '" . $plugin->name() . "';\n";
33 echo "actions_func[$id] = " . $plugin->to_js() . ";\n\n";
38 /********************************************************************************
40 * vim: set expandtab shiftwidth=4 tabstop=4 softtabstop=4 textwidth=100:
41 ********************************************************************************/