TWG version 2.7

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.7
- Fix: An error in the administration was showing a wrong popup.
- Fix: The update check was outdated. Now it works fine again. 

2.6
- New: Compatible with php 8.1
- New: Compatible with php 8.2
- New: Compatible with php 8.3
- Fix: TopX for sub directories with SEO enable was broken. E.g: https://www.tinywebgallery.com/demo/index.php?twg_album=03_Mexico+%282004%29&twg_top10=views
- Fix: Fixed/removed some old links in the administration.

2.5.1
- Fix: &amp; was replaced with & when background images are loaded the first time. Some browsers have problems with the urlencoding here. So I removed it. 
- Fix: srand was removed from the cose as it was causing "Implicit conversion from float 8459.159892 to int loses precision" messages and is not needed anymore.

2.5
- New: Compatible with php 8
- New: Replaced the old projekktor solution with video.js. See: https://videojs.com/
- New: Removed support for all the old video formats. The only 2 remaining are: mp4 for local videos and iframe for sites like youtube.
- Fix: Some more seo improvemtns. index.php is now also removed a a couple of places (e.g. canonical, main gallery link, bandwidth icon, language selector, up icon)
- Fix: Some images have not all required exif fields which could lead to an error. Now this error is catched and the filed is treated as empty.
- Fix: Image list size in the jquery slideshow was set wrong. Now this is set properly again.
- Fix: Comments cache cleanup was throwing an error. 
- Fix: Reading not existing folders are not reported in the log file anymore as this was because of cached data.
- Fix: Warning with invalid data in readxml fixed. 
- Fix: private image for secured folders where not shown when SEO is enabled.

2.4.9
- Fix: Fixed a jQuery error in the console.

2.4.8
- Fix: The image counter was broken in 2.4.7 - Now it works fine again. 

2.4.7
- New: Keyboard next is now also on space
- New: Counter has now a . for large numbers. Like 10.000 instead of 10000
- New: Support for php 7.4
- New: The parameter twg_offset does now support 5 chars instead of 4
- New: Africans (ZAF) is now available as a new langauge
- New: body has now a class "not-in-iframe" or "in-iframe" depending if you use TWG in an iframe or not. So you can style the gallery differently based on that.
- Fix: Edit window has a small scrollbar. This was removed.
- Fix: A bug in the exif reader was found - Thanks to Alexander for the fix! - rotation also works better now
- Fix: Fix on random images when directory is empty.

2.4.6
- New: You can add a dataprotection link at the footer with $privacy_policy_url
- New: The ip was removed from the _twg.log. If you want the ip from a correct/wrong login you have to combine this info with your hosters logs. 
- Fix: a php 7 problem was fixed when searching for a image.

2.4.5
- New: Support for php 7.2 
- New/Fix flock for reading/writing xml files can be turned on/off now as I had a users where this was not working at all properly: $enable_flock
- Fix: Detection for IE Edge was not working properly after a upgrade of the external browser detection script. Now it works again and also now the html5 uploader does work now fine anymore.

2.4.4
- New: Support for the masonary thumbnail style. See http://www.tinywebgallery.com/demo/twg_album/01_Administration~01_masonry
- New: Full support of php 7 of the flash uploader
- New: No backup of the counter is made anymore after introducing flock.
- Fix: counter.txt and useronline.txt where not created after introducing flock 
- Fix: Some minor php 7 fixes
- Fix: Fallback for seo tree improved. Was not working on tinywebgallery because of the hoster strato
- fix: php 7 type casting bugfix in the administration fixed. 

2.4.3
New: The read/write operations for the xml files for the counter are now using flock to avoid parallel file read/write errors that cause invalid xml files.
New: Updated mobiledetect.net to 2.8.25 (25th March 2017) and improved the browser detection
New: The fullscreen mode does not not render dynamically smaller images then the small image size as bandwidth is nowadays no problem anymore even on mobile devices. 
New: Changed the default of $admin_default_upload_method from 'html' to flash; You can switch to flash there anytime.
New: The default uploader is now html5 and not flash anymore. Change $html5_upload_mobile_only to true if you want the flash loaded first on desktops.
New: Improved text if the upload flash is not available. You can directly go to the html5 uploader
New: When flash cannot be loaded for the thumbnail flash you can now direcly go to the ajax mode. 
Fix: The noflash massage was not properly formated.

2.4.2
- Fix: Error in the i_privatelogin.php was fixed.
- Fix: Directory sorting on archlinux systems where fixed with a 11 char timestamp - thanks to Gabriel

2.4.1
- New: $enable_download_for_registered_users_only
- New: Support for $mail->SMTPSecure. e.g. needed for Strato
- New: Support for resonsive youtube videos. Only a ratio of 16:9 is included right now. For other ratios you need to change the style videoIframe-res -> padding-bottom 
- Fix: at php_include mode the ajax calls for the detail page was fixed. 
- Fix: pagingation on mobile devices where not shringed properly. Now by default only 5 elements are shown.
- Security fix: XSS vulnerability after the login in the administration was fixed. 
- Security fix: php mailer used by the flash uploader was updated to 5.2.22 because of a security hole. If you use this you need php > 5.1
- Security fix: forms in the iframes where changed from get to post for enhanced security. 

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