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!

git-svn-id: http://piwigo.org/svn/trunk@2065 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rub 2007-07-18 22:48:50 +00:00
commit b879e17424
7 changed files with 515 additions and 50 deletions

View file

@ -1951,42 +1951,6 @@ SELECT id,
fclose($fp);
}
/**
* Check configuration and add notes on problem
*
* @param void
* @return void
*/
function check_conf()
{
global $conf, $header_notes;
$count = 0;
if (($conf['show_exif']) and (!function_exists('read_exif_data')))
{
$header_notes[] = sprintf(l10n('note_check_exif'), '$conf[\'show_exif\']');
$count++;
}
if (($conf['use_exif']) and (!function_exists('read_exif_data')))
{
$header_notes[] = sprintf(l10n('note_check_exif'), '$conf[\'use_exif\']');
$count++;
}
if ($count != 0)
{
$pwg_links = pwg_URL();
$link_fmt = '<a href="%s" onclick="window.open(this.href, \'\'); return false;">%s</a>';
$header_notes[] =
sprintf
(
l10n('note_check_more_info'),
sprintf($link_fmt, $pwg_links['FORUM'], l10n('note_check_more_info_forum')),
sprintf($link_fmt, $pwg_links['WIKI'], l10n('note_check_more_info_wiki'))
);
}
}
/**
* Refer main PhpWebGallery URLs (currently PHPWG_DOMAIN domain)
*