Commit Graph

41 Commits

Author SHA1 Message Date
Théophile Bastian 02479196c6 Handle absolute paths for images and data dirs
Bizou now handles correctly data and images directories. One can now
configure

* `MEDIA_BASE_DIR`: base directory for `images` and `data` and
* `{IMAGES,DATA}_URL`: the base url that should be used to point to a
  file in `IMAGES_DIR` (resp. `DATA_DIR`).

Assuming the web server itself can correctly serve those files at the
given URL and Bizou has the correct permissions for those locations,
Bizou should be able to work as well as using relative paths.
2017-11-28 18:59:23 +01:00
Marc MAURICE 4011c2a635 New forbidroot plugin to forbid rootdir listing 2013-11-11 12:15:55 +01:00
Marc MAURICE 884ff7f414 Replaced deprecaded Expires headers by Cache-Control 2013-11-11 10:41:32 +01:00
dooble M e5061f2316 Hide dot-hidden files 2012-08-19 15:06:33 +02:00
Marc MAURICE b497c8ebca functions put in a separate file, so that they can be used by plugins
put the getPathInfo code in a function
2011-07-27 22:59:36 +02:00
Marc MAURICE d94ee6e571 No more progress page: page is displayed directly with flushes
Album preview look recursively for pics in folders, and keep previews in cache
Symlinks are created when the image is already good sized
2011-07-24 19:11:19 +02:00
Marc MAURICE 7d72e379b1 Bizou now displays a progress page when generating thumbs 2011-06-13 22:46:52 +02:00
Marc MAURICE 50a05ad6cf Exported template in an external file 2011-06-03 18:38:53 +02:00
Marc MAURICE dcc5699b07 added a commented line to change the umask of created files 2011-04-28 17:44:02 +02:00
Marc MAURICE 451e14b16e Fixed a bug when bizou was operating at the top root of a site
Thanks to pilau who detected it
2011-01-27 01:13:05 +01:00
Marc MAURICE 23116dfc57 Added directory page title, and some small credit in the footer 2011-01-06 19:18:04 +01:00
Marc MAURICE 2036c6117c Did some css improvements : parent folder link and non album directories 2011-01-05 00:27:32 +01:00
Marc MAURICE 573eb02a9a Added a test to support unexistent plugin dir 2010-12-30 19:50:36 +01:00
Marc MAURICE 2dda0f27a6 Renammed scriptUrlPath to scriptUrl and added rootUrl 2010-12-30 18:35:44 +01:00
Marc MAURICE 89c678e18d Renamed shortPath to simplePath 2010-12-30 17:49:51 +01:00
Marc MAURICE e7ed1d501b Renamed getThumbTarget to getImageLink 2010-12-30 17:46:02 +01:00
Marc MAURICE 8ed0bc08f5 Some typo simplification for the getThumbTarget call 2010-12-30 11:16:33 +01:00
Marc MAURICE fe20539226 Added function to include a file in all plugins 2010-12-30 10:40:38 +01:00
Marc MAURICE 7fd7065683 Plugins can now use stylesheets 2010-12-12 23:46:57 +01:00
Marc MAURICE 909133b1b0 load plugins, and added getThumbTarget function, overloaded by viewer plugin 2010-12-12 23:35:15 +01:00
Marc MAURICE da7935ef84 Now bizou works with no plugin at all. I will add the viewer plugin. 2010-12-12 22:54:09 +01:00
Marc MAURICE ee26ad3354 Minor comments changes 2010-12-12 22:52:03 +01:00
Marc MAURICE cbbc2407ba Added a config.php file 2010-12-12 22:49:01 +01:00
Marc MAURICE 4c7e1533e4 Added proper 404 errors on file or directory not found 2010-11-06 14:40:46 +01:00
Marc MAURICE 3c6fb594a9 A comment about the view.php config 2010-10-25 00:14:56 +02:00
Marc MAURICE 7d1855a2fb Added GPLv3 copyright 2010-10-25 00:13:23 +02:00
Marc MAURICE 6e8404aef2 Added config constant to use view.php or not 2010-10-25 00:06:54 +02:00
Marc MAURICE d7db66cc2d Added configuration constants for data and images directories 2010-10-24 23:59:35 +02:00
Marc MAURICE cb1e3285e4 don't use /index/eoiruer urls but /index.php/eorieur
more standard. the first only work with mod_negociation
2010-10-20 00:39:49 +02:00
Marc MAURICE b05b2ededc Bugfix in file extension detection 2010-10-17 17:00:21 +02:00
Marc MAURICE 0f1b1f8320 minor fixes for dbl / and index at last image 2010-10-08 00:48:13 +02:00
Marc MAURICE f20a06743f Added support for png files 2010-10-08 00:11:01 +02:00
Marc MAURICE 4a35600a74 ../../ security check 2010-10-07 23:56:56 +02:00
Marc MAURICE 98dfce1391 css tunning for up link and folders 2010-10-07 23:49:07 +02:00
Marc MAURICE be9a2293aa redirect when path_info is not set 2010-10-07 23:13:32 +02:00
Marc MAURICE 8e0575b0a3 added THUMB_SIZE config option 2010-10-07 22:42:13 +02:00
Marc MAURICE daf50588f0 template code goes to the bottom 2010-10-07 22:34:57 +02:00
Marc MAURICE cc49f9cbf0 really removed the parent folder code 2010-10-07 22:31:50 +02:00
Marc MAURICE bfc7c4e9c7 Replaced mimetype check by extension check, and displayed parent directory properly 2010-10-07 22:27:18 +02:00
Marc MAURICE 3892fed828 Made the code template compatible for folders, images and other files 2010-10-07 22:14:05 +02:00
Marc MAURICE 9d51c7b1a4 Initial commit 2010-10-07 21:27:44 +02:00