# HG changeset patch # User Matti Hamalainen # Date 1558037357 -10800 # Node ID d458ec179c87d1883bbfc0ff6f05a9c46d333d14 # Parent cec96665993a4054ff2652fae6eecdbeaba26bc9 Cleanup. diff -r cec96665993a -r d458ec179c87 mgtool.php --- a/mgtool.php Thu May 16 23:08:39 2019 +0300 +++ b/mgtool.php Thu May 16 23:09:17 2019 +0300 @@ -9,6 +9,25 @@ require_once "mgallery.inc.php"; // +// Operating modes and update flags +// +define("GCMD_UPDATE" , 1); +define("GCMD_RESCAN" , 2); +define("GCMD_CLEAN" , 3); + +define("GCLEAN_CACHES" , 0x01); +define("GCLEAN_IMAGES" , 0x02); +define("GCLEAN_TRASH" , 0x04); +define("GCLEAN_ALL" , 0x0f); + +define("GUPD_MED_IMAGE" , 0x01); +define("GUPD_TN_IMAGE" , 0x02); +define("GUPD_IMAGES" , 0x0f); +define("GUPD_EXIF_INFO" , 0x10); +define("GUPD_CAPTION" , 0x20); + + +// // Array for specifying what will be copied and converted // from the image file's EXIF information tag(s). // @@ -31,23 +50,6 @@ ]; -// -// Operating modes and update flags -// -define("GCMD_UPDATE" , 1); -define("GCMD_RESCAN" , 2); -define("GCMD_CLEAN" , 3); - -define("GCLEAN_CACHES" , 0x01); -define("GCLEAN_IMAGES" , 0x02); -define("GCLEAN_TRASH" , 0x04); -define("GCLEAN_ALL" , 0x0f); - -define("GUPD_MED_IMAGE" , 0x01); -define("GUPD_TN_IMAGE" , 0x02); -define("GUPD_IMAGES" , 0x0f); -define("GUPD_EXIF_INFO" , 0x10); -define("GUPD_CAPTION" , 0x20); //