Changeset 2065 for trunk/admin


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/admin
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • 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?>
Note: See TracChangeset for help on using the changeset viewer.