Changeset 2830 for branches/2.0/plugins
- Timestamp:
- Nov 5, 2008, 11:59:42 PM (16 years ago)
- Location:
- branches/2.0/plugins/c13y_upgrade
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/plugins/c13y_upgrade/initialize.inc.php
r2329 r2830 35 35 load_language('plugin.lang', dirname(__FILE__).'/'); 36 36 37 $ can_be_deactivate = true;37 $to_deactivate = true; 38 38 39 39 /* Check user with same e-mail */ … … 53 53 if (mysql_fetch_array(pwg_query($query))) 54 54 { 55 $ can_be_deactivate = false;55 $to_deactivate = false; 56 56 $c13y->add_anomaly( 57 57 l10n('c13y_dbl_email_user'), … … 83 83 while ($row = mysql_fetch_assoc($result)) 84 84 { 85 $ can_be_deactivate = false;85 $to_deactivate = false; 86 86 87 87 $uninstall_msg_link = … … 99 99 } 100 100 101 /* Check if this plugin must deactivate */102 if ($ can_be_deactivate)101 /* Check if this plugin must be deactivate */ 102 if ($to_deactivate) 103 103 { 104 $deactivate_msg_link = 105 '<a href="'. 106 PHPWG_ROOT_PATH. 107 'admin.php?page=plugins_list&plugin=c13y_upgrade&action=deactivate'. 108 '" onclick="window.open(this.href, \'\'); return false;">'. 109 l10n('c13y_upgrade_deactivate').'</a>'; 110 111 $c13y->add_anomaly( 112 l10n('c13y_upgrade_no_anomaly'), 113 'c13y_upgrade_correction', 114 'deactivate_plugin', 115 $deactivate_msg_link 116 ); 117 } 118 } 119 120 function c13y_upgrade_correction($action) 121 { 122 $result = false; 123 124 switch ($action) 125 { 126 case 'deactivate_plugin': 127 { 128 $query = ' 104 $query = ' 129 105 REPLACE INTO '.PLUGINS_TABLE.' 130 106 (id, state) 131 107 VALUES (\'c13y_upgrade\', \'inactive\') 132 108 ;'; 133 134 $result = true; 135 }136 break;109 pwg_query($query); 110 111 global $page; 112 $page['infos'][] = l10n('c13y_upgrade_no_anomaly'); 137 113 } 138 139 return $result;140 114 } 141 115 -
branches/2.0/plugins/c13y_upgrade/language/de_DE/plugin.lang.php
r2782 r2830 23 23 24 24 // --------- Starting below: New or revised $lang ---- from Butterfly (1.8) 25 $lang['c13y_upgrade_no_anomaly'] = 'Keine Unregelmäßigkeiten festgestellt nach der Aktualisierung der Anwendung'; 26 $lang['c13y_upgrade_deactivate'] = 'Sie können desactivate "Check-Upgrades"-Plugin'; 25 $lang['c13y_upgrade_no_anomaly'] = 'Keine Unregelmäßigkeiten festgestellt nach der Aktualisierung der Anwendung'; /* TODO , "Check upgrades" plugin was deactivated.'*/ 27 26 $lang['c13y_dbl_email_user'] = 'Benutzer mit gleichen E-Mail-Adresse'; 28 27 $lang['c13y_correction_dbl_email_user'] = 'Löschen doppeltes Benutzer'; -
branches/2.0/plugins/c13y_upgrade/language/en_UK/plugin.lang.php
r2299 r2830 23 23 24 24 // --------- Starting below: New or revised $lang ---- from Butterfly (1.8) 25 $lang['c13y_upgrade_no_anomaly'] = 'No anomaly detected after application upgrade'; 26 $lang['c13y_upgrade_deactivate'] = 'You can deactivate "Check upgrades" plugin'; 25 $lang['c13y_upgrade_no_anomaly'] = 'No anomaly detected after application upgrade, "Check upgrades" plugin was deactivated.'; 27 26 $lang['c13y_dbl_email_user'] = 'Users with same email address'; 28 27 $lang['c13y_correction_dbl_email_user'] = 'Delete duplicate users'; -
branches/2.0/plugins/c13y_upgrade/language/es_ES/plugin.lang.php
r2686 r2830 23 23 24 24 // --------- Starting below: New or revised $lang ---- from Butterfly (1.8) 25 $lang['c13y_upgrade_no_anomaly'] = 'Ninguna anomalía detectada después de la puesta al día de la aplicación'; 26 $lang['c13y_upgrade_deactivate'] = 'Usted puede desactivar el plugin Check upgrades'; 25 $lang['c13y_upgrade_no_anomaly'] = 'Ninguna anomalía detectada después de la puesta al día de la aplicación'; /* TODO , "Check upgrades" plugin was deactivated.'*/ 27 26 $lang['c13y_dbl_email_user'] = 'Utilizadores con la misma dirección e-mail'; 28 27 $lang['c13y_correction_dbl_email_user'] = 'Suprima a los utilizadores en duplicado'; -
branches/2.0/plugins/c13y_upgrade/language/fr_FR/plugin.lang.php
r2299 r2830 23 23 24 24 // --------- Starting below: New or revised $lang ---- from Butterfly (1.8) 25 $lang['c13y_upgrade_no_anomaly'] = 'Pas d\'anomalie détectée après la mise à jour de l\'application'; 26 $lang['c13y_upgrade_deactivate'] = 'Vous pouvez désactiver le plugin "Check upgrades"'; 25 $lang['c13y_upgrade_no_anomaly'] = 'Pas d\'anomalie détectée après la mise à jour de l\'application, le plugin "Check upgrades" a été désactivé.'; 27 26 $lang['c13y_dbl_email_user'] = 'Utilisateurs avec la même adresse email'; 28 27 $lang['c13y_correction_dbl_email_user'] = 'Supprimez les utilisateurs en double'; -
branches/2.0/plugins/c13y_upgrade/language/it_IT/plugin.lang.php
r2444 r2830 23 23 24 24 // --------- Starting below: New or revised $lang ---- from Butterfly (1.8) 25 $lang['c13y_upgrade_no_anomaly'] = 'Nessun\' anomalia individuata dopo l\'aggiornamento dell\'applicatione'; 26 $lang['c13y_upgrade_deactivate'] = 'Potete disattivare il plugin "Check upgrades"'; 25 $lang['c13y_upgrade_no_anomaly'] = 'Nessun\' anomalia individuata dopo l\'aggiornamento dell\'applicatione'; /* TODO , "Check upgrades" plugin was deactivated.'*/ 27 26 $lang['c13y_dbl_email_user'] = 'Utenti con lo stesso indirizzo email'; 28 27 $lang['c13y_correction_dbl_email_user'] = 'Cancellare i doppioni';
Note: See TracChangeset
for help on using the changeset viewer.