612cf49305b69ae2e4c617e68df68b14bdd2863b
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 /********** mail_pool **********/
14 echo $mail_pool->to_js();
16 /********** filter **********/
17 echo $filter->to_js();
19 /********** matches **********/
20 foreach($philter->config
['match_plugins'] as $id=>$plugin) {
21 echo "matches_list[$id] = '" . $plugin->name() . "';\n";
22 echo "matches_func[$id] = " . $plugin->to_js() . ";\n\n";
25 /********** actions **********/
26 foreach($philter->config
['action_plugins'] as $id=>$plugin) {
27 echo "actions_list[$id] = '" . $plugin->name() . "';\n";
28 echo "actions_func[$id] = " . $plugin->to_js() . ";\n\n";
33 /********************************************************************************
35 * vim: set expandtab shiftwidth=4 tabstop=4 softtabstop=4 textwidth=100:
36 ********************************************************************************/