Changeset 2208 for trunk/plugins


Ignore:
Timestamp:
Feb 13, 2008, 9:13:12 PM (16 years ago)
Author:
rub
Message:

Resolved issue 0000792: Admin "intro" : Integrity control bypass

Some sentences must be re-write ;-)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/c13y_upgrade/initialize.inc.php

    r2136 r2208  
    33// | PhpWebGallery - a PHP based picture gallery                           |
    44// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
     5// | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net |
    66// +-----------------------------------------------------------------------+
    77// | file          : $Id$
     
    3030}
    3131
    32 add_event_handler('get_check_integrity', 'c13y_upgrade');
     32add_event_handler('list_check_integrity', 'c13y_upgrade');
    3333
    34 function c13y_upgrade($c13y_array)
     34function c13y_upgrade()
    3535{
    3636  global $conf;
     
    3838  load_language('plugin.lang', dirname(__FILE__).'/');
    3939
    40   $result = array();
     40  $can_be_deactivate = true;
    4141
    4242  /* Check user with same e-mail */
     
    5252  if (mysql_fetch_array(pwg_query($query)))
    5353  {
    54     $result[] = get_c13y(
     54    $can_be_deactivate = false;
     55    add_c13y(
    5556      l10n('c13y_exif_dbl_email_user'),
    5657      null,
     
    6162
    6263  /* Check if this plugin must deactivate */
    63   if (count($result) === 0)
     64  if ($can_be_deactivate)
    6465  {
    6566    $deactivate_msg_link =
     
    7071      l10n('c13y_upgrade_deactivate').'</a>';
    7172
    72     $result[] = get_c13y(
     73    add_c13y(
    7374      l10n('c13y_upgrade_no_anomaly'),
    7475      'c13y_upgrade_correction',
     
    7778      );
    7879  }
    79 
    80   return array_merge($c13y_array, $result);
    8180}
    8281
Note: See TracChangeset for help on using the changeset viewer.