Commit Graph

1536 Commits

Author SHA1 Message Date
Nils Asmussen
21b2f587d5 Detect accesses to admin functions by guests.
This commit detects accesses to admin functions when the user is a guest
and returns a corresponding error. This is now used to redirect the user
to the start page instead of "non-existing function". It has the
advantage that a bug in Lychee, that causes a non-existing function
to be called, can be spotted easier.
2016-08-20 11:50:24 +02:00
Nils Asmussen
0f1de0738c Redirect to start page if we were logged out.
Previously, Lychee simply stopped working if, e.g., our cookie
expired without letting the user know what went wrong. Now, the user
gets redirected to the start page instead.

This happens if:
1) viewing a private album/photo is denied in private mode
2) the requested function on the served doesn't exist

The second case can also happen due to a bug in Lychee, though.
2016-08-20 11:50:24 +02:00
Tobias Reich
6a1d38d0e9 Rebuild 2016-08-09 09:53:29 +02:00
Tobias Reich
d458feb55d Updated deps 2016-08-09 09:53:24 +02:00
Tobias Reich
0188cbba38 Merge branch 'hrniels-fullscreen' into develop 2016-08-09 09:42:34 +02:00
Tobias Reich
c7c0ff4fb2 Merge pull request #590 from hrniels/diagnostics-imagick
Added warning if Imagick is not installed/enabled.
2016-08-07 13:33:00 +02:00
Nils Asmussen
9b71bae4a1 Added warning if Imagick is not installed/enabled.
If GD is used instead of Imagick, rotating uploaded pictures leads to
a loss of their metadata. Since this is unexpected and maybe a problem,
the diagnostics should show a warning.

This commit displays a warning if it's either not installed or not
enabled in settings.
2016-08-06 16:00:48 +02:00
Nils Asmussen
8181bd6ce6 Removed duplicated timeout for header.
Because of that, the timeout for going into fullscreen mode
has been changed from 500ms to 1s.
2016-08-06 15:19:55 +02:00
Tobias Reich
808d7afb89 Merge branch 'hrniels-diagnostics' into develop 2016-08-06 14:24:50 +02:00
Nils Asmussen
a1879c2a21 diagnostics: don't assume that gd_info exists (fixes #565). 2016-08-04 23:07:06 +02:00
Nils Asmussen
e41b0f81bd Improved fullscreen enter/leave in photo view.
Previously, document.mouse{enter,leave} was used for that. This
has the disadvantage that is doesn't work when the browser is
in fullscreen mode (at least, in Chromium), because the mouse
can no longer leave the document.

With this commit, mousemove is used to switch to fullscreen
in the photo view after the user has not moved the mouse for
some time. It is left again, if the user moves the mouse.
2016-08-01 14:20:21 +02:00
Tobias Reich
cfad36d798 Added "session" to required extensions #579 2016-07-27 20:31:33 +02:00
Tobias Reich
b1408ca5e6 Rebuild 2016-07-02 14:54:32 +02:00
Tobias Reich
1b8dd24fe1 Prefetch the medium photo instead of the big one #446 2016-07-02 14:53:25 +02:00
Tobias Reich
94c43db85b Rebuild 2016-06-25 12:30:24 +02:00
Tobias Reich
06a7374098 Updated deps 2016-06-25 12:30:14 +02:00
Tobias Reich
475ae5748b Merge pull request #559 from electerious/develop
Lychee 3.1.2
2016-06-12 18:18:39 +02:00
Tobias Reich
8c279a5550 Rebuild 2016-06-12 18:16:51 +02:00
Tobias Reich
a50f2c997a Added release date to change log 2016-06-12 17:47:32 +02:00
Tobias Reich
659a570b2e Save database update version for 3.1.2 2016-06-12 17:44:33 +02:00
Tobias Reich
1adc2dec00 Fixed GD thumb quality using wrong variable 2016-06-12 17:06:25 +02:00
Tobias Reich
9cab1c1a85 Updated changelog with v3.1.2 2016-06-11 17:13:09 +02:00
Tobias Reich
a38a5ded4d Use bigint(14) for album if in photo table #533 2016-06-11 17:12:59 +02:00
Tobias Reich
5c4f3413b1 Updated default tables to reflect changes made in #533 2016-06-11 17:12:42 +02:00
Tobias Reich
2bcccc41fa Adjustment in Changelog 2016-06-11 17:12:08 +02:00
Tobias Reich
9bfa149d29 EXIF orientation rotation code adjustments #556 2016-06-11 15:55:05 +02:00
Tobias Reich
55628f1f56 Remove metadata from medium-photos and thumbs + Reduce quality of medium-photos #556 2016-06-11 15:54:41 +02:00
Tobias Reich
57acac71da Renamed thumb quality variable 2016-06-11 15:53:13 +02:00
Tobias Reich
c6cb750363 Removed comment that somehow destroyed the whole syntax highlighting in Atom 2016-06-05 15:53:00 +02:00
Tobias Reich
a9cfa87fd2 Improved orientation-handling with Imagick #556 2016-06-05 15:47:41 +02:00
Tobias Reich
70cd7f8a47 Protocol-relative URLs for open graph #546 2016-06-01 21:42:01 +02:00
Tobias Reich
2ce58d2821 Fixed error when executing update script multiple times #533 2016-05-02 20:44:41 +02:00
Tobias Reich
a5c47cf022 Use array() instead of shorthand as done in the other scripts 2016-05-02 20:04:41 +02:00
Tobias Reich
c52e93b7ac Small syntax adjustment to #533 2016-05-02 19:51:29 +02:00
Tobias Reich
895825ada0 Added #533 to the list of update scripts 2016-05-02 19:51:21 +02:00
Tobias Reich
5b6b64bce3 Updated version 2016-05-02 19:51:06 +02:00
Tobias Reich
29ae681d8d Merge pull request #533 from qligier/pr-sql1
Add indexes to SQL fields (and other changes)
2016-05-02 19:49:09 +02:00
Tobias Reich
75b11acab3 Merge pull request #534 from electerious/develop
Lychee 3.1.1
2016-04-30 15:33:36 +02:00
Tobias Reich
4dd2155326 Updated version to 3.1.1 2016-04-30 15:32:41 +02:00
Tobias Reich
8b6753a7e0 Rebuild 2016-04-30 15:30:53 +02:00
Tobias Reich
916ec66140 Fixed separator not showing up when logged in 2016-04-30 15:30:48 +02:00
Tobias Reich
8288672ec4 Fixed missing function in view.php 2016-04-30 15:30:16 +02:00
Tobias Reich
640b674081 Updated deps 2016-04-30 15:12:18 +02:00
Tobias Reich
97c4cb26b5 Updated changelog 2016-04-30 15:09:41 +02:00
Quentin Ligier
73a00aafaa SQL structure changes
See #531
2016-04-27 10:10:44 +02:00
Quentin Ligier
a27a4f96f0 Merge pull request #8 from electerious/develop
Develop
2016-04-27 09:07:18 +02:00
Tobias Reich
cd9ce7ec83 Updated outdated PHP version 2016-04-25 20:45:11 +02:00
Tobias Reich
d94960d996 Made connect_error a private function #530 2016-04-24 16:24:48 +02:00
Tobias Reich
3bf4790487 Merge pull request #530 from tribut/connect-error
Fix error 500 on database connect error
2016-04-24 16:22:24 +02:00
Felix Eckhofer
aa0209afef Fix error 500 on database connect error
If `$connection===false` it obviously has no properties.
2016-04-24 16:19:09 +02:00