aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2006-12-28 00:06:06 +0000
committerrub <rub@piwigo.org>2006-12-28 00:06:06 +0000
commit4a4f72cbc359b9aff80a60c71882f5f78aa996a1 (patch)
treeb72254d662b73f291dfacfdfbcbcdfed2a98f3c9 /admin/include
parentcc96fca4c5fa560b10dc7d6faf85cb7160aa475e (diff)
Fix Feature Issue ID 0000585.
Convergence of exif configuration between local site and remote site. Notes added on administration page where configuration is not OK. git-svn-id: http://piwigo.org/svn/trunk@1682 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include')
-rw-r--r--admin/include/functions.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php
index 1aec5b1db..9855f8278 100644
--- a/admin/include/functions.php
+++ b/admin/include/functions.php
@@ -1888,4 +1888,40 @@ SELECT image_id
associate_images_to_categories($images, $destinations);
}
+
+/**
+ * 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)
+ {
+ $header_notes[] =
+ sprintf
+ (
+ l10n('note_check_more_info'),
+ sprintf('<a href="http://forum.phpwebgallery.net/" target="_blank"> %s</a>', l10n('note_check_more_info_forum')),
+ sprintf('<a href="http://phpwebgallery.net/doc/" target="_blank"> %s</a>', l10n('note_check_more_info_wiki'))
+ );
+ }
+}
+
?>