Ignore:
Timestamp:
Dec 28, 2006, 1:06:06 AM (17 years ago)
Author:
rub
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions.php

    r1624 r1682  
    18891889  associate_images_to_categories($images, $destinations);
    18901890}
     1891
     1892/**
     1893 * Check configuration and add notes on problem
     1894 *
     1895 * @param void
     1896 * @return void
     1897 */
     1898function check_conf()
     1899{
     1900  global $conf, $header_notes;
     1901  $count = 0;
     1902 
     1903  if (($conf['show_exif']) and (!function_exists('read_exif_data')))
     1904  {
     1905    $header_notes[] = sprintf(l10n('note_check_exif'), '$conf[\'show_exif\']');
     1906    $count++;
     1907  }
     1908
     1909  if (($conf['use_exif']) and (!function_exists('read_exif_data')))
     1910  {
     1911    $header_notes[] = sprintf(l10n('note_check_exif'), '$conf[\'use_exif\']');
     1912    $count++;
     1913  }
     1914
     1915  if ($count != 0)
     1916  {
     1917    $header_notes[] =
     1918      sprintf
     1919      (
     1920        l10n('note_check_more_info'),
     1921        sprintf('<a href="http://forum.phpwebgallery.net/" target="_blank"> %s</a>', l10n('note_check_more_info_forum')),
     1922        sprintf('<a href="http://phpwebgallery.net/doc/" target="_blank"> %s</a>', l10n('note_check_more_info_wiki'))
     1923      );
     1924  }
     1925}
     1926
    18911927?>
Note: See TracChangeset for help on using the changeset viewer.