Commit Graph
256 Commits
Author SHA1 Message Date
bwdutton e90a1d136e add support for docker/automated installs 2020-02-24 20:54:04 -08:00
Bradley W. Dutton 680de0c6d0 fix implode() so the separater is always the first argument 2020-02-01 20:53:43 -08:00
bwdutton 99aa6b0468 disable the slideshow module as cooliris is old and broken, and this old code is breaking regular logins when enabled 2020-02-01 11:10:29 -08:00
Bradley W. Dutton d0c250f916 call fetch_object on the result, not the db handle 2018-05-02 12:06:27 -07:00
bwdutton 41e3c56115 a better mysqli fix for the installer 2018-02-26 10:04:09 -08:00
Bradley W. Dutton 00c0539047 make installer work with mysqli not just mysql
get rid of undefined warning
2017-06-08 11:55:54 -07:00
shadlaws ed20798b99 #2057 - Revise item name and slug validation - backslashes, refactor, error messages.
- disallowed backslashes in item validation.
- refactored the validation logic in the item model a bit.
- added no_backslash error messages in edit album/photo/movie forms.
- fixed error messages in add album forum (some missing, some text different from edit)
- added unit tests
- updated to v58 to correct any existing backslashes in item names
2013-03-12 12:14:34 +01:00
shadlaws 891a24151e #2021 - Cleanup thumb_dirty and resize_dirty instances.
- g2_import: changed "false" assignment to "0" assignment for consistency.
- admin_theme_options: removed unused variables (they're called/used nowhere else).
- graphics: removed stanza that clears thumb_dirty and resize_dirty and returns
if we have no ops.  This has no effect on Gallery currently (for one,
graphics::generate doesn't normally get called on an item with no dirty flags),
but can inconsistently set resize_dirty of albums and movies to 0 where it's
otherwise left at 1.  Going forward, it may be useful to be consistent here.
- gallery_installer: added v57 stanza to correct any resize_dirty flags of
movies/albums that were previously reset to 0.
- module.info, install.sql: update to v57
2013-02-27 07:11:52 +01:00
shadlaws d012cddf78 #2020 - Add CLI install argument to set admin password.
This isn't too useful for end users, but would be really useful for developers
that install Gallery3 over and over again...
2013-02-26 13:36:31 +01:00
shadlaws b0180288e0 #1749, 1754, 1901 - revert two recent commits that check for Zend Guard obfuscation level support.
This is not the root of the problem for all installs, and can trigger false positives
that break previously-working installs... we'll have to find a better way.
2013-02-16 08:23:36 +01:00
shadlaws 0a10f3719a Follow-on to b01897af8d - add debugging message if Zend Guard code obfuscation is enabled to installer, too. 2013-02-12 22:21:50 +01:00
shadlaws 0a2670a19a #1988 - Add movie_allow_uploads option ("always", "never", or "autodetect").
- gallery_installer, module.info, install.sql - add movie_allow_uploads variable
- movie::allow_uploads (new) - return true if movie_allow_uploads is "always" or "autodetect" and FFmpeg found, false otherwise
- legal_file - use movie::allow_uploads instead of movie::find_ffmpeg
- Form_Uploadify - use movie::allow_uploads instead of movie::find_ffmpeg
2013-02-12 00:30:30 +01:00
Bharat Mediratta e957c97c94 Add a key on relative_path_cache in the items table to improve performance on installs
that use File_Proxy heavily.  Fixes #1920.
2013-01-27 15:35:42 -05:00
shadlaws cc2aed656c #1946, 1947 - Make altered names/slugs more user-friendly, make conflict-finding code check filenames with no extensions
- Reduced from four places that alter names/slugs to two (one to populate empty slugs, one to handle conflicting names/slugs).
- For empty slugs, fill with generic human-readable name (e.g. "photo") instead of random value.
- For conflicting names/slugs, add suffix that's sequential (e.g. "-01"), only using random after 99 conflicts.
- Made conflict-finding code check filenames with no extensions.
- Renamed _randomize_name_or_slug_on_conflict to _check_and_fix_conflicts.
- Added unit tests.  Also cleaned up existing unit tests to reflect new logic and removed a redundant test.
- Added installer logic to correct existing items now considered in conflict.
- Revised gallery_task to look for duplicate names based on new criteria.
2013-01-26 08:38:31 +01:00
Bharat Mediratta 7548266edf Properly escape backslashes. Fixes #1962. 2013-01-25 14:17:52 -05:00
Bharat Mediratta 49f6ce2d94 gallery.menalto.com -> galleryproject.org
codex.gallery2.org -> codex.galleryproject.org

Fixes #1957.
2013-01-22 18:39:24 -05:00
Bharat Mediratta d45a737779 Update copyright to 2013. Fixes #1953. 2013-01-21 01:22:01 -05:00
shadlaws ce68177ba0 [#1928 - Make thumbnail generation more flexible for movies (graphics and movie helpers)]
- graphics helper: add movie_extract_frame event to generate function
(allows modules to add to the options sent to movie::extract_frame or to
generate the thumbnail on their own without movie::extract_frame)
- movie helper: add extra optional argument to movie::extract_frame
(can add ffmpeg arguments and/or change the frame extract time)
- gallery_installer: add movie_extract_time module variable, update to v53
- module.info: update to v53
- install.sql: update to v53
2012-12-18 15:58:13 +01:00
shadlaws 94b26e506c [#1924, #1925, #1927 - enhance compatibility with movies (movie helper) and file types (legal_file helper)]
bug fix: modify movie.php helper to take DAR (display aspect ratio) into account in get_file_metadata
bug fix / enhancement: add duration to get_file_metadata output
bug fix: modify movie.php helper to use correct resolution and duration from get_file_metadata in extract_frame
bug fix: modify movie.php helper to be more robust against ffmpeg failures and limitations, including adding "-threads 1" argument if needed
enhancement: modified to include ordered maps of extensions to MIME types (get_photo_types_by_extension and get_movie_types_by_extension functions), modified get_file_metadata in movie and photo helpers to use them
gallery_installer, module.info, install.sql: updated to v52 with m4v mime correction code (was video/mp4)
2012-12-16 18:11:01 +01:00
chalbertgit b507681427 [#1907] Added administrative variable to set lock timeout. 2012-11-13 11:51:03 -05:00
Bharat Mediratta b7e89613fc Installer for comment module version 6 still set rss_visible to "both"
not "all".  Fix that now and rebuild the installer package.  Fixes #1917.
2012-10-08 14:04:40 -07:00
Bharat Mediratta 467a032f8e Rename any files that have two dots in them to a legal name. This
fixes the bug where we made those files invalid in 3.0.4 without
providing a clean upgrade path.  Bump gallery module to 50. Fixes
2012-07-21 15:11:27 -07:00
Bharat Mediratta 6104e924aa Clean up the path location. Fixes #1880. 2012-06-05 16:09:29 -07:00
Bharat Mediratta 3caf3cc323 Harden installer against bad characters in the database name or prefix. Fixes #1866. 2012-05-15 10:54:51 -07:00
Bharat Mediratta 5400c4be26 Oops, fix up a bug originally added in
7d66ab2e94 when I tweaked the name of
the rss_available variable to be rss_visible, but got it wrong.  Bump
the comment module to 6 so that we run the installer and clean up old
vars.

Fixes #1854.
2012-05-07 13:45:13 -07:00
Bharat Mediratta 02de0bdc28 Update the installer bundle for the comment module. Fixes #1852. 2012-05-06 10:03:56 -07:00
Bharat Mediratta bf2bb3e1ea Update copyright to 2012. #1822 2012-02-27 09:48:23 -08:00
Tim Almdal d5a31ceede Fix for ticket 1275. Do the same checking as Kohana uses and don't worry about calling the utf8_encode routine.
Corrected the error messages and also added a check to insure the XML Parser extension is loaded as we still need the utf8_encode function from it.
2011-05-05 21:53:11 -07:00
Bharat Mediratta 4d38c505cb Further cleanup for minimum_password_length -- update
user_installer::initialize() with the right module version number for
the user module and fix the misspelling there then rebuild the
installer.sql.  #1694.
2011-04-23 12:55:30 -07:00
Bharat Mediratta 59d5ddc8ab Set the default value for gallery.timezone to null so that each install uses
date_default_timezone_get() in modules/gallery/config/locale.php but it's
still overrideable in Admin > Settings > Advanced.  Follow on fix for #1637.
2011-04-23 12:48:04 -07:00
Tim Almdal 466f2a657e Fix ticket #1694. Correct Spelling of mininum_password_length to minimum_password_length 2011-04-23 12:16:06 -07:00
Bharat Mediratta c2a38087dc A few more fixes for #1637:
- Update gallery_installer::install() to set the version to 48 and
  set the timezone
- Rebuild installer.sql
2011-04-22 16:52:48 -07:00
Tim Almdal b07bc1af08 Allow the administrator to set the number of tags to display in the cloud via the advanced settings. Fixes ticket #1649. 2011-04-22 16:15:56 -07:00
Bharat Mediratta 05e031d403 Follow on fix for #1645 to update the installer.sql 2011-04-22 11:47:38 -07:00
Chad Kieffer 3bce5d00ee Renamed apple_touch_url to apple_touch_icon_url. 2011-04-22 12:50:21 -04:00
Chad Kieffer 4a9b45c9c3 Created apple-touch-icon and added to wind and admin_wind themes. 2011-04-22 12:37:28 -04:00
Bharat Mediratta c12c43a415 A little more work on kandsten's fix for IPv6 support in
10785b1e82:

- some style cleanup
- bump the module version in module.info
- rebuild the installer.sql
2011-03-27 11:38:37 -07:00
Bharat Mediratta 423daa52d5 Update copyright to 2011. 2011-01-21 23:01:06 -08:00
Bharat Mediratta f657a05d7e Get rid of the "organize needs rest" message when upgrading to the
new organize; it may be hanging around from a prior version.  Reinstate
the installer for this.  Bump organize module to v4.  Follow-on for #1584.
2011-01-18 10:08:38 -08:00
Bharat Mediratta df703fbd5c Update installer for #1612 and #1605. 2011-01-17 20:06:54 -08:00
Joe7andBharat Mediratta 0020f87d6a Fixed paging for albums ordered by random.
MySql has problems when comparing float values against -seemingly same- float input, see http://dev.mysql.com/doc/refman/5.0/en/problems-with-float.html for details.
Fixes #1610
2011-01-16 16:58:58 -08:00
Bharat Mediratta 7d07190af1 Turn off session.use_trans_sid -- that feature attempts to inject session ids
into generated URLs and forms, but it doesn't interoperate will with Gallery's
Ajax code.
2011-01-08 16:58:40 -08:00
Bharat Mediratta e1e1e860cd Use the code version when installing a module that has no installer,
instead of hardcoding version 1.  Fixes #1589.
2011-01-08 16:51:25 -08:00
Bharat Mediratta 4fc5d50eb8 Bump the organize module to version 3 and get rid of the code that
makes sure that it depends on the REST module.
2011-01-08 12:59:12 -08:00
Bharat Mediratta d17ba036ee Don't enable the REST module by default (fixes #1585).
Bump the info module per changes for #662.
2011-01-07 20:44:45 -08:00
Bharat Mediratta d74aad072d Some small follow on fixes for #1559 and #1568:
1) Make database changes in gallery_installer::install() instead of
   in installer/install.ql
2) Bump the version number in modules/gallery/module.info
2011-01-03 12:25:51 -08:00
Bharat Mediratta 8263cb023f Updated installer for the bump of the gallery module to v43. Fixes #1568. 2011-01-03 11:14:58 -08:00
Joe7andBharat Mediratta 70ac063c55 case fix 2011-01-03 11:08:28 -08:00
Joe7andBharat Mediratta b26eff7f23 Bugfix: input validation validates description up to length of 65535 chars, but DB trimmed data over 2048 chars. Converting column into TEXT type.
Note: The effective maximum length of a VARCHAR in MySQL 5.0.3 and later is subject to the maximum row size (65,535 bytes, which is shared among all columns) and the character set used.
In contrast to CHAR, VARCHAR values are stored as a one-byte or two-byte length prefix plus data. The length prefix indicates the number of bytes in the value. A column uses one length byte if values require no more than 255 bytes, two length bytes if values may require more than 255 bytes.
2011-01-03 11:08:21 -08:00
Bharat Mediratta affbc28876 Update gallery module to v42 to reflect key changes in the cache
table in 440597356d for #1559.
2010-12-31 22:29:00 -08:00