Mercurial > hg > mgallery
comparison mgtool.php @ 282:d458ec179c87
Cleanup.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 16 May 2019 23:09:17 +0300 |
parents | cec96665993a |
children | 1bcaab2d3e6a |
comparison
equal
deleted
inserted
replaced
281:cec96665993a | 282:d458ec179c87 |
---|---|
5 // -- Commandline tool for creating / updating gallery | 5 // -- Commandline tool for creating / updating gallery |
6 // Programmed and designed by Matti 'ccr' Hamalainen <ccr@tnsp.org> | 6 // Programmed and designed by Matti 'ccr' Hamalainen <ccr@tnsp.org> |
7 // (C) Copyright 2015-2019 Tecnic Software productions (TNSP) | 7 // (C) Copyright 2015-2019 Tecnic Software productions (TNSP) |
8 // | 8 // |
9 require_once "mgallery.inc.php"; | 9 require_once "mgallery.inc.php"; |
10 | |
11 // | |
12 // Operating modes and update flags | |
13 // | |
14 define("GCMD_UPDATE" , 1); | |
15 define("GCMD_RESCAN" , 2); | |
16 define("GCMD_CLEAN" , 3); | |
17 | |
18 define("GCLEAN_CACHES" , 0x01); | |
19 define("GCLEAN_IMAGES" , 0x02); | |
20 define("GCLEAN_TRASH" , 0x04); | |
21 define("GCLEAN_ALL" , 0x0f); | |
22 | |
23 define("GUPD_MED_IMAGE" , 0x01); | |
24 define("GUPD_TN_IMAGE" , 0x02); | |
25 define("GUPD_IMAGES" , 0x0f); | |
26 define("GUPD_EXIF_INFO" , 0x10); | |
27 define("GUPD_CAPTION" , 0x20); | |
28 | |
10 | 29 |
11 // | 30 // |
12 // Array for specifying what will be copied and converted | 31 // Array for specifying what will be copied and converted |
13 // from the image file's EXIF information tag(s). | 32 // from the image file's EXIF information tag(s). |
14 // | 33 // |
29 [ MG_INT, "filesize" , "FileSize" ], | 48 [ MG_INT, "filesize" , "FileSize" ], |
30 [ MG_STR, "keywords" , "keywords" ], | 49 [ MG_STR, "keywords" , "keywords" ], |
31 ]; | 50 ]; |
32 | 51 |
33 | 52 |
34 // | |
35 // Operating modes and update flags | |
36 // | |
37 define("GCMD_UPDATE" , 1); | |
38 define("GCMD_RESCAN" , 2); | |
39 define("GCMD_CLEAN" , 3); | |
40 | |
41 define("GCLEAN_CACHES" , 0x01); | |
42 define("GCLEAN_IMAGES" , 0x02); | |
43 define("GCLEAN_TRASH" , 0x04); | |
44 define("GCLEAN_ALL" , 0x0f); | |
45 | |
46 define("GUPD_MED_IMAGE" , 0x01); | |
47 define("GUPD_TN_IMAGE" , 0x02); | |
48 define("GUPD_IMAGES" , 0x0f); | |
49 define("GUPD_EXIF_INFO" , 0x10); | |
50 define("GUPD_CAPTION" , 0x20); | |
51 | 53 |
52 | 54 |
53 // | 55 // |
54 // Convert and scale image file function, for generating | 56 // Convert and scale image file function, for generating |
55 // the intermediate size images and thumbnails. Uses the | 57 // the intermediate size images and thumbnails. Uses the |