Commit Graph

201 Commits

Author SHA1 Message Date
Bharat Mediratta
3e1743b21f Add a module variable containing extra paths to search for binaries.
Fixes ticket #1384.
2010-09-16 20:43:48 -07:00
Bharat Mediratta
5e316f78c6 Restrict viewing user profile pages to registered users only, but
provide a "show_user_profiles_to" setting to allow admins to open it
up to everybody (choices there are "registered_users", "admin_users"
or "everybody").  Fixes ticket #1378.
2010-09-16 15:17:00 -07:00
Bharat Mediratta
4a94182971 Stop trying to implode a string. Fixes ticket #1337. 2010-09-06 11:37:36 -07:00
Bharat Mediratta
23b566e592 One more adjustment for ticket #1216. The packaging process forces
the default email address for admin to be unknown@unknown.com and when
that happens the gallery_event::user_updated() event listener fires
and sets the default values.  This is hard to work around, so let's
just roll with it and use unknown@unknown.com as our default placeholder.

So now, if an admin sets their email address and the current values
are unknown@unknown.com we adopt the admin's email address for the
site's mail_from/reply_to fields.
2010-09-01 23:52:19 -07:00
Bharat Mediratta
78c590ebae Don't use HTTP_HOST to get the hostname. We force that to
"example.com" when we are using the CLI so we'll get inconsistent
behavior between CLI and the web interface.

For now hardcode it to be example.com so that it's clear.  But to do
it right we need an after_install step which actually fixes it up.
And probably an after_upgrade step as well.
2010-08-31 21:07:43 -07:00
Tim Almdal
35e5d51e28 Update the install sql to correspond to the change to fix ticket #1216 2010-08-31 20:59:19 -07:00
Bharat Mediratta
4c8445852d Bump gallery module to v36 and add a favicon_url variable, which we
expose in Admin > Appearance > Theme Options and defaults to
lib/images/favicon.ico.

Thix fixes ticket #1312.
2010-08-29 16:27:32 -07:00
Bharat Mediratta
a08cd0db4e Add a "visible_title_length" variable that defaults to 15 and use that
as the max title length when we do title truncation in the wind theme.
Bump the gallery module to 35.
2010-08-28 21:58:28 -07:00
Bharat Mediratta
922b810c56 Oops, forgot to create an install() function and set the version of
the organize module to 2 in 8fb56abf03
2010-08-28 21:25:09 -07:00
Bharat Mediratta
da9e03003a Style and text cleanups to tighten up the page and make it a little
easier to understand.
2010-08-22 21:21:26 -07:00
Bharat Mediratta
50e3230d79 Add a key on access_caches.item_id. Without this, the Fix task query
to find missing access_caches is very slow.  Bump Gallery module to v34.
2010-08-14 15:10:07 -07:00
Bharat Mediratta
b6a377bc82 Update install.sql for gallery module version 3. This was left out of
779d91cca0 but it doesn't cause any real
damage, it just means that anybody who got the code in the intervening
window and did an initial install required an upgrade as well.
2010-08-14 15:08:38 -07:00
Bharat Mediratta
d3a161ca1b Add a "weight" column to the module table. This allows us to specify
module ordering, which is currently being done in the moduleorder
contrib module.

By default, the weight will be the same as the id of the row which
means that new modules will get added at the end of the list.  This is
covered in the upgrade case as well.

The one gotcha is that we need to make sure that we don't try to sort
by the weight column if the gallery module version is < 32, which is
something we haven't done before.
2010-08-06 10:41:38 -07:00
Bharat Mediratta
9b1e3eb177 Updated for gallery module v31. 2010-08-01 21:08:03 -07:00
Tim Almdal
ba19c03aeb Update the installer/install.sql properly. 2010-06-18 16:52:05 -07:00
Tim Almdal
84c8d1c79a Fix ticket #1155. For compatibility with gallery2 increase the size of the tag name field from 64 bytes to 128 bytes. 2010-06-18 06:51:02 -07:00
Bharat Mediratta
ae6af2f9b6 Install the rest module by default. 2010-06-15 16:01:41 -07:00
Bharat Mediratta
b02ab4153d New dump generated by new mysqladmin has a slightly different format:
mysqladmin  Ver 8.42 Distrib 5.1.47, for debian-linux-gnu on i486

Also, updated for comment module v2.
2010-06-15 15:56:45 -07:00
Bharat Mediratta
c31e9f1188 Add a check for short_open_tag 2010-06-06 19:06:24 -07:00
Bharat Mediratta
a63b0e8e8b Whitespace fixes 2010-06-06 19:04:15 -07:00
Bharat Mediratta
c3c2b45280 Update the copyright to 2010. It's only 3 months into the year :-) 2010-03-03 10:15:34 -08:00
Tim Almdal
7d2885fe94 Revert "Password value on installer must be hidden"
This reverts commit b4922f4d17.
2010-02-26 09:59:49 -08:00
fpaterno
b4922f4d17 Password value on installer must be hidden 2010-02-26 22:19:18 +08:00
Andy Staudacher
6ce0132842 Fix for ticket #1027: Add index on cache key column.
(and fix the packager to truncate the cache table before packaging)
2010-02-22 00:30:54 -08:00
Andy Staudacher
667d65aea4 Fix for ticket 901: Wrap Gallery version string into bdo tag to override the BiDi algorithm. Also, properly marking the "Powere by" string for translation.
See: http://www.w3.org/International/tutorials/bidi-xhtml/#Slide0420
2010-02-14 18:33:38 -08:00
Andy Staudacher
824087416a Avoid PHP warnings when the DB host string has no port. 2010-02-14 17:07:31 -08:00
Andy Staudacher
1b60078bf7 Refresh installer code 2010-02-09 07:58:56 -08:00
Andy Staudacher
370e0e2f32 Fix installer code for version 27, and introduce new module variable in version 28 as a preparation for admin area compartmentalization. 2010-02-07 15:02:41 -08:00
Bharat Mediratta
cb92e58d40 Update install.sql -- gallery version jumps from 23 to 25 due to a mistake
in the version 24 upgrade code.

Update packager to serialize files so that we can serialize the new
.htaccess files

Update init_var.php to include the newly serialized .htaccess files.

Fixes ticket #587.
2010-01-30 21:16:47 -08:00
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