Changes in [1508:60c4414bcd87:1512:ef727a109ce6]
- Location:
- plugins/antispam
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/antispam/filters/class.dc.filter.ip.php
r1454 r1512 17 17 public $has_gui = true; 18 18 19 private $style_list = 'height: 200px; overflow: auto; margin-bottom: 1em; ';20 private $style_p = 'margin: 1px 0 0 0; padding: 0.2em 0.5em; ';21 private $style_global = 'background: #ccff99; ';22 23 19 private $con; 24 20 private $table; … … 151 147 '<form action="'.html::escapeURL($url).'" method="post">'. 152 148 '<h3>' . __('IP list') . '</h3>'. 153 '<div style="'.$this->style_list.'">';149 '<div class="antispam">'; 154 150 155 151 $res_global = ''; … … 163 159 164 160 $disabled_ip = false; 165 $p_style = $this->style_p;161 $p_style = ''; 166 162 if (!$rs->blog_id) { 167 163 $disabled_ip = !$core->auth->isSuperAdmin(); 168 $p_style .= $this->style_global;164 $p_style .= ' global'; 169 165 } 170 166 171 167 $item = 172 '<p style="'.$p_style.'"><label class="classic" for="'.$type.'-ip-'.$rs->rule_id.'">'.168 '<p class="'.$p_style.'"><label class="classic" for="'.$type.'-ip-'.$rs->rule_id.'">'. 173 169 form::checkbox(array('delip[]',$type.'-ip-'.$rs->rule_id),$rs->rule_id,false,'','',$disabled_ip).' '. 174 170 html::escapeHTML($pattern). -
plugins/antispam/filters/class.dc.filter.words.php
r1454 r1512 17 17 public $name = 'Bad Words'; 18 18 19 private $style_list = 'height: 200px; overflow: auto; margin-bottom: 1em; ';20 private $style_p = 'margin: 1px 0 0 0; padding: 0.2em 0.5em; ';21 private $style_global = 'background: #ccff99; ';22 23 19 private $con; 24 20 private $table; … … 143 139 '<form action="'.html::escapeURL($url).'" method="post" class="fieldset">'. 144 140 '<h3>' . __('List of bad words') . '</h3>'. 145 '<div style="'.$this->style_list.'">';141 '<div class="antispam">'; 146 142 147 143 $res_global = ''; … … 150 146 { 151 147 $disabled_word = false; 152 $p_style = $this->style_p; 148 149 $p_style = ''; 150 153 151 if (!$rs->blog_id) { 154 152 $disabled_word = !$core->auth->isSuperAdmin(); 155 $p_style .= $this->style_global;153 $p_style .= ' global'; 156 154 } 157 155 158 $item = '<p style="'.$p_style.'"><label class="classic" for="word-'.$rs->rule_id.'">'.156 $item = '<p class="'.$p_style.'"><label class="classic" for="word-'.$rs->rule_id.'">'. 159 157 form::checkbox(array('swd[]', 'word-'.$rs->rule_id),$rs->rule_id,false,'','',$disabled_word).' '. 160 158 html::escapeHTML($rs->rule_content). -
plugins/antispam/style.css
r1330 r1511 21 21 background-image: url(index.php?pf=antispam/feed.png); 22 22 } 23 /* ---------------------------------------------------------- listing of IPs / bad words */ 24 .antispam { 25 height: 200px; 26 overflow: auto; 27 margin-bottom: 1em; 28 } 29 .antispam p { 30 margin: 1px 0 0 0; 31 padding: 0.2em 0.5em; 32 } 33 .antispam p.global { 34 background: #ccff99; 35 }
Note: See TracChangeset
for help on using the changeset viewer.