This repository has been archived by the owner on May 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Setting for image overlay type * Create update file to insert `image_overlay_type` field in settings. * Write the data display type to the settings table when submitted by the user. * Include 24-hour timestamp in `photo.json` * Add setting for php_script_limit. Fixes #177 * Update English locale with new Setting button * Validate image overlay type default from Settings * Write image_overlay_type keys to lychee_settings table
- Loading branch information
Showing
13 changed files
with
327 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule Lychee-front
updated
14 files
+33 −11 | API.md | |
+43 −2 | gulpfile.js | |
+1 −1 | package.json | |
+29 −8 | scripts/build.js | |
+151 −0 | scripts/frame/main.js | |
+2 −0 | scripts/frame/stackblur.min.js | |
+3 −0 | scripts/init.js | |
+12 −6 | scripts/lychee.js | |
+7 −1 | scripts/lychee_locale.js | |
+53 −0 | scripts/photo.js | |
+38 −1 | scripts/settings.js | |
+32 −3 | scripts/view.js | |
+1 −0 | styles/_content.scss | |
+6 −2 | styles/_settings.scss |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
/** | ||
* Update to version 3.2.11 | ||
*/ | ||
|
||
use Lychee\Modules\Database; | ||
use Lychee\Modules\Response; | ||
|
||
// Add image_overlay_type to settings | ||
$query = Database::prepare($connection, "SELECT `key` FROM `?` WHERE `key` = 'image_overlay_type' LIMIT 1", array(LYCHEE_TABLE_SETTINGS)); | ||
$result = Database::execute($connection, $query, 'update_030211', __LINE__); | ||
|
||
if ($result===false) Response::error('Could not get current image_overlay_type from database!'); | ||
|
||
if ($result->num_rows===0) { | ||
|
||
$query = Database::prepare($connection, "INSERT INTO `?` (`key`, `value`) VALUES ('image_overlay_type', 'exif')", array(LYCHEE_TABLE_SETTINGS)); | ||
$result = Database::execute($connection, $query, 'update_030211', __LINE__); | ||
|
||
if ($result===false) Response::error('Could not add image_overlay_type to database!'); | ||
|
||
} | ||
|
||
// Add php_script_limit to settings | ||
$query = Database::prepare($connection, "SELECT `key` FROM `?` WHERE `key` = 'php_script_limit' LIMIT 1", array(LYCHEE_TABLE_SETTINGS)); | ||
$result = Database::execute($connection, $query, 'update_030211', __LINE__); | ||
|
||
if ($result===false) Response::error('Could not get current php_script_limit from database!'); | ||
|
||
if ($result->num_rows===0) { | ||
|
||
$query = Database::prepare($connection, "INSERT INTO `?` (`key`, `value`) VALUES ('php_script_limit', '0')", array(LYCHEE_TABLE_SETTINGS)); | ||
$result = Database::execute($connection, $query, 'update_030211', __LINE__); | ||
|
||
if ($result===false) Response::error('Could not add php_script_limit to database!'); | ||
} | ||
|
||
|
||
// Set version | ||
if (Database::setVersion($connection, 'update_030211')===false) Response::error('Could not update version of database!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.2.10 | ||
3.2.11 |