Last change
on this file since 14587 was
10574,
checked in by ddtddt, 14 years ago
|
[extensions] - AddInfousers - First release
|
-
Property svn:eol-style set to
LF
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
848 bytes
|
Rev | Line | |
---|
[10574] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | Plugin Name: AddInfousers |
---|
| 4 | Version: auto |
---|
| 5 | Description: Adds 7 information to the user profiles |
---|
| 6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=531 |
---|
| 7 | Author: ddtddt |
---|
| 8 | Author URI: |
---|
| 9 | */ |
---|
| 10 | |
---|
| 11 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 12 | |
---|
| 13 | global $prefixeTable; |
---|
| 14 | |
---|
| 15 | define('ADDINFOUSERS_DIR' , basename(dirname(__FILE__))); |
---|
| 16 | define('ADDINFOUSERS_PATH' , PHPWG_PLUGINS_PATH . ADDINFOUSERS_DIR . '/'); |
---|
| 17 | define('ADDINFOUSERS_TABLE' , $prefixeTable . 'AddInfo_users'); |
---|
| 18 | |
---|
| 19 | //plugin on register |
---|
| 20 | if (script_basename() == 'register') |
---|
| 21 | { |
---|
| 22 | include_once(dirname(__FILE__).'/initregister.php'); |
---|
| 23 | } |
---|
| 24 | |
---|
| 25 | // Plugin on profile page |
---|
| 26 | if (script_basename() == 'profile') |
---|
| 27 | { |
---|
| 28 | include_once(dirname(__FILE__).'/initprofile.php'); |
---|
| 29 | } |
---|
| 30 | |
---|
| 31 | // Plugin for admin |
---|
| 32 | if (script_basename() == 'admin') |
---|
| 33 | { |
---|
| 34 | include_once(dirname(__FILE__).'/initprofileadmin.php'); |
---|
| 35 | } |
---|
| 36 | |
---|
| 37 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.