[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/addressbook/inc/ -> hook_deleteaccount.inc.php (source)

   1  <?php
   2    /**************************************************************************\
   3    * eGroupWare                                                               *
   4    * http://www.egroupware.org                                                *
   5    * Written by Joseph Engo <jengo@phpgroupware.org>                          *
   6    * --------------------------------------------                             *
   7    *  This program is free software; you can redistribute it and/or modify it *
   8    *  under the terms of the GNU General Public License as published by the   *
   9    *  Free Software Foundation; either version 2 of the License, or (at your  *
  10    *  option) any later version.                                              *
  11    \**************************************************************************/
  12  
  13      /* $Id: hook_deleteaccount.inc.php 20295 2006-02-15 12:31:25Z  $ */
  14  
  15      if((int)$GLOBALS['hook_values']['account_id'] > 0)
  16      {
  17          $contacts = CreateObject('phpgwapi.contacts');
  18  
  19          if((int)$_POST['new_owner'] == 0)
  20          {
  21              $contacts->delete_all((int)$GLOBALS['hook_values']['account_id']);
  22          }
  23          else
  24          {
  25              $contacts->change_owner((int)$GLOBALS['hook_values']['account_id'],(int)$_POST['new_owner']);
  26          }
  27      }
  28  ?>


Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7