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

Last change on this file since 19600 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
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
25 // Plugin on profile page
26if (script_basename() == 'profile') 
27{ 
28  include_once(dirname(__FILE__).'/initprofile.php');
29}
30
31  // Plugin for admin
32if (script_basename() == 'admin')   
33{
34  include_once(dirname(__FILE__).'/initprofileadmin.php');
35}
36
37?>
Note: See TracBrowser for help on using the repository browser.