Changeset 2065 for trunk


Ignore:
Timestamp:
Jul 19, 2007, 12:48:50 AM (17 years ago)
Author:
rub
Message:

Resolved issue 0000725: Check integrity

Replace actual test (exif) by a new dynamic system of check integrity.
Anomalies are listed with automatic correction if it's possible.

It's a proposition of new feature!

Location:
trunk
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin.php

    r1978 r2065  
    4545
    4646// +-----------------------------------------------------------------------+
    47 // |  Check configuration and add notes on problem                         |
    48 // +-----------------------------------------------------------------------+
    49 
    50 check_conf();
    51 
    52 // +-----------------------------------------------------------------------+
    5347// |                            variables init                             |
    5448// +-----------------------------------------------------------------------+
     
    6761$page['errors'] = array();
    6862$page['infos']  = array();
     63
     64
     65if ($page['page'] == 'intro')
     66{
     67  include_once(PHPWG_ROOT_PATH.'admin/include/functions_check_integrity.inc.php');
     68  check_integrity();
     69}
    6970
    7071$link_start = PHPWG_ROOT_PATH.'admin.php?page=';
  • trunk/admin/include/functions.php

    r1978 r2065  
    19531953
    19541954/**
    1955  * Check configuration and add notes on problem
    1956  *
    1957  * @param void
    1958  * @return void
    1959  */
    1960 function check_conf()
    1961 {
    1962   global $conf, $header_notes;
    1963   $count = 0;
    1964 
    1965   if (($conf['show_exif']) and (!function_exists('read_exif_data')))
    1966   {
    1967     $header_notes[] = sprintf(l10n('note_check_exif'), '$conf[\'show_exif\']');
    1968     $count++;
    1969   }
    1970 
    1971   if (($conf['use_exif']) and (!function_exists('read_exif_data')))
    1972   {
    1973     $header_notes[] = sprintf(l10n('note_check_exif'), '$conf[\'use_exif\']');
    1974     $count++;
    1975   }
    1976 
    1977   if ($count != 0)
    1978   {
    1979     $pwg_links = pwg_URL();
    1980     $link_fmt = '<a href="%s" onclick="window.open(this.href, \'\'); return false;">%s</a>';
    1981     $header_notes[] =
    1982       sprintf
    1983       (
    1984         l10n('note_check_more_info'),
    1985         sprintf($link_fmt, $pwg_links['FORUM'], l10n('note_check_more_info_forum')),
    1986         sprintf($link_fmt, $pwg_links['WIKI'], l10n('note_check_more_info_wiki'))
    1987       );
    1988   }
    1989 }
    1990 /**
    19911955 * Refer main PhpWebGallery URLs (currently PHPWG_DOMAIN domain)
    19921956 *
  • trunk/admin/intro.php

    r2033 r2065  
    279279$template->assign_var_from_handle('ADMIN_CONTENT', 'intro');
    280280
     281display_check_integrity();
     282
    281283?>
  • trunk/language/en_UK.iso-8859-1/admin.lang.php

    r2064 r2065  
    555555$lang['special_admin_menu'] = 'Specials';
    556556$lang['pictures_menu'] = 'Pictures';
    557 $lang['note_check_exif'] = '%s must be to set to false in your config_local.inc.php file because exif are not supported.';
    558 $lang['note_check_more_info'] = 'Go to %s or %s for more informations.';
    559 $lang['note_check_more_info_forum'] = 'the forum';
    560 $lang['note_check_more_info_wiki'] = 'the wiki';
    561557$lang['Duplicates'] = 'Files with same name in more than one physical category';
    562558$lang['DEMO'] = 'DEMO';
     
    619615$lang['purge history detail'] = 'purge history detail';
    620616$lang['purge history summary'] = 'purge history summary';
     617$lang['c13y_title'] = 'Check integrity';
     618$lang['c13y_Anomaly'] = 'Anomaly';
     619$lang['c13y_Correction'] = 'Correction';
     620$lang['c13y_Automatic_correction'] = 'Automatic correction';
     621$lang['c13y_Impossible_automatic_correction'] = 'Impossible automatic correction';
     622$lang['c13y_Correction_applied_success'] = 'Correction applied with success';
     623$lang['c13y_Correction_applied_error'] = 'Correction applied with error';
     624$lang['c13y_Apply_selected_corrections'] = 'Apply selected corrections';
     625$lang['c13y_anomaly_count'] = '%d anomaly has been detected.';
     626$lang['c13y_anomalies_count'] = '%d anomalies has been detected.';
     627$lang['c13y_anomaly_corrected_count'] = '%d anomaly has been corrected.';
     628$lang['c13y_anomalies_corrected_count'] = '%d anomalies has been detected corrected.';
     629$lang['c13y_anomaly_not_corrected_count'] = '%d anomaly hasn\'t been corrected.';
     630$lang['c13y_anomalies_not_corrected_count'] = '%d anomalies hasn\'t been corrected.';
     631$lang['c13y_more_info'] = 'Go to %s or %s for more informations';
     632$lang['c13y_more_info_forum'] = 'the forum';
     633$lang['c13y_more_info_wiki'] = 'the wiki';
     634$lang['c13y_exif_anomaly'] = '%s value is not correct file because exif are not supported';
     635$lang['c13y_exif_correction'] = '%s must be to set to false in your config_local.inc.php file';
     636$lang['c13y_guest_non_existent'] = 'Main "guest" user don\'t exist any more';
     637$lang['c13y_bad_guest_status'] = 'Main "guest" user status is incorrect';
     638$lang['c13y_default_non_existent'] = 'Default user don\'t exist any more';
     639$lang['c13y_webmaster_non_existent'] = 'Main "webmaster" user don\'t exist any more';
     640$lang['c13y_bad_webmaster_status'] = 'Main "webmaster" user status is incorrect';
     641$lang['c13y_user_created'] = 'User "%s" created with "%s" like password';
     642$lang['c13y_user_status_updated'] = 'Status of user "%s" updated';
    621643?>
  • trunk/language/fr_FR.iso-8859-1/admin.lang.php

    r2064 r2065  
    554554$lang['special_admin_menu'] = 'Spéciales';
    555555$lang['pictures_menu'] = 'Images';
    556 $lang['note_check_exif'] = '%s doit être mis à "false" dans votre fichier config_local.inc.php parce que l\'exif n\'est pas supporté.';
    557 $lang['note_check_more_info'] = 'Allez sur %s ou %s pour plus d\'informations.';
    558 $lang['note_check_more_info_forum'] = 'le forum';
    559 $lang['note_check_more_info_wiki'] = 'le wiki';
    560556$lang['Duplicates'] = 'Fichiers portant le même nom dans plusieurs catégories physiques';
    561557$lang['DEMO'] = 'DÉMO';
     
    620616$lang['purge history detail'] = 'purger le detail de l\'historique';
    621617$lang['purge history summary'] = 'purger le sommaire de l\'historique';
     618$lang['c13y_title'] = 'Contrôle d\'intégrité';
     619$lang['c13y_Anomaly'] = 'Anomalie';
     620$lang['c13y_Correction'] = 'Correction';
     621$lang['c13y_Automatic_correction'] = 'Correction automatique';
     622$lang['c13y_Impossible_automatic_correction'] = 'Correction automatique impossible';
     623$lang['c13y_Correction_applied_success'] = 'Correction appliquée avec succés';
     624$lang['c13y_Correction_applied_error'] = 'Correction appliquée avec erreur';
     625$lang['c13y_Apply_selected_corrections'] = 'Appliquer les corrections sélectionnées';
     626$lang['c13y_anomaly_count'] = '%d anomalie a été détecté.';
     627$lang['c13y_anomalies_count'] = '%d anomalies ont été détectées.';
     628$lang['c13y_anomaly_corrected_count'] = '%d anomalie a été corrigée.';
     629$lang['c13y_anomalies_corrected_count'] = '%d anomalies ont été corrigées.';
     630$lang['c13y_anomaly_not_corrected_count'] = '%d anomalie n\'a pas pu être corrigée.';
     631$lang['c13y_anomalies_not_corrected_count'] = '%d anomalies n\'ont pu être corrigées.';
     632$lang['c13y_more_info'] = 'Allez sur %s ou %s pour plus d\'informations';
     633$lang['c13y_more_info_forum'] = 'le forum';
     634$lang['c13y_more_info_wiki'] = 'le wiki';
     635$lang['c13y_exif_anomaly'] = 'La valeur de %s n\'est pas correcte parce que l\'exif n\'est pas supporté';
     636$lang['c13y_exif_correction'] = '%s doit être mis à "false" dans votre fichier config_local.inc.php';
     637$lang['c13y_guest_non_existent'] = 'L\'utilisateur "invité" principal n\'existe plus';
     638$lang['c13y_bad_guest_status'] = 'Le statut de l\'utilisateur "invité" principal est incorrect';
     639$lang['c13y_default_non_existent'] = 'L\'utilisateur par défaut n\'existe plus';
     640$lang['c13y_webmaster_non_existent'] = 'L\'utilisateur "webmestre" principal n\'existe plus';
     641$lang['c13y_bad_webmaster_status'] = 'Le statut de l\'utilisateur "webmestre" principal est incorrect';
     642$lang['c13y_user_created'] = 'Utilisateur "%s" créé avec comme mot de passe "%s"';
     643$lang['c13y_user_status_updated'] = 'Statut de l\'utilisateur "%s" mis à jour';
    622644?>
Note: See TracChangeset for help on using the changeset viewer.