TWG version 2.4

Here you find a small history of small bugfixes where I don't release a new release.
If you want to update I recommend to overwrite all files except your settings in
my_config.php, my_style.css and admin/_config/.htusers.php and your pictures dir of course.
Check the history for a full list of changes: http://www.tinywebgallery.com/history.htm

If you need an urgent fix of something - There is always a way to speed things up ;)


2.4
- New: Html5 uploader in the frontend - check the 14 new settings in the config.php -> $html5_upload_* . plupload is used. I use the default ui without any changes to stay GPL-2.0 compliant. The whole php side of course is from TWG. Please check http://www.plupload.com/license/gplv2 if you want to do any changes by yourself. So maybe you have to buy a license in your case. 
- New: Full support of php 7
- Fix: Rotate left button was not working when showing under the image.
- Fix: mp3 and seo for local mp3s is now supported. video_flash_site has to be set!

2.3.5
- Fix: On mobile devices the flash upload menu item in the site is removed. 

2.3.4
- Fix: https urls where rendered wrong is some setups. Now they should work fine.
- Fix: Fixed a html error in the bottom counter div. 
- Fix: $show_login = $twg_mobile_show_login; is now set correctly.
- Fix: TWG does now run under SSL without warnings. One http link was fixed. 
- Fix: function gd_version is only defined if it does not exist yet.
 
2.3.3
- Security fix: A couple of small XSS vulnerabilities are closed. Thanks to Tim for the audit. Some issues where closed when you already where logged in in the old quixplorer. 
- Fix: replaceInput function was improved to detect encoded // 
- Fix: $skip_thumbnail_page=true in combination with larger galleries had a wrong (not needed) offset parameter at the up button which caused a white page.  


2.3.2
- Fix: No images uploaded was shown on pages only with folders. The message was removed again.

2.3.1
- New: In mobile mode the login is now a seperate switch: $twg_mobile_show_login
- New: $twg_mobile_paging_num and $twg_mobile_paging_steps are now available.
- Fix: $generate_cache_at_upload was brocken because of a new function I added in the gallery but not in the upload. Now the upload works fine again.
- Fix: A global private file is now centered on top.
- Fix $enable_mobile_detection was not used for the new browser detection.

2.3
New: A couple new switches if a tablet is detected do exist now. See the internal_confif.php -> $twg_tablet_*
New: background images that a cached in the cache folder are removed once a day or if you delete the session cache because changing a back.png was really hard as you need to delete all cache images that belongs to the image.
New: Comments can only be entered when the page is inside an iframe. So direct entries through e.g. a bot doe not work anymore.
Fix: removed the "magic quotes GPC" check in the info as it is depricated and was removed in PHP 5.4
Fix: Pagination was reworked in 2.2 but failed for the default way. You should update to this version to get the correct pagination back!
Fix: Error "_folder_top.tmp.png' could not loaded properly." is now fixed. Was caused when image magic was used together with autocreation of folder.png files.
Fix: Undefined variable: twg_offset_
Fix: Undefined variable: my_offset_js
Fix: Removed folders caused an error messag in the log. This case is now detected.
Fix: html5 videos had some extra spaces which leads to a scrollbar on some systems.

2.2
New: TWG goes responsive. Main, thumbnail and detailpages are responsive now. See the new howto 57 how to use this. This feature is available for registered users.
New: Support for HTML5 videos! See the updated howto 34.
New: Sorting mixed folders does now ignore v___. So sorting is not needed anymore only because of the video prefix.
New: New html mode selector images.
New: You can now set $use_manual_port if you are behind a proxy with a different port. 
New: Additional media queries where added to improve support for mobile devices.
New: Optimization for ipad and iphone in horizontal mode.
New: Album and folder description use the dotdotdot jQuery plugin which cuts text with ... if they cannot displayed anymore because of the screen size. See the first page of the ajax demo and reduche the browser size until you see the ... ;).
New: Updated jQuery to 1.11.1
New: On smart phones the autodetect of thumbnails is disbled if the responsive mode is enabled on the thumb page because this can cause exteme big paginations.
New: On browser resize the new size is sent right away. So at the next request the size works fine right away.
New: TFU 3.2 included.
Fix: Swipe was not working on elements with links. This means on the detail page swiping was not working over an image. Now a are excluded in the plugin and swiping should work now everywhere.
Fix: Some virus scanner where reporting a file of TWG which included some encoded code as virus. This is a false alarm but the code was changed to avoid that TWG is blocked by your hoster. 
Fix: The pagination on the thumbnail page was wrong if you mix folders and thumbnails
Fix: Sorting for dates before 2000 (Length of the timestamp of 9)
Fix: Disabling the captions was disabling the edit of folder.txt and foldername.txt in the menu. Now this feature still works when captions are not shown.
Fix: iframe youtube and using a sorting prefix was not playing the first video.
Fix: Direct folder.png was not shown in php include mode.
Fix: Folder image was not shown when basedir was not default and SEO was enabled.

For the rest of the history please see: http://www.tinywebgallery.com/history.htm