Commit Graph

172 Commits

Author SHA1 Message Date
Bharat Mediratta
c8a8097ef2 Gallery module version 23, with the failed_logins table. 2010-01-30 20:40:28 -08:00
Bharat Mediratta
45cdac973d Oops, somebody (me?) forgot to update the gallery module version
number in gallery_installer::install() so the install.sql was out of
sync.
2010-01-29 14:06:36 -08:00
Bharat Mediratta
b6322b1c9f Updated for model based validation. We must now provide a placeholder
email address for the admin user, since one is required for all users.
2010-01-28 21:31:54 -08:00
Tim Almdal
3ab6c4915a Fixes ticket #671.
In the graphics_rules table height and width set the maximum height and width
values and should be equal.  Initially, the height on the resize target rule was
less than the height, which artificially constrained images in portrait mode.

**Note"" this fix requires an upgrade to version 22.  All the resizes will be flagged
dirty.
2010-01-11 10:42:39 -08:00
Tim Almdal
7778d4c050 Provide an error message when the sql in installer::empty_db fails. Also change the show tables not to specify a database as it will use the database in the active connection. Fixes ticket #963. 2010-01-06 10:11:03 -08:00
Bharat Mediratta
df001700dd Don't enable the rest module by default yet; we should make sure that
we do a more thorough security audit on it first.
2010-01-01 12:17:04 -08:00
Tim Almdal
1d42d5533a Change the installer so that the rest module is automatically installed in new installations. 2010-01-01 09:55:06 -08:00
Bharat Mediratta
8cf0348e6c Make sure that we have the mbstring extension. 2009-12-29 11:36:52 -08:00
Bharat Mediratta
8b9a02084a Updates for the latest version of Kohana 2.4:
1) Controller::$input is gone -- use Input::instance() now
2) Handle new 'database.<default>.connection.params' parameter
3) Handle new 'cache.<default>.prefix' parameter
2009-12-21 21:27:43 -08:00
Bharat Mediratta
8fe7bb6cf6 Use NULL instead of actual values in the vars table, so that var
tweaks result in smaller diffs.
2009-12-05 21:20:30 -08:00
Bharat Mediratta
1f3567ec04 Update the gallery module to version 21 in the installer. 2009-12-05 21:08:10 -08:00
Tim Almdal
6fd1e2af1f Revert "Update the installer to reflect the new location of the theme related options."
This reverts commit 678e22996d.
2009-11-19 11:43:53 -08:00
Tim Almdal
678e22996d Update the installer to reflect the new location of the theme related options. 2009-11-18 15:37:51 -08:00
Tim Almdal
0fe32a61f6 Standardize the name of the blocks. 2009-11-13 13:56:05 -08:00
Tim Almdal
def88149cc Undo using the md5 hash of the module name and block_id, so duplicate blocks are no allowed again 2009-11-13 09:14:39 -08:00
Tim Almdal
393896a701 Initialize the database config with the port number if it is specified. Also set it up so the mysqli constructor will split it into host and port for the call to the mysqli constructor. Fixes ticket: #780 2009-11-12 14:42:37 -08:00
Tim Almdal
a5a8cfd1bc Re-generate the install.sql so that the keys of the block lists are an md5 hash of the module_name:block_id. Also change the packager so we delete the _cache variable for the module gallery not core. 2009-11-12 13:14:02 -08:00
Tim Almdal
79f700ef9f Change the keys of the block arrays in block manager to be a md5 hash of module_name:block_id. This allows easier lookup of blocks to remove when modules
are being deactivated. Change the module activation/deactivation to call (activate|deactivate)_blocks instead of just the sidebar blocks.  This insures
that when a module is deactivated any admin dashboard blocks are removed as well the site sideboard blocks. Fix for ticket #876.
2009-11-12 13:13:34 -08:00
Tim Almdal
599cfab3b3 Update the install.sql to reflect the current version number(16) and the refactoring of the user module into an idnetity provider 2009-10-26 10:05:54 -07:00
Chad Kieffer
3573544104 Poor man's merge. Note to self, git pull before working. Next pound the steps to merge into your head. 2009-10-23 05:41:50 -07:00
Tim Almdal
312811c783 Change the default install.sql such that the owner id of root album is the defined admin (id = 2) 2009-10-21 08:07:49 -07:00
Tim Almdal
c97a88599e Change gallery installer to do a direct update to the database, preppending gallery_graphics:: to each of the defined rules operations 2009-09-27 17:55:48 -07:00
Tim Almdal
467b74c310 This path requires the upgrader to be run and applies the following changes:
* moves the composite method back into core
* requires that the operation be fully qualified i.e. gallery_graphics::resize
* caches the graphics rules on each request
2009-09-27 15:24:51 -07:00
Bharat Mediratta
7432858420 Fix one more place in the installer where we referring to the old default
theme names.

Update installer.sql
2009-09-27 11:25:03 -07:00
Tim Almdal
86681eebf7 Move the check_environment into the installer helper and call it from the command line installer as well as the web installer. 2009-09-17 07:29:37 -07:00
Tim Almdal
9d76797b17 Changed the search module installer to explicitly specify MyISAM as the database type. Changed the packager to not remove the engine specification if the table is search_records. Fixes Ticket #774 2009-09-16 22:23:32 -07:00
Bharat Mediratta
3dd40bf97c Trim the input line to get rid of carriage returns on Windows. Fixes
ticket #740.  Thanks to jankoprowski!
2009-09-10 21:22:46 -07:00
Bharat Mediratta
b8053c9ddf Rename "after_installer" to "welcome_message" in the code to make it
clearer what its purpose is.  Add some spacing in the theme for it
so that it's less cramped.
2009-09-10 21:10:20 -07:00
Bharat Mediratta
2c9447bc1a Update to gallery module v12. 2009-09-08 09:59:27 -07:00
Bharat Mediratta
d26f9147a0 Updated for modules/gallery version 11. 2009-09-01 21:15:50 -07:00
Bharat Mediratta
064038a24f Escape backslashes (\) in the $salt in create_admin() as they will
interfere with our hand rolled UPDATE statement.  Big thanks to
paulepanter.
2009-09-01 21:13:03 -07:00
Bharat Mediratta
e648ea4dbd Escape single quotes in the password so that we don't break our config
syntax.  Related to (but unclear that it fixes) ticket #650.
2009-08-31 21:45:34 -07:00
Bharat Mediratta
b3cac5c173 Suppress errors to mysql_connect(). We had this before, but it
appears to have been accidentally removed in 177a854d
2009-08-31 21:26:14 -07:00
Bharat Mediratta
e4eedadcbb Add back mysql_fetch_object() call that I accidentally removed in my
rush to catch a plane.
2009-08-30 21:12:35 -07:00
Bharat Mediratta
31dcdcc6ad Remove unnecessary cleverness in stripping off the hyphen for mysql
version checks that was causing problems in the case where there's no
hyphen.  version_compare handles hypens fine.
2009-08-30 15:18:20 -07:00
Bharat Mediratta
fd954fe86e Print out the version of MySQL that we found along with our error
message, which should resolve http://gallery.menalto.com/node/90646
2009-08-30 13:43:29 -07:00
Tim Almdal
1ce8643b80 Fix for #440. Basically add a check that the mysql version is > 5.0.0.
It was felt that actually listing the requirements might be overwhelming
to novice users.
2009-08-28 15:17:07 -07:00
Bharat Mediratta
4828db003f Remove 'ENGINE=InnoDB' specification from tables that we create. Use
the system's default table specification.  Fixes ticket #597.
2009-08-27 15:47:54 -07:00
Bharat Mediratta
fb9efa664b Check for the SimpleXML module, thanks to geekonek.
Fixes ticket #599.
2009-08-04 20:20:43 -07:00
Bharat Mediratta
9d2420e789 Updated for gallery v10 2009-07-29 16:45:26 -07:00
Andy Staudacher
482e223b60 Updating install.sql with the packaging script, basically re-adding the charset (utf8) expressions that were removed by merging in rledisez's left/right -> left_ptr/right_ptr changes. 2009-07-26 23:58:46 -07:00
Romain LE DISEZ
23bb6eb7e3 Rename columns that use reserved SQL words : items.left and items.right 2009-07-25 19:06:54 +02:00
Bharat Mediratta
e3a1bb2c72 Updated version of installer sql:
- gallery_version is gone
- access related columns are now binary (Postgres)
- for some reason we've reverted back to the /*!40101*/ style settings
  in mysqldump.
2009-07-23 16:38:47 -07:00
Romain LE DISEZ
350c1b0267 Use BOOLEAN instead of integer to describe the permissions :
- DENY = false
 - ALLOW = true
 - UNKNOW = null  (for intent only)
 - INHERIT = null (for cache)

Upgrade is not included for now.
(cherry picked from commit 719c59e040)
2009-07-23 09:11:55 -07:00
Bharat Mediratta
39fa93eec7 Simpler solution for #545. Just don't show the form if the storage dir isn't set up yet 2009-07-15 21:06:42 -07:00
Bharat Mediratta
9b69dc8237 Revert "Fix for ticket #545."
This reverts commit d192f2f1bc.
2009-07-15 20:58:22 -07:00
Bharat Mediratta
3349525640 Revert "Fix for ticket #544."
This reverts commit f6973431b7.
2009-07-15 20:58:20 -07:00
Tim Almdal
f6973431b7 Fix for ticket #544.
* Separate the portion of get_db_info.html.php that displays the status
of the var directory into a separate view var_dir_status.html.php
* Change the processing to always generate the database information request
screen unless there is an environment error, the var directory is not writable
and the install was successful

Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
2009-07-15 21:56:15 +08:00
Tim Almdal
d192f2f1bc Fix for ticket #545.
Changed get_db_info.html.php to not display the database information
request form until the var directory is successfully tested as
writable.  This prevents users from thinking they can enter the
database information prior to successfully accessing the var
directory.

Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
2009-07-15 20:42:58 +08:00
Bharat Mediratta
6281ed03d5 Turn off extended inserts when creating install.sql so that it's
easier to see what's changed.
2009-07-11 05:36:31 -07:00