Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | /***************************************************************************\ |
---|
4 | * SPIP, Systeme de publication pour l'internet * |
---|
5 | * * |
---|
6 | * Copyright (c) 2001-2015 * |
---|
7 | * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * |
---|
8 | * * |
---|
9 | * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * |
---|
10 | * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. * |
---|
11 | \***************************************************************************/ |
---|
12 | |
---|
13 | if (!defined("_ECRIRE_INC_VERSION")) { |
---|
14 | return; |
---|
15 | } |
---|
16 | |
---|
17 | // http://code.spip.net/@action_instituer_syndic_article_dist |
---|
18 | function action_urls_verrouiller_dist() { |
---|
19 | |
---|
20 | $securiser_action = charger_fonction('securiser_action', 'inc'); |
---|
21 | $arg = $securiser_action(); |
---|
22 | |
---|
23 | include_spip('inc/autoriser'); |
---|
24 | $arg = explode('-', $arg); |
---|
25 | $type = array_shift($arg); |
---|
26 | $id = array_shift($arg); |
---|
27 | $url = implode('-', $arg); |
---|
28 | if (autoriser('modifierurl', $type, $id)) { |
---|
29 | include_spip('action/editer_url'); |
---|
30 | url_verrouiller($type, $id, $url); |
---|
31 | } |
---|
32 | } |
---|
33 | |
---|
34 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.