~quam-plures-core/quam-plures/file_manager_limits

« back to all changes in this revision

Viewing changes to qp_inc/antispam/distribute.ctrl.php

  • Committer: EdB
  • Date: 2013-03-04 07:15:41 UTC
  • mfrom: (7655.1.3 qp5_antispam)
  • Revision ID: 1912webworks@gmail.com-20130304071541-x462crs4d531rh69
http://forums.quamplures.net/viewtopic.php?f=6&t=1887

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/**
 
3
 * $ctrl_mappings: 'aspm_distro' || Tools -> Antispam -> Distribute Antispam
 
4
 *
 
5
 * @uses antispam_create()
 
6
 * @uses antispam_delete()
 
7
 * @author {@link http://wonderwinds.com/ Ed Bennett}
 
8
 * @copyright (c) 2013 by {@link http://quamplures.net/ the Quam Plures project}
 
9
 * @license http://www.gnu.org/licenses/gpl.txt GNU General Public License v3
 
10
 * @package antispam
 
11
 */
 
12
if(!defined('QP_MAIN_INIT')) die('fail');
 
13
 
 
14
$AdminUI->set_path( 'tools', 'antispam', 'daspm' );
 
15
 
 
16
param( 'action', 'string' );
 
17
param( 'confirm', 'string' );
 
18
param( 'keyword', 'string', '', true );
 
19
param( 'domain', 'string' );
 
20
param( 'filteron', 'string', '', true );
 
21
param( 'filter', 'array', array() );
 
22
 
 
23
if( isset( $filter['off'] ) )
 
24
{
 
25
        unset( $filteron );
 
26
        forget_param( 'filteron' );
 
27
}
 
28
 
 
29
// Check permission
 
30
$current_User->check_perm( 'spamblacklist', 'view', true );
 
31
 
 
32
switch( $action )
 
33
{
 
34
        case 'ban':
 
35
        break;
 
36
 
 
37
        case 'remove':
 
38
        break;
 
39
}
 
40
 
 
41
// Display <html><head>...</head> section (should be done early if actions do not redirect)
 
42
$AdminUI->disp_html_head();
 
43
// Display title, menu, messages, etc... (messages MUST be displayed AFTER the actions)
 
44
$AdminUI->disp_body_top();
 
45
// Begin payload block
 
46
$AdminUI->disp_payload_begin();
 
47
// Display final (unbound) menu depth
 
48
echo $AdminUI->get_html_menu( array( 'tools', 'antispam' ), 'menu3' );
 
49
 
 
50
// Display VIEW
 
51
$AdminUI->disp_view( 'antispam/views/_distribute.view.php' ); // Display blacklist
 
52
 
 
53
// End payload block
 
54
$AdminUI->disp_payload_end();
 
55
// Display body bottom, debug info, close </html>
 
56
$AdminUI->disp_global_footer();
 
57
 
 
58
?>