Last change
on this file since 26873 was
9752,
checked in by ddtddt, 14 years ago
|
[extensions] - reset_level - First release
|
-
Property svn:eol-style set to
LF
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
674 bytes
|
Rev | Line | |
---|
[9752] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | Plugin Name: reset level |
---|
| 4 | Version: auto |
---|
| 5 | Description: reset level |
---|
| 6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=517 |
---|
| 7 | Author: ddtddt |
---|
| 8 | Author URI: http://piwigo.org/ |
---|
| 9 | */ |
---|
| 10 | |
---|
| 11 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 12 | |
---|
| 13 | global $prefixeTable; |
---|
| 14 | |
---|
| 15 | define('DELLE_DIR' , basename(dirname(__FILE__))); |
---|
| 16 | define('DELLE_PATH' , PHPWG_PLUGINS_PATH . DELLE_DIR . '/'); |
---|
| 17 | load_language('plugin.lang', DELLE_PATH); |
---|
| 18 | |
---|
| 19 | add_event_handler('get_admin_plugin_menu_links', 'delle_admin_menu'); |
---|
| 20 | function delle_admin_menu($menu) |
---|
| 21 | { |
---|
| 22 | array_push($menu, array( |
---|
| 23 | 'NAME' => 'Reset level', |
---|
| 24 | 'URL' => get_admin_plugin_menu_link(DELLE_PATH . 'admin/admin.php'))); |
---|
| 25 | return $menu; |
---|
| 26 | } |
---|
| 27 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.