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

Last change on this file since 31946 was 27289, checked in by ddtddt, 10 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
RevLine 
[10574]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
[27289]19 //plugin on register
[10574]20if (script_basename() == 'register')
21{ 
[27289]22 include_once(dirname(__FILE__).'/initregister.php');
[10574]23}
[27289]24// Plugin on profile page
[10574]25if (script_basename() == 'profile') 
26{ 
[27289]27 include_once(dirname(__FILE__).'/initprofile.php');
[10574]28}
[27289]29// Plugin for admin
[10574]30if (script_basename() == 'admin')   
31{
[27289]32 include_once(dirname(__FILE__).'/initprofileadmin.php');
[10574]33}
34?>
Note: See TracBrowser for help on using the repository browser.