source: extensions/AddInfousers/main.inc.php @ 30983

Last change on this file since 30983 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/*
3Plugin Name: AddInfousers
4Version: auto
5Description: Adds 7 information to the user profiles
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=531
7Author: ddtddt
8Author URI:
9*/
10
11if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
12
13global $prefixeTable;
14
15define('ADDINFOUSERS_DIR' , basename(dirname(__FILE__)));
16define('ADDINFOUSERS_PATH' , PHPWG_PLUGINS_PATH . ADDINFOUSERS_DIR . '/');
17define('ADDINFOUSERS_TABLE' , $prefixeTable . 'AddInfo_users');
18
19 //plugin on register
20if (script_basename() == 'register')
21{ 
22 include_once(dirname(__FILE__).'/initregister.php');
23}
24// Plugin on profile page
25if (script_basename() == 'profile') 
26{ 
27 include_once(dirname(__FILE__).'/initprofile.php');
28}
29// Plugin for admin
30if (script_basename() == 'admin')   
31{
32 include_once(dirname(__FILE__).'/initprofileadmin.php');
33}
34?>
Note: See TracBrowser for help on using the repository browser.