Last change
on this file since 30192 was
27289,
checked in by ddtddt, 11 years ago
|
[extensions] - AddInfousers - update compatibility with Piwigo 2.6
|
-
Property svn:eol-style set to
LF
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
838 bytes
|
Line | |
---|
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 | // Plugin on profile page |
---|
25 | if (script_basename() == 'profile') |
---|
26 | { |
---|
27 | include_once(dirname(__FILE__).'/initprofile.php'); |
---|
28 | } |
---|
29 | // Plugin for admin |
---|
30 | if (script_basename() == 'admin') |
---|
31 | { |
---|
32 | include_once(dirname(__FILE__).'/initprofileadmin.php'); |
---|
33 | } |
---|
34 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.