From 31d5b5fa91d03512f709d42ab89e1f9246492f94 Mon Sep 17 00:00:00 2001 From: flop25 Date: Sun, 13 Apr 2014 18:24:45 +0000 Subject: c13y_upgrade moved to extensions git-svn-id: http://piwigo.org/svn/trunk@28170 68402e56-0260-453c-a942-63ccdbb3a9ee --- plugins/c13y_upgrade/initialize.inc.php | 116 -------------------------------- 1 file changed, 116 deletions(-) delete mode 100644 plugins/c13y_upgrade/initialize.inc.php (limited to 'plugins/c13y_upgrade/initialize.inc.php') diff --git a/plugins/c13y_upgrade/initialize.inc.php b/plugins/c13y_upgrade/initialize.inc.php deleted file mode 100644 index 8f4d679db..000000000 --- a/plugins/c13y_upgrade/initialize.inc.php +++ /dev/null @@ -1,116 +0,0 @@ - 1 -limit 1 -;'; - - if (pwg_db_fetch_row(pwg_query($query))) - { - $to_deactivate = false; - $c13y->add_anomaly( - l10n('c13y_dbl_email_user'), - null, - null, - l10n('c13y_correction_dbl_email_user')); - } - - /* Check plugin included in Piwigo sources */ - $included_plugins = array('dew', 'UpToDate', 'PluginsManager', 'LinkRoot'); - $query = ' -select - id -from - '.PLUGINS_TABLE.' -where - id in ('. - implode( - ',', - array_map( - create_function('$s', 'return "\'".$s."\'";'), - $included_plugins - ) - ) - .') -;'; - - $result = pwg_query($query); - while ($row = pwg_db_fetch_assoc($result)) - { - $to_deactivate = false; - - $uninstall_msg_link = - ''. - sprintf(l10n('c13y_correction_obsolete_plugin'), $row['id']).''; - - $c13y->add_anomaly( - l10n('c13y_obsolete_plugin'), - null, - null, - $uninstall_msg_link); - } - - /* Check if this plugin must be deactivate */ - if ($to_deactivate) - { - $query = ' -REPLACE INTO '.PLUGINS_TABLE.' -(id, state) -VALUES (\'c13y_upgrade\', \'inactive\') -;'; - pwg_query($query); - - global $page; - $page['infos'][] = l10n('c13y_upgrade_no_anomaly'); - } -} - -?> -- cgit v1.2.3