source: spip-zone/_plugins_/blockreferer/blockreferer_pipeline.php @ 107918

Last change on this file since 107918 was 15699, checked in by pierre.andrews@…, 13 years ago

debut d'action

File size: 584 bytes
Line 
1<?php
2
3function blockreferer_header_prive($flux) {
4  //  var_dump($auteur);
5  if((strpos('statistiques',_request('exec'))>=0)
6          && ($GLOBALS['auteur_session']['statut'] == '0minirezo')) {
7 
8  $script = '<script type="text/javascript"><!--
9$(document).ready(function(){
10jQuery(\'.verdana1 > ul > li > a > span\').parent().each(function(i,e){$(e).after("&nbsp;<a href=\''.
11        generer_action_auteur("blockreferer_manage","referer",generer_url_ecrire(_request('exec')))
12.'&url_refer="+encodeURI(this.href)+"\'>[X]</a>")});
13});
14--></script>';
15  $flux .= $script;
16  }
17        return $flux;
18
19}
20
21?>
Note: See TracBrowser for help on using the repository browser.