1 | <?php |
---|
2 | # ***** BEGIN LICENSE BLOCK ***** |
---|
3 | # |
---|
4 | # This program is free software. It comes without any warranty, to |
---|
5 | # the extent permitted by applicable law. You can redistribute it |
---|
6 | # and/or modify it under the terms of the Do What The Fuck You Want |
---|
7 | # To Public License, Version 2, as published by Sam Hocevar. See |
---|
8 | # http://sam.zoy.org/wtfpl/COPYING for more details. |
---|
9 | # |
---|
10 | # Icon (icon.png) is from Silk Icons : |
---|
11 | # http://www.famfamfam.com/lab/icons/silk/ |
---|
12 | # |
---|
13 | # ***** END LICENSE BLOCK ***** |
---|
14 | |
---|
15 | # add the plugin in the plugins list on the backend |
---|
16 | # ajouter le plugin dans la liste des plugins du menu de l'administration |
---|
17 | $_menu['Plugins']->addItem( |
---|
18 | # link's name |
---|
19 | # nom du lien (en anglais) |
---|
20 | __('Admin example'), |
---|
21 | # base URL of the administration page |
---|
22 | # URL de base de la page d'administration |
---|
23 | 'plugin.php?p=adminExample', |
---|
24 | # URL of the image used as icon |
---|
25 | # URL de l'image utilisée comme icône |
---|
26 | 'index.php?pf=adminExample/icon.png', |
---|
27 | # regular expression of the URL of the administration page |
---|
28 | # expression régulière de l'URL de la page d'administration |
---|
29 | preg_match('/plugin.php\?p=adminExample(&.*)?$/', |
---|
30 | $_SERVER['REQUEST_URI']), |
---|
31 | # required permissions to show the link |
---|
32 | # permissions nécessaires pour afficher le lien |
---|
33 | $core->auth->check('usage,contentadmin',$core->blog->id)); |
---|
34 | ?> |
---|