Last change
on this file since 15691 was
15691,
checked in by pierre.andrews@…, 13 years ago
|
debut d'un plugin pour blacklister les visiteurs qui fond du spam de referer.
|
File size:
379 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | function blockreferer_header_prive($flux) { |
---|
4 | |
---|
5 | if(strpos('statistiques',_request('exec'))>=0) { |
---|
6 | $script = '<script type="text/javascript"><!-- |
---|
7 | $(document).ready(function(){ |
---|
8 | jQuery(\'.verdana1 > ul > li > a > span\').parent().each(function(i,e){$(e).append("<a href=\'"+encodeURI(this.href)+"\'>[X]</a>")}); |
---|
9 | }); |
---|
10 | --></script>'; |
---|
11 | $flux .= $script; |
---|
12 | } |
---|
13 | return $flux; |
---|
14 | |
---|
15 | } |
---|
16 | |
---|
17 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.