source: spip-zone/_plugins_/blockreferer/action/blockreferer_manage.php @ 70524

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

debut d'action

File size: 551 bytes
Line 
1<?php
2
3function action_blockreferer_manage() {
4  include_spip('base/abstract_sql'); 
5  include_spip('inc/actions');
6
7  $hash = _request('hash');
8  $action = _request('action');
9  $arg = _request('arg');
10  $redirect = _request('redirect');
11  $id_auteur =  intval($GLOBALS['auteur_session']['id_auteur']);
12  if (!verifier_action_auteur("$action-$arg", $hash,$id_auteur)) {
13        include_spip('inc/minipres');
14        minipres(_T('info_acces_interdit'));
15  } else {
16        spip_log('block:'+_request('url_refer'));       
17        redirige_par_entete(urldecode($redirect));
18  }
19  }
20
21?>
Note: See TracBrowser for help on using the repository browser.