X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=philter%2Fphilter%2Findex.php;h=e8022dee45fc15789e4d0586f27ad7ece4012318;hb=b19786cae5cfa315f04cfbb7a9bef1c6471d4810;hp=4ba4396d2a83bfa54acdd5a0b20cf13349815bfc;hpb=9bdb0bb9ae3f32f82e9c1b9b24de4128b711ecb6;p=old-projects.git diff --git a/philter/philter/index.php b/philter/philter/index.php index 4ba4396..e8022de 100644 --- a/philter/philter/index.php +++ b/philter/philter/index.php @@ -11,6 +11,9 @@ require("include/header.inc.php"); require("include/philter.inc.php"); require("include/config.inc.php"); +if(isset($_POST['set_adv'])) + $philter->set_advanced(); + $mail_pool = new EmailPool(get_user_id()); $filter = new Filter(get_user_id()); @@ -43,122 +46,12 @@ if(count($_POST)) { // a FORM has been submitted require("include/js_factory.inc.php"); -/********** globals plugins **********/ -?> -
-config['global_plugins'])) { - echo "
\n" - ."\n"; - - $pair = 0; - foreach($philter->config['global_plugins'] as $id=>$g_plugin) { - echo "\n"; - $pair = 1 - $pair; - } - - echo "
\n"; - echo $g_plugin->to_form($filter->get_global_data($id)); - echo "

\n" - ."
\n"; -} - -/********** emails **********/ -?> -
-
-to_form(); - -/********** filters **********/ -?> - -
-
- - - - - -
- - - - -
-rules as $id=>$rule) - if($id) - echo "rank}\" />\n"; - - $presel = (isset($_POST['rule']['id']) ? $_POST['rule']['id'] - : (isset($_POST['order']['select']) ? $_POST['order']['select'] : 0)); - - echo " -
- -
- - - -
- -
-
- - - -
-
- -
-
- - -
- - -
-
-
-
-
- - - - -
-
-
- - - -is_advanced()) + require("include/form_filter.inc.php"); +else + require("include/form_emails.inc.php"); require("include/footer.inc.php"); - /******************************************************************************** * $id: header.inc.php,v 1.2 2003/08/03 16:02:41 madcoder exp $ * vim: set expandtab shiftwidth=4 tabstop=4 softtabstop=4 textwidth=100: