##############################################################
####                                                      ####
##                                                          ##
#   Simple File Sharer                                       #
#   V1.72                                                    #
#   2015 February 6th                                        #
#   http://codecanyon.net/user/themac                        #
#   http://codecanyon.net/item/simple-file-sharer/4562987    #
##                                                          ##
####                                                      ####
##############################################################
#
#
#
#
# update 2015-02-06 [1.72]
#
# - fixed: updated some OS-detection/changes again
# - minor fixes: some smaller corrections
#
# update 2015-01-21 [1.71]
#
# - fixed: Android-Download-Troubles with XSendFile
# - fixed: some Android Devices weren't identifying themself as Android devices, considered them now
# - improved: removing orphan database entries of non existing files automatically when running cleanUp (shouldn't happen, but just in case ...)
#
# update 2014-11-17 [1.70]
#
# - fixed: admin statspage -> considering time changes (summer/standard time switch) (step 1, summer->winter)
#
# update 2014-11-05 [1.69]
#
# - fixed: admin filestable -> sorting/searching by/for filenames was refering to the crypted filenames (SFS 1.66) - fixed now
# - changed: removed html-conversion on faqs.php - now you're able to use HTML-Tags in faqs.lang.php
# - fixed (minor): admin filestable -> displaying correct title when hovering delete button
#
# update 2014-10-10 [1.68]
#
# - refinements: optical adjustments on multiple files upload result page
# - fixed: replaced crypted with real filenames on filesgroup page
# - fixed (again): new issue occured with Android's doublecall of download links (more on http://code.google.com/p/android/issues/detail?id=1978 )
# - improved: added detailed and tailored nginx informations to setup routines
#
# update 2014-09-23 [1.67]
#
# - fixed: crypted filenames instead of the origin ones were shown in the emails
#
# update 2014-09-16 [1.66]
#
#	- added: uploaded files will be named on server with a crypted name
#	- optimized: using origin filename to display on dashboards "The Last File"-section instead of used name on server
#	- optimized: using origin filename to display on admin's files table instead of used name on server
#
# update 2014-08-15 [1.65]
#
#	- improvement: jquery uploader using RENAME for moving instead of COPY to move file into it's target directory (faster and spacesaving)  
#
# update 2014-08-15 [1.64]
#
#	- refinements: footer wasn't filled full height on smaller widths (mobile devices)
#	- fixed: removed maybe unwanted HTML Tags from Email Headers
#	- fixed: two links/buttons on deletion page leaded to webservers root instead of installation root
#	- fixed: various, not that extensive, small fixes
#	- added: CAPTCHA protection for contact and abuse form
#
# update 2014-02-22 [1.63]
#
#	- fixed: MSIE download click button doesn't work on some versions of MSIE
#	- improved: disconnect when trying to reconnect to lost mysql connections
#
# update 2014-01-12 [1.62]
#
#	- fixed: an old version of the setup routine was used (1.55) with SFS 1.61
#
# update 2014-01-06 [1.61]
#
#	- fixed: combination of disabled autodeletion (delDays set to -1) and enabled user defined deletion caused deletion of all files
#	- added: information about maximum downloads on download page if set by uploader
# 
# update 2013-12-27 [1.6]
#
#	- refinement: layout modifications for Smartphones
#	- fixed: androids double calls URLs (http://code.google.com/p/android/issues/detail?id=1978)
#		Session or password protected downloads were not possible
#	- fixed: download has started information after clicking donload button
#	- refinement: maximum filesize (database field) was 2GB, now maximum filesizes up to 8 Exabytes are possible
#	- added: uploaders can now define the maximum age of uploaded files
#	- added: uploaders can now define the maximum number of downloads for uploaded files
#	- refinement: automatically database reconnection if needed (mysql server has gone ...)
#
# update 2013-10-22 [1.55]
#
#	- fixed: combination of download timer and password protection stopped working with SFS 1.53
#
# update 2013-10-16 [1.54]
#
#	- fixed: overall stats stops at 2GB totals, now values up to 8 Exabytes are possible
#		update calculates approximate values for the previous up- and downloads
#
# update 2013-10-05 [1.53]
#
#	- fixed: download troubles on Microsoft Internet Explorer when using the download timer
#
# update 2013-10-04 [1.52]
#
#	- fixed: upload button was not clickable everywhere on safari browsers
#	- fixed: safari on Windows platforms is not able to handle multiple file uploads
#		so the multi upload will be disabled autmomatically for Safari Browsers on Windows platforms
#	- fixed: drag and drop for Safari Browsers on Windows platforms
#	- fixed: added missing language keys to german language files
#	- refinement: moved all multi-upload resets to config.php
#	- refinement: disabled drag and drop functionality for Microsoft Internet Explorer lower 10.0
#
# update 2013-09-19 [1.51]
#
#	- fixed: re-upload after cancel with cancel button was only possible on multiple uploads
#	- fixed: JS debug message
#	- added filesize progress in bytes during upload ( Size uploaded / Size to upload)
#
# update 2013-09-11 [1.5]
#
#	- added cancel button to break current upload process
#	- added: stats data for deleted files are avail after deletion furthermore
#	- added TB and PB for file size calculations
#	- added support for utf encoded mail subjects
#	- refinement: origin filenaming for downloads through XSendFile
#	- refinement: additional file existing check
#
# update 2013-08-21 [1.42]
#
#	- fixed: on multiple uploads the displaying of the downloadlinks was shown too early (after the first upload), 
#		 this effect was visualy when uploading greater files
#
# update 2013-08-10 [1.41]
#
#	- fixed: removed XSendFile Debug Message from download handler
#	- refinement: displaying date without time for deletion point of time
#
# update 2013-07-29 [1.4]
#
#	- added .htaccess directory browsing protection for not secured installations
#	- added possibility to use [delDays] in the mails for the users
#	- added possibility to upload multiple files
#		- can be turned on/off in the config
#		- number of max files can be defined in config
#		- link to group of files will be generated
#	- added to administration: external source for the files datatables
#	- added to the administration: possibility to bypass confirm dialog on file deletion
#	- added protection of mistaken leaving the "Upload succeeded" site without saving or sending download links
#	- added possibility to disable autodeleter
#	- added responsive behaviour by default with fix for the max-width effect
#	- fixed generating preview image for PNG files
#	- added enhanced direct download protection, should now work for higher usage too
#	- added naming download files with the original one during the download process
#	- added transforming of download button after download has started (preventing of double call the download page by clicking the download button twice)
#	- fixed inside the administration: chart generation w/o enough data for calculations (i.e. just one file type, just one day) - next fix :)
#
# update 2013-06-21 [1.3]
#
#	- fixed cleanUp function, it was deleting from database just regarding time of upload
#	- max upload size in byte now multiplicated with 1024 * 1024 instead of 1000 * 1000
#	- cutting (ellipsis) supperlong file names on
#		- download page (headline)
#		- delete page (headline)
#		- name of last file table on admin's dashboard
#	- G (Gigabyte) values of post_max_size and upload_max_filesize are possible now too, no need to convert to Megabyte any longer
#	- supporting mod_xsendfile for Apache2/Apache2.2 - built to handle download of bigger files w/o running into performance troubles (https://tn123.org/mod_xsendfile/)
#	- bandwidth throtteling(define the kbps in the config)
#	- no memory usage any longer on dowloads, so memory_limit doesn't have to be increased
#	- sorting by upload time desc in admin's file table by default 
#	- updated to Bootstrap v2.3.2 (shift and middle click corrections for Firefox)
#
# update 2013-05-27 [1.2]
#
#	- fix for chart generation w/o enough data for calculations (i.e. just one file type, just one day)
#	- replaced crystalproject Icons with EdenIcons Bright Icons (http://www.iconeden.com)
#	- added countdown function to set waiting seconds before download is possible (can be configured and disabled in the config)
#	- added possibility to display preview of image on download page (requires GD Library)
#	- delDays depending on last download or age
#	- download link and delete link input fields are readonly now
#	- possibility to password protect files
#	- FIX: now considering telephone number in contact form  
#	- reportig file function implemented on download page
#	- possibility to add message to receipient
#
# update 2013-04-23 [1.11]
#
#	- added number of days remaing until deletion to delete and download page
#	- added drop down menue with language switcher
#	- fixed bug on displaying expiration date
#
# update 2013-04-21 [1.1]
#
#	- added missing possibility to logout from admin interface
#	- admin area: new strategy to display filetypes in the pie chart
#	- fix for too long filenames (extensions were cutted)
#	- added possibility to disable direct downloads via IP or SESSION, can be disabled too
#	- list of filextensions can be denied
#	- list of filextensions can be allowed
#	- percentage values are displayed inside the progressbar too
#	- added age information to download and deletion page
#
# released 2013-04-19 [1.0]
#