Index: tensions/NBC_UserAdvManager/ConfirmMail.php
===================================================================
--- /extensions/NBC_UserAdvManager/ConfirmMail.php	(revision 3734)
+++ 	(revision )
@@ -1,75 +1,0 @@
-<?php
-//----------------------------------------------------------- include
-define('PHPWG_ROOT_PATH','./../../');
-include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
-include_once (NBC_UserAdvManager_PATH.'include/constants.php');
-include_once (NBC_UserAdvManager_PATH.'include/functions_UserAdvManager.inc.php');
-
-// +-----------------------------------------------------------------------+
-// | Check Access and exit when user status is not ok                      |
-// +-----------------------------------------------------------------------+
-//check_status(ACCESS_NONE);
-load_language('plugin.lang', NBC_UserAdvManager_PATH);
-
-if ( isset($_GET['key']) )
-{
-
-  if ( VerifyConfirmMail($_GET['key']) )
-    $template->assign(array(
-      'CONFIRM_MAIL_MESSAGE' => l10n('confirm_mail_ok'),
-    ));
-  else  
-    $template->assign(array(
-      'CONFIRM_MAIL_MESSAGE' => l10n('confirm_mail_bad'),
-    ));
-      
-    
-//    redirect(make_index_url());
-}
-
-/**
- * set in ./language/en_UK.iso-8859-1/local.lang.php (maybe to create)
- * for example for clear theme:
-  $lang['Theme: clear'] = 'This is the clear theme based on yoga template. '.
-  ' A standard template/theme of PhpWebgallery.';
- *
- * Don't forget php tags !!!
- *
- * Another way is to code it thru the theme itself in ./themeconf.inc.php
- */
-
-$title= l10n('confirm_mail_page_title');
-$page['body_id'] = 'theAboutPage';
-include(PHPWG_ROOT_PATH.'include/page_header.php');
-
-@include(PHPWG_ROOT_PATH.'template/'.$user['template'].
-  '/theme/'.$user['theme'].'/themeconf.inc.php');
-
-/* $template->set_filenames(array('confirm_mail' => realpath(NBC_UserAdvManager_PATH . 'ConfirmMail.tpl')));*/
-$template->set_filenames(
-  array(
-    'confirm_mail'=>NBC_UserAdvManager_PATH.'ConfirmMail.tpl',
-    )
-  );
-if ( isset($lang['Theme: '.$user['theme']]) )
-{
-  $template->assign(
-    'THEME_ABOUT',l10n('Theme: '.$user['theme'])
-    );
-}
-
-if ( isset($conf['gallery_url']) )
-	{
-	$template->assign(
-  		array(
-    		'GALLERY_URL' =>
-         		 isset($page['gallery_url']) ?
-          		      $page['gallery_url'] : $conf['gallery_url'],
-       		 )
-    	 );
-}
-
-
-$template->pparse('confirm_mail');
-include(PHPWG_ROOT_PATH.'include/page_tail.php');
-?>
Index: tensions/NBC_UserAdvManager/ConfirmMail.tpl
===================================================================
--- /extensions/NBC_UserAdvManager/ConfirmMail.tpl	(revision 3734)
+++ 	(revision )
@@ -1,22 +1,0 @@
-{* $Id: ConfirmMail.tpl $ *}
-<div id="content" class="content">
-  <div class="titrePage">
-    <ul class="categoryActions">
-      <li>
-      {if isset($GALLERY_URL) }
-        <a href="{$GALLERY_URL}" title="{'return to homepage'|@translate}">
-          <img src="{$ROOT_URL}{$themeconf.icon_dir}/home.png" class="button" alt="{'home'|@translate}"/>
-        </a>
-      {else}
-        <a href="{$U_HOME}" title="{'return to homepage'|@translate}">
-          <img src="{$ROOT_URL}{$themeconf.icon_dir}/home.png" class="button" alt="{'home'|@translate}"/>
-        </a>
-      {/if}
-      </li>
-    </ul>
-    <h2>{'title_confirm_mail'|@translate}</h2>
-  </div>
-  <ul>
-  {$CONFIRM_MAIL_MESSAGE}
-  </ul>
-</div>
Index: tensions/NBC_UserAdvManager/index.php
===================================================================
--- /extensions/NBC_UserAdvManager/index.php	(revision 3734)
+++ 	(revision )
@@ -1,33 +1,0 @@
-<?php
-// +-----------------------------------------------------------------------+
-// | PhpWebGallery - a PHP based picture gallery                           |
-// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
-// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
-// +-----------------------------------------------------------------------+
-// | file          : $Id: index.php 1912 2007-03-16 06:30:07Z rub $
-// | last update   : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $
-// | last modifier : $Author: rub $
-// | revision      : $Revision: 1912 $
-// +-----------------------------------------------------------------------+
-// | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License as published by  |
-// | the Free Software Foundation                                          |
-// |                                                                       |
-// | This program is distributed in the hope that it will be useful, but   |
-// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
-// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
-// | General Public License for more details.                              |
-// |                                                                       |
-// | You should have received a copy of the GNU General Public License     |
-// | along with this program; if not, write to the Free Software           |
-// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
-// | USA.                                                                  |
-// +-----------------------------------------------------------------------+
-
-// Recursive call
-$url = '../';
-header( 'Request-URI: '.$url );
-header( 'Content-Location: '.$url );
-header( 'Location: '.$url );
-exit();
-?>
Index: tensions/NBC_UserAdvManager/main.inc.php
===================================================================
--- /extensions/NBC_UserAdvManager/main.inc.php	(revision 3734)
+++ 	(revision )
@@ -1,438 +1,0 @@
-<?php
-/*
-Plugin Name: NBC UserAdvManager
-Version: 2.10.9d
-Description: Permet de renforcer les possibilités de gestion des utilisateurs - Enforce users management
-Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=216
-Author: Nicco, Eric
-Author URI: http://gallery-nicco.no-ip.org, http://www.infernoweb.net
-*/
-
-/*
- ***** Plugin history (branch 2.10)*****
-
--- 2.10.0-beta : Initial beta release for Piwigo compatibility
--- 2.10.1-beta : Small correction on generated path
--- 2.10.2-beta : Bug resolved on register validation page
-
--- 2.10.3 : Final and fully functional release
-			Bug resolved on plugin activation
-
--- 2.10.4 : Bug fixed on profiles update
-
--- 2.10.5 : Improved code on profiles update
-
--- 2.10.6 : Old language packs (iso) deleted (forget from PWG 1.7.x version)
-
--- 2.10.7 : Bug fixed on user's validation email sending
-
--- 2.10.8 : ConfirmMail page looks better (Sylvia theme only)
-			Improved code for checking author on guest comments
-
--- 2.10.9 : Bug fixed - Missing english translation
-			Bug fixed - Notice on forbidden characters function use
-			Bug fixed - Audit on forbidden characters in username didn't work
-			Adding of email provider exclusion (like *@hotmail.com) - Warning ! -> Known bug : This feature doesn't work on user profile page. So, already registered users can change their email address to a forbiden one.
-
--- 2.10.9a : Email provider exclusion is no longer case sensitive
-
--- 2.10.9b : Bug fixed - Home icon wasn't linked to gallery url in ConfirmMail page. If GALLERY_URL is not set, Home icon gets the pwg root path.
-
--- 2.10.9c : Bug fixed - If Email provider exclusion is set off, new registered user will have a PHP notice on "Undefined variable: ncsemail"
-
--- 2.10.9d : Code simplification - need no more ""template"" sub-directory in plugin directory for enhance "back link" icon in ConfirMail.tpl 
-
-*/
-
-/*
-
- ***** TODO List *****
-
--- No validation needed for admins users comments (new trigger needed in comments.php)
-
--- No single email check for admins (new trigger needed in (functions_user.inc.php ?))
-
--- Administration page for Confirm Mail
-  ++ Admin tabsheet for Confirm Mail to set options :
-  		++ Setting a delay time with timeout for email confirmation (Timeout = CurrentDate - RegistrationDate)
-  		++ List of users who haven't validated - could be easy to set with groups options : Unvalidated users are in a "Unvalidated" group.
-  		++ List of users with expired validation time
-  		++ List of validates users ? -> Same as "List of users who haven't validated" : They could belong to a "validated" group.
-  		++ Opportunities to take actions on database tables :
-    		++ Re-asking validation (case of non reception of validation email)
-    		++ Force expiration
-			++ Force confirmation
-    		++ Cleanup expired user's accounts
-    	++ (...)
-
--- Password control and enforcement
-  -- Empty password (done in Piwigo 2.x)
-  ++ Can not be the same as username
-  ++ complexity of the password (Numbers+Lettrers+Low and high case+Special+minimal length)
-  
--- Security : Blocking brut-force attacks !
-
--- Opportunity to copy a registered user for new user creation
-  ++ new copied user will (or not) belong to the same groups
-  ++ new copied user will (or not) get the same status (visitor, admin, webmaster, guest (??))
-  ++ new copied user will (or not) get the same properties
-  ++ new copied user will (or not) get the same language
-  ... and so on
-  
-*/
-
-
-
-if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
-define('NBC_UserAdvManager_DIR' , basename(dirname(__FILE__)));
-define('NBC_UserAdvManager_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/');
-include_once (NBC_UserAdvManager_PATH.'include/constants.php');
-include_once (NBC_UserAdvManager_PATH.'include/functions_UserAdvManager.inc.php');
-load_language('plugin.lang', NBC_UserAdvManager_PATH);
-
-
-/* Plugin admin */
-add_event_handler('get_admin_plugin_menu_links', 'nbc_UserAdvManager_admin_menu');
-
-function nbc_UserAdvManager_admin_menu($menu)
-{
-  array_push($menu,
-    array(
-      'NAME' => 'UserAdvManager',
-      'URL'  => get_admin_plugin_menu_link(NBC_UserAdvManager_PATH.'/admin/UserAdvManager_admin.php')
-    )
-  );
-
-  return $menu;
-}
-
-
-
-/* User creation */
-add_event_handler('register_user', 'UserAdvManager_Adduser');
-
-function UserAdvManager_Adduser($register_user)
-{
-  global $conf;
-  
-  $conf_nbc_UserAdvManager = isset($conf['nbc_UserAdvManager']) ? explode(";" , $conf['nbc_UserAdvManager']) : array();
-
-  if (( isset($conf_nbc_UserAdvManager[0]) and $conf_nbc_UserAdvManager[0] == 'true') or ( isset($conf_nbc_UserAdvManager[2]) and $conf_nbc_UserAdvManager[2] == 'true'))
-    SendMail2User(1, $register_user['id'], $register_user['username'], $_POST['password'], $register_user['email'], true);
-}
-
-
-
-/* User deletion */
-add_event_handler('delete_user', 'UserAdvManager_Deluser');
-
-function UserAdvManager_Deluser($user_id)
-{
-
-  DeleteConfirmMail($user_id);
-
-}
-
-
-
-add_event_handler('init', 'UserAdvManager_InitPage');
- 
-function UserAdvManager_InitPage()
-{
-  load_language('plugin.lang', NBC_UserAdvManager_PATH);
-  global $conf, $template, $page, $lang;
-
-  $conf_nbc_UserAdvManager = isset($conf['nbc_UserAdvManager']) ? explode(";" , $conf['nbc_UserAdvManager']) : array();
-  
-
-  if ( isset($conf_nbc_UserAdvManager[1]) and $conf_nbc_UserAdvManager[1] == 'true' )
-    $lang['reg_err_login5'] = l10n('new_reg_err_login5');
-  
-
- 
-/* User identification */
-  if (script_basename() == 'identification')
-  {
-    if (isset($_POST['login']))
-    {
-      /* User non case sensitive */
-      if (isset($conf_nbc_UserAdvManager[1]) and $conf_nbc_UserAdvManager[1] == 'true' )
-      {
-        $new_username =  NotSensibleSearchUsername($_POST['username']);
-        $_POST['username'] = $new_username == '' ? $_POST['username'] : $new_username;
-      }
-    }
-  }
-
-
-
-/* Admin user management */
-  if (script_basename() == 'admin' and isset($_GET['page']) and $_GET['page'] == 'user_list')
-  {
-    if (isset($_POST['submit_add']))
-    {
-      /* User non case sensitive */
-      if (isset($conf_nbc_UserAdvManager[1]) and $conf_nbc_UserAdvManager[1] == 'true' )
-      {
-        $new_username =  NotSensibleSearchUsername($_POST['login']);
-        $_POST['login'] = $new_username == '' ? $_POST['login'] : $new_username;
-      }
-
-
-      /* Username without forbidden keys */
-      if (isset($conf_nbc_UserAdvManager[7]) and $conf_nbc_UserAdvManager[7] == 'true' and !empty($_POST['login']) and !ValidateUsername($_POST['login']))
-      {
-        $lang['reg_err_login1'] = l10n('reg_err_login6')."'".$conf_nbc_UserAdvManager[8]."'";
-        $_POST['login'] = '';
-      }
-
-      /* Email without forbidden domains */
-      /* This don't work on call of ValidateEmailProvider() function - Why ?? -> Due to the "return = false|true" in function ?*/
-      //if (isset($conf_nbc_UserAdvManager[12]) and $conf_nbc_UserAdvManager[12] == 'true' and !empty($_POST['email']) and !ValidateEmailProvider($_POST['email']))
-      //{
-      //  $lang['reg_err_login1'] = l10n('reg_err_login7')."'".$conf_nbc_UserAdvManager[13]."'";
-	  //  $_POST['login'] = '';
-	  //}
-      /* This work with a code copy of ValidateEmailProvider() function */
-	  if (isset($conf_nbc_UserAdvManager[12]) and $conf_nbc_UserAdvManager[12] == 'true' and !empty($_POST['email']))
-		{
-	  	  $ncsemail = strtolower($_POST['email']);
-		  $conf_nbc_MailExclusion = split (",",$conf_nbc_UserAdvManager[13]);
-		  for ($i = 0 ; $i < count($conf_nbc_MailExclusion) ; $i++)
-		    {
-			  if (ereg($conf_nbc_MailExclusion[$i], $ncsemail))
-			    {
-		          $lang['reg_err_login1'] = l10n('reg_err_login7')."'".$conf_nbc_UserAdvManager[13]."'";
-		          $_POST['login'] = '';
-				}
-			}
-		}
-    }
-  }
-
-/* User creation */
-  if (script_basename() == 'register')
-  {
-    if (isset($_POST['submit']))
-    {
-      /* Username non case sensitive */
-      if (isset($conf_nbc_UserAdvManager[1]) and $conf_nbc_UserAdvManager[1] == 'true')
-      {
-        $new_username =  NotSensibleSearchUsername($_POST['login']);
-        $_POST['login'] = $new_username == '' ? $_POST['login'] : $new_username;
-      }
-
-
-      /* Username without forbidden keys */
-      if (isset($conf_nbc_UserAdvManager[7]) and $conf_nbc_UserAdvManager[7] == 'true' and !empty($_POST['login']) and !ValidateUsername($_POST['login']))
-      {
-        $lang['reg_err_login1'] = l10n('reg_err_login6')."'".$conf_nbc_UserAdvManager[8]."'";
-        $_POST['login'] = '';
-      }
-
-
-      /* Email without forbidden domains */
-      /* This don't work on call of ValidateEmailProvider() function - Why ?? -> Due to the "return = false|true" in function ?*/
-      //if (isset($conf_nbc_UserAdvManager[12]) and $conf_nbc_UserAdvManager[12] == 'true' and !empty($_POST['mail_address']) and !ValidateEmailProvider($_POST['mail_address']))
-      //{
-      //  $lang['reg_err_mail_address'] = l10n('reg_err_login7')."'".$conf_nbc_UserAdvManager[13]."'";
-      //  $_POST['mail_address'] = '';
-      //}
-      /* This work with a code copy of ValidateEmailProvider() function */
-		if (isset($conf_nbc_UserAdvManager[12]) and $conf_nbc_UserAdvManager[12] == 'true' and !empty($_POST['mail_address']))
-		  {
-		  	$ncsemail = strtolower($_POST['mail_address']);
-		    $conf_nbc_MailExclusion = split (",",$conf_nbc_UserAdvManager[13]);
-			for ($i = 0 ; $i < count($conf_nbc_MailExclusion) ; $i++)
-			  {
-			    if (ereg($conf_nbc_MailExclusion[$i], $ncsemail))
-				  {
-				    $lang['reg_err_login1'] = l10n('reg_err_login7')."'".$conf_nbc_UserAdvManager[13]."'";
-					$_POST['login'] = '';
-				  }
-			  }
-		  }
-    }
-  }
-
-/* User profile update */
-  if (script_basename() == 'profile')
-  {
-    if (isset($_POST['validate']))
-    {
-      /* Sending email to user */
-      if (( isset($conf_nbc_UserAdvManager[0]) and $conf_nbc_UserAdvManager[0] == 'true') or ( isset($conf_nbc_UserAdvManager[2]) and $conf_nbc_UserAdvManager[2] == 'true'))
-      {
-      	global $conf, $user ;
-        $errors = array();
-  
-        $int_pattern = '/^\d+$/';
-        if (empty($_POST['nb_image_line'])
-            or (!preg_match($int_pattern, $_POST['nb_image_line'])))
-        {
-          $errors[] = l10n('nb_image_line_error');
-        }
-      
-        if (empty($_POST['nb_line_page'])
-            or (!preg_match($int_pattern, $_POST['nb_line_page'])))
-        {
-          $errors[] = l10n('nb_line_page_error');
-        }
-      
-        if ($_POST['maxwidth'] != ''
-            and (!preg_match($int_pattern, $_POST['maxwidth'])
-                 or $_POST['maxwidth'] < 50))
-        {
-          $errors[] = l10n('maxwidth_error');
-        }
-        if ($_POST['maxheight']
-             and (!preg_match($int_pattern, $_POST['maxheight'])
-                   or $_POST['maxheight'] < 50))
-        {
-          $errors[] = l10n('maxheight_error');
-        }
-        // periods must be integer values, they represents number of days
-        if (!preg_match($int_pattern, $_POST['recent_period'])
-            or $_POST['recent_period'] <= 0)
-        {
-          $errors[] = l10n('periods_error') ;
-        }
-
-        if (isset($_POST['mail_address']))
-        {
-          $mail_error = validate_mail_address($user['id'], $_POST['mail_address']);
-          if (!empty($mail_error))
-          {
-            $errors[] = $mail_error;
-          }
-        /* This don't work on user's profile page - Why ?? */
-		if (isset($conf_nbc_UserAdvManager[12]) and $conf_nbc_UserAdvManager[12] == 'true' and !empty($_POST['mail_address']))
-		  {
-		  	$ncsemail = strtolower($_POST['mail_address']);
-		    $conf_nbc_MailExclusion = split (",",$conf_nbc_UserAdvManager[13]);
-			for ($i = 0 ; $i < count($conf_nbc_MailExclusion) ; $i++)
-			  {
-			    if (ereg($conf_nbc_MailExclusion[$i], $ncsemail))
-				  {
-				    $mail_error = l10n('reg_err_login7')."'".$conf_nbc_UserAdvManager[13]."'";
-				  }
-			  }
-		  }
-	      if (!empty($mail_error))
-          {
-            $errors[] = $mail_error;
-          }
-        }
-		/* This don't work on call of ValidateEmailProvider() function - Why ?? -> Due to the "return = false|true" in function ?*/
-        //if (isset($_POST['mail_address']))
-        //{
-        //  $mail_error = ValidateEmailProvider($_POST['mail_address']);
-        //  if (!empty($mail_error))
-        //  {
-        //    $errors[] = $mail_error;
-        //  }
-        //}
-
-        $typemail = 3;
-        
-        if (!empty($_POST['use_new_pwd']))
-        {
-          $typemail = 2;
-
-          // password must be the same as its confirmation
-          if ($_POST['use_new_pwd'] != $_POST['passwordConf'])
-          {
-            $errors[] = l10n('New password confirmation does not correspond');
-          }
-      
-          if ( !defined('IN_ADMIN') )
-          {// changing password requires old password
-            $query = '
-              SELECT '.$conf['user_fields']['password'].' AS password
-              FROM '.USERS_TABLE.'
-              WHERE '.$conf['user_fields']['id'].' = \''.$user['id'].'\'
-            ;';
-            list($current_password) = mysql_fetch_row(pwg_query($query));
-        
-            if ($conf['pass_convert']($_POST['password']) != $current_password)
-            {
-              $errors[] = l10n('Current password is wrong');
-            }
-          }
-        }
-        
-        $confirm_mail_need = false;
-              
-        if (!empty($_POST['mail_address']))
-        {
-          $query = '
-            SELECT '.$conf['user_fields']['email'].' AS email
-            FROM '.USERS_TABLE.'
-            WHERE '.$conf['user_fields']['id'].' = \''.$user['id'].'\'
-          ;';
-          list($current_email) = mysql_fetch_row(pwg_query($query));
-      
-          if ( $_POST['mail_address'] != $current_email and ( isset($conf_nbc_UserAdvManager[2]) and $conf_nbc_UserAdvManager[2] == 'true') )
-            $confirm_mail_need = true;
-        }
-
-        if (count($errors) == 0 and (!empty($_POST['use_new_pwd']) and ( isset($conf_nbc_UserAdvManager[0]) and $conf_nbc_UserAdvManager[0] == 'true') or $confirm_mail_need) )
-        {
-          $query = '
-            SELECT '.$conf['user_fields']['username'].'
-            FROM '.USERS_TABLE.'
-            WHERE '.$conf['user_fields']['id'].' = \''.$user['id'].'\'
-          ;';
-          list($username) = mysql_fetch_row(pwg_query($query));
-
-
-          SendMail2User($typemail, $user['id'], $username, $_POST['use_new_pwd'], $_POST['mail_address'], $confirm_mail_need);
-        }
-      }
-    }
-  }
-}
-
-add_event_handler('loc_begin_tpl_parse', 'ChangeRegisterProfilePage');
-
-function ChangeRegisterProfilePage()
-{
-  global $conf, $template;
-
-  $conf_nbc_UserAdvManager = isset($conf['nbc_UserAdvManager']) ? explode(";" , $conf['nbc_UserAdvManager']) : array();
-
-/* creation OU mise a jour de user */
-//  if (in_array(script_basename(), array('register', 'profile')))
-//  {
-    //if (isset($conf_UserAdvManager[1]) and $conf_UserAdvManager[1] == 'true' )
-    //{
-    //  $template->set_filenames( array('register'=>'register.tpl') );
-
-    //  $template->loadfile('register');
-
-    //  $template->uncompiled_code['register'] = str_replace('{lang:Mail address}', '* {lang:Mail address}', $template->uncompiled_code['register']);      
-    //}
-//  }
-}
-
-add_event_handler('user_comment_check', 'UserAdvManager_CheckEmptyCommentAuthor', 50, 2);
-
-function UserAdvManager_CheckEmptyCommentAuthor($comment_action, $comm)
-{
-  load_language('plugin.lang', NBC_UserAdvManager_PATH);
-  global $infos, $conf, $template;
-
-  $conf_nbc_UserAdvManager = isset($conf['nbc_UserAdvManager']) ? explode(";" , $conf['nbc_UserAdvManager']) : array();
-
-/* User creation OR update */
-  if (isset($conf_nbc_UserAdvManager[6]) and $conf_nbc_UserAdvManager[6] == 'true' and $conf['comments_forall'] == 'true' and $comm['author'] == 'guest')
-  {
-    $comment_action = 'reject';
-
-    array_push($infos, l10n('UserAdvManager_Empty Author'));
-  }
-
-  return $comment_action;
-}
-
-?>
Index: tensions/NBC_UserAdvManager/maintain.inc.php
===================================================================
--- /extensions/NBC_UserAdvManager/maintain.inc.php	(revision 3734)
+++ 	(revision )
@@ -1,50 +1,0 @@
-<?php
-
-if(!defined("NBC_UserAdvManager_PATH"))
-  define('NBC_UserAdvManager_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/');
-
-include_once (NBC_UserAdvManager_PATH.'include/constants.php');
-
-function plugin_install()
-{
-  $q = '
-    INSERT INTO '.CONFIG_TABLE.' (param, value, comment)
-    VALUES ("nbc_UserAdvManager","true;false;false;-1;-1;-1;false;false;;-1;;;false;;","Parametres du plugin nbc UserAdvManager")
-  ;';
-  pwg_query($q);
-
-
-	$q = "
-    CREATE TABLE IF NOT EXISTS ".USER_CONFIRM_MAIL_TABLE." (
-      id varchar(50) NOT NULL default '',
-      user_id smallint(5) NOT NULL default '0',
-      mail_address varchar(255) default NULL,
-      status enum('webmaster','admin','normal','generic','guest') default NULL,
-      date_check datetime default NULL,
-      PRIMARY KEY  (id)
-    )
-  ;";
-  pwg_query($q);
-}
-
-
-
-function plugin_uninstall()
-{
-  global $conf;
-
-  if (isset($conf['nbc_UserAdvManager']))
-  {
-    $q = '
-      DELETE FROM '.CONFIG_TABLE.'
-      WHERE param="nbc_UserAdvManager"
-    ;';
-
-    pwg_query($q);
-  }
-
-
-  $q = 'DROP TABLE '.USER_CONFIRM_MAIL_TABLE.';';
-  pwg_query( $q );
-}
-?>
