Commit Graph

488 Commits (507f72deed520d81264ac6000c25bcc5224742a4)

Author SHA1 Message Date
Tobias Reich ad4fbf3ffd Code style adjustment
9 years ago
Tobias Reich c904b8e2a5 Remove skipDuplicates from init response when logged out
9 years ago
Tobias Reich 3287e27ccd Default param for Session init
9 years ago
Tobias Reich cafcc2165f Removed unnecessary self::dependencies checks
9 years ago
Tobias Reich 4974adfed0 Activate plugins directly without extending Module
9 years ago
Tobias Reich 61fcaa57c0 Added "use SplObserver"
9 years ago
Tobias Reich 6e7dccc037 Renamed folder to Modules
9 years ago
Tobias Reich 8c76d340a7 Renamed folder to Access
9 years ago
Tobias Reich 145c3f5147 Namespaces, Plugins via Namespaces, API entry file renamned, Settings::set()
9 years ago
Tobias Reich dc35658ddc Fixed name
9 years ago
Tobias Reich 412fbf47ee exit() after using access-file
9 years ago
Tobias Reich aeb62bba48 Moved misc file
9 years ago
Tobias Reich 2f70bfac41 Removed __clone
9 years ago
Tobias Reich 84c4a5b267 Removed version from sql files
9 years ago
Tobias Reich 17e5dba979 Singleton pattern for Settings::get(), Database::get() and Plugins::get()
9 years ago
Tobias Reich 0dffa5c765 Dropped update support for versions < 2.7
9 years ago
Tobias Reich 36b1b40325 Added 'final' to access classes
9 years ago
Tobias Reich 24c883a661 Use default value to define defineTablePrefix
9 years ago
Tobias Reich 9e52f93a59 Removed database updates for versions <= 2.5.0
9 years ago
Tobias Reich 70d7e1e6f2 API cleanup and code style changes
9 years ago
Tobias Reich a5cab35e34 Added type hints
9 years ago
Tobias Reich 3d88300df1 Code style adjustment
9 years ago
Tobias Reich 7bce954c8d Register autoloader functions as anonymous functions
9 years ago
Tobias Reich 0a9b0d0078 Simplified autoloader
9 years ago
Tobias Reich 33e16041af Removed $dbTablePrefix definition as defineTablePrefix() will do the same
9 years ago
Tobias Reich 1019b0fef1 Added 'public' to database connect function
9 years ago
Tobias Reich 9cb6dc19b7 Added abstract/final to classes to be more strict
9 years ago
Tobias Reich 634c3621db Update database connect function and update mechanism
9 years ago
Tobias Reich 9e76acd9a8 PHP code style adjustments
9 years ago
Tobias Reich 312db57f71 Reverted query optimization as I failed to fix the incorrect sorting cased by this
9 years ago
Tobias Reich 6547229a3b Added fallback sorting
9 years ago
Tobias Reich f87701b1c0 Improved loading performance by combining multiple queries #372 #241
9 years ago
Tobias Reich db4f3d65fb User Album::prepareData to prepare an Album, even for single albums
9 years ago
Matthias Gutjahr dca8b5555d Set undefined vars, remove unused vars nad code that cannot be reached.
9 years ago
Peter Hoffmann 115188c2d0 You don't need to set config options each time, better set them once
9 years ago
Tobias Reich 2e96f089a7 Fixed tons of XSS issues and escaping problems
9 years ago
Tobias Reich eef971e3eb Catch upload errors #393
9 years ago
Tobias Reich f1ff8bf2b0 Import module now without static functions
9 years ago
Tobias Reich 035ca23c97 Added returnOnError functionality to Photo::add
9 years ago
Tobias Reich 1dece87434 Fixed: Only import urls passend to the function, not existing photos from the temp folder
9 years ago
Tobias Reich f925e118c2 Generate identifier when creating the database, not on update
9 years ago
Tobias Reich e36fd87f5a Added skipDuplicates to default settings table
9 years ago
Tobias Reich feefa9c5a0 Updated version, updated deps and added skip duplicates #367
9 years ago
Tobias Reich ffba49cc49 Escape before sending user input
9 years ago
Tobias Reich 275e653b1a Generate identifier even when db entry exists #344
9 years ago
Tobias Reich ed3418058e Use identifier to prevent login of multiple instances of lychee #344
9 years ago
Tobias Reich aedd378f98 Added identifier #344
9 years ago
Tobias Reich 6b4f3546f9 Updated default tables and changed sorting var/entry to sortingPhotos #98
9 years ago
Tobias Reich 90ac81acf1 Added album sorting #98
9 years ago
Tobias Reich e64e29f81f Several album and photo handling changes
9 years ago
Tobias Reich 7e885425dc Allow an album and photo title length of 50 chars #332
9 years ago
Tobias Reich 41a7ec8cb0 Syntax error, unexpected '[' in php/modules/Album.php on line 691 #348
9 years ago
Tobias Reich e67eca81ae Code simplifications #340
9 years ago
Rouven Hurling 00b08fd22d Fix PHP & SQL errors in Album::merge, run gulp
9 years ago
Rouven Hurling c69fe33df3 add Album::merge via Multiselection ContextMenu
9 years ago
Tobias Reich 88ef1e49b7 Merge branch 'master' into release/v3.0.0
9 years ago
Tobias Reich 2821383243 Fixed incorrect var type from server
9 years ago
Tobias Reich 0945cddab4 Stop init from returning username
9 years ago
Tobias Reich 2167b04d34 Block import of invalid photo types and extensions
9 years ago
Tobias Reich 585bbb72ea Stop view.php from returning data of private photos
9 years ago
Tobias Reich 6303adc679 Fixed an error when photo not found
9 years ago
Tobias Reich 4177219f67 Added code documentation
9 years ago
Tobias Reich e89676d6ee Prevent download of deleted albums/photos, added code documentation, fixed error when logged out and opening a private photo
9 years ago
Tobias Reich 9278182b10 Updated copyright year
9 years ago
Tobias Reich c9f5d112d4 Use Album::prepareData in search
9 years ago
Tobias Reich ea149b68af Added Album::prepareData and improved thumbs response from API
9 years ago
Tobias Reich e8cc2e9192 Streamlined prepare process of photo data
9 years ago
Tobias Reich d01e894220 Simplified response of session init
9 years ago
Tobias Reich cfe99df0da Adjusted indention
9 years ago
Tobias Reich 87537eba2d Feature: Edit sharing properties of album
9 years ago
Tobias Reich 4d16696c52 Don't show thumbs of protected albums when logged out
9 years ago
Tobias Reich 1490dcbe9e Removed md5 from search, renamed code var to hash
9 years ago
Tobias Reich b226f879b0 Streamlines type of password
9 years ago
Tobias Reich 67dce773e6 Updated Album::getAll
9 years ago
Tobias Reich 083e0962e2 Merge branch 'master' into v3.0.0
9 years ago
Michael Procter 6d25151c78 Add comment as to why conventional plugin triggers not used.
9 years ago
Michael Procter 6bb1859faf Remove 'unlink' - potentially confusing.
9 years ago
Michael Procter e17cfe79a3 Remove imported photos as promised by warning screen
9 years ago
Michael Procter b34374fcdb Add plugin trigger for before and after server import
9 years ago
Tobias Reich 810338f13a Syntax adjustments
10 years ago
Tobias Reich cca2b09d08 Fixed incorrect version in comment
10 years ago
Tobias Reich 3f4bfe253d Removed useless md5 hashing in front-end and added username hashing in back-end
10 years ago
Tobias Reich 0c97151f4f Added direct access protection to database updates
10 years ago
Tobias Reich 5678de1000 New naming for all API calls
10 years ago
Tobias Reich 6cd79ee169 New api object
10 years ago
Tobias Reich 0630554789 Updated copyright
10 years ago
Tobias Reich 8c4f4e925f Added additional Open Graph Metadata #299
10 years ago
Tobias Reich 5d5f86307e Removed redundant mysqli_real_escape_string #290
10 years ago
Tobias Reich 2024ccaf39 Disallow import of the medium-folder
10 years ago
Tobias Reich 6b5e30c443 Removed unused code
10 years ago
Tobias Reich 0da75a6bca Adjusted indention
10 years ago
Tobias Reich 967c66b40a Auto login after installation
10 years ago
Tobias Reich 8a17fa9709 Adjusted indention
10 years ago
Tobias Reich 7a3695e192 Fixed creation of test db #295
10 years ago
Tobias Reich 38a8e9840b Prevent warning of set_charset #291
10 years ago
Tobias Reich b8caf48d7d $medium should be a tinyint like defined in the database structure
10 years ago
Tobias Reich 9d12f2ce54 Better focal length calculation #278
10 years ago
Tobias Reich c349b9fe09 Fixed incorrect focal length #277
10 years ago
Tobias Reich 39084c5a5a Improved handling of permission errors with the medium-folder
10 years ago
Tobias Reich 1a463bc04b Use medium photo as open graph image when available #69
10 years ago
Tobias Reich aad919c96f Fixed version in check-plugin
10 years ago
Tobias Reich b6123c8257 Add medium folder when missing #67
10 years ago
Tobias Reich 9bdb9174fd Better permission errors #258
10 years ago
Tobias Reich f6875fc9cc Added comments to clarify the function #258
10 years ago
Tobias Reich 3f2a73181a Added is_readable to permission check #258
10 years ago
Tobias Reich ba42169397 From " to '
10 years ago
Tobias Reich 348af5ca3d Updated permission check #260
10 years ago
Tobias Reich 1acb3c2cc6 Comment cleanup
10 years ago
Tobias Reich 09553f2262 Comment cleanup
10 years ago
Tobias Reich 9698629c31 Improved thumb creation and fixed wrong sizes after EXIF rotation
10 years ago
Tobias Reich 9e42e74b3a ntermediate sized images for small screen devices #67
10 years ago
Tobias Reich b458ff2a85 Fixed wrong version in database update error
10 years ago
Tobias Reich 7387187c5c WIP Intermediate sized images for small screen devices #67
10 years ago
Tobias Reich fc4aebae98 Check filename before including for security reasons
10 years ago
Tobias Reich 47c60a4943 Fixed wrong modified date of the photo files
10 years ago
Tobias Reich a00928f9de Merge branch 'master' into v2.6.3
10 years ago
Powen Tan c17cb25960 Fix the issue that search function will return all photos
10 years ago
Tobias Reich 5b865de5a6 Updated version
10 years ago
Tobias Reich 582a8a3f93 Small code adjustments #232
10 years ago
Roman 4ce4048584 Minor tweaks and corrections based on Tobias's comments
10 years ago
Roman 7026ea8603 Merged with the latest pull from the origin
10 years ago
Roman fa8cad02bb Changed spaces to tabs for indentation
10 years ago
Roman f886793742 Added proper unicode support for values read from mysql
10 years ago
Roman e9544e8f8f * Improved performance by caching:
10 years ago
Tobias Reich 85c18290e6 Fixed a bug with Database::prepare and ? in user input (#38 #214 #196)
10 years ago
Tobias Reich b0a4089dc0 Fixed photo download
10 years ago
Tobias Reich b1607a0ed3 Fixed a notice error for old Lychee users
10 years ago
Tobias Reich e20ba354da Database::setVersion to update the database version
10 years ago
Tobias Reich 5d9e41d2ae Escape photo download title
10 years ago
Tobias Reich 4a0750e34f Merge branch 'v2.6.2' of https://github.com/electerious/Lychee into v2.6.2
10 years ago
Tobias Reich bcdc75b5dc Fixed _ table prefix when no table prefix set (#196)
10 years ago
cternes 13dea68c88 Replaced new array syntax with old one to support older php versions
10 years ago
Tobias Reich 0296b313ee Added option to disable imagick (#211)
10 years ago
Tobias Reich a5722a79c6 Converted database updates to prepared statements (#38 #214 #196)
10 years ago
Tobias Reich 9f11875e39 Create tables with prefix (#38 #214 #196)
10 years ago
Tobias Reich af37f5c138 Define prefix after config-file has been loaded (#38 #214 #196)
10 years ago
Tobias Reich bef84572fb Converted Settings to prepared statements (#38 #214 #196)
10 years ago
Tobias Reich e92635b44b Converted Log to prepared statements (#38 #214 #196)
10 years ago
Tobias Reich 1be2789023 Converted misc to prepared statements (#38 #214 #196)
10 years ago
Tobias Reich 606334fb62 Converted Photo.php to prepared statements (#38 #214 #196)
10 years ago
Tobias Reich 8b76fadf6d Escape data before writing to config.php (#38)
10 years ago
Tobias Reich 32af951c77 Added table prefix to create dialog (#214 #196)
10 years ago
Tobias Reich 52b530f85e Unified statements
10 years ago
Tobias Reich 01d367beb9 Prepare statments (#38 #214 #196)
10 years ago
Tobias Reich 75e63a9e3a Added database prepare (#38 #214 #196)
10 years ago
Tobias Reich 4697698b03 Define tables global (#214 #196)
10 years ago
Tobias Reich fb4e1dc73c Code adjustments
10 years ago
Tobias Reich cd7196ef4a Improved diagnostics
10 years ago
Tobias Reich 8b4ef96146 Added update for database for version 2.6.2
10 years ago
Tobias Reich 864e5b97d0 Changed some function to public
10 years ago