Rev | Line | |
---|
[12447] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | Plugin Name: Add Users Notes |
---|
| 4 | Version: auto |
---|
| 5 | Description: Adds admin notes to users profiles |
---|
| 6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=580 |
---|
| 7 | Author: ddtddt |
---|
| 8 | Author URI: |
---|
| 9 | */ |
---|
| 10 | |
---|
| 11 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 12 | |
---|
| 13 | global $prefixeTable; |
---|
| 14 | |
---|
| 15 | define('USERNOTES_DIR' , basename(dirname(__FILE__))); |
---|
| 16 | define('USERNOTES_PATH' , PHPWG_PLUGINS_PATH . USERNOTES_DIR . '/'); |
---|
| 17 | define('USERNOTES_TABLE' , $prefixeTable . 'user_notes'); |
---|
| 18 | |
---|
| 19 | // Plugin for admin |
---|
| 20 | if (script_basename() == 'admin') |
---|
| 21 | { |
---|
| 22 | include_once(dirname(__FILE__).'/initadmin.php'); |
---|
| 23 | } |
---|
| 24 | |
---|
| 25 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.