Commit Graph
1272 Commits
Author SHA1 Message Date
Bharat Mediratta 0448a5b32c Flush the access_intent cache after ALTER TABLE queries, fixes a
problem where the install.sql had the wrong view permissions.
2009-01-19 06:02:53 +00:00
Bharat Mediratta d97308ffe7 Put the <a> element inside the internationalized text. 2009-01-19 05:24:47 +00:00
Bharat Mediratta 0f8685fc9f Use mysqli_init() instead of mysqli() as our detector. 2009-01-19 05:21:37 +00:00
Bharat Mediratta 2126ac7002 Remove -m flag. 2009-01-19 05:18:43 +00:00
Bharat Mediratta c136a2e84a Packager now does a clean reinstall of just the packages we want, then
rebuilds the install.sql and init_var.php files accordingly.
2009-01-19 05:16:55 +00:00
Bharat Mediratta 5f1165698b Change ORM and the MySql driver to clear static caches using
clear_cache().

This supercedes the TEST_MODE checks.

Upstream ticket: http://dev.kohanaphp.com/ticket/1062
2009-01-19 05:12:28 +00:00
Bharat Mediratta 46d010e89d Simplification pass over the installer:
- Flattened the directory structure
- Greatly simplified structure in installer; it now only reports environmental
  checks that fail.  Simplified code that prints exceptions.  Use only mysql
  calls for the installer, but select mysqli automatically if it's available.
  Drop the response file; that's easily replicated with flag support
- Create a random password for the admin user
- Delete unused controllers
- Invert the form of the database config template to be mostly non-PHP
  with just a few PHP calls
2009-01-19 03:31:13 +00:00
Bharat Mediratta ad71e4263e Replace exec("mysql") call with directy mysql() calls. 2009-01-19 00:16:52 +00:00
Bharat Mediratta 631a7883ee Get rid of the driver libaries. Use mysql calls directly in the
installer for now.  If we detect mysqli, we can always use that as a
driver instead, but we don't require it for the installer.
2009-01-19 00:14:28 +00:00
Bharat Mediratta becc212209 Move installer.php out of helpers and get rid of helpers. 2009-01-18 23:59:19 +00:00
Bharat Mediratta 248ce3ebce Remove access rights check; fix a bug in determining the path to var/database.php 2009-01-18 23:55:35 +00:00
Bharat Mediratta 1cc7b3f4be Don't force validation anymore; we're clearing the form properly in
the controller on successful add.
2009-01-18 23:27:26 +00:00
Bharat Mediratta b39be71a4e We don't need to reset the form anymore, since it's reset on the server side. 2009-01-18 23:26:53 +00:00
Bharat Mediratta f0eb8cb641 Reset the form before sending it back on success so that we clear the values. 2009-01-18 23:25:42 +00:00
Tim Almdal 9275742ef9 Change the event handlers for maintaining the search index to update
the index when items change.
2009-01-18 23:23:12 +00:00
Tim Almdal 72e7d50176 Remove the install.php file and move its contents into
installer::command_line method. Create an index.php that is can be
used to install Gallery3 from the web or command line.  At this point
all that works is the command line installer and if the web installer
tries to run, it is redirected to the album main page.
2009-01-18 18:13:54 +00:00
Tim Almdal dd5be1ece0 Remove blank line at the top of the file 2009-01-18 16:55:55 +00:00
Bharat Mediratta 883db822f1 Update the index right away if there are only < 10 items 2009-01-18 09:08:51 +00:00
Bharat Mediratta 8ec0e8471f Drag and drop in the admin dashboard now saves the location.
* Make block_adder a real block
* Suppress the "close" link on block_adder
* Move the drag/drop JS into the core code out of the admin theme
2009-01-18 09:06:46 +00:00
Tim Almdal 9380e306f4 Add a new line charater to the error message when the installer is
being run a 2nd time after the a successful installation.
2009-01-18 08:10:58 +00:00
Tim Almdal f0e3a220d9 Remove the packaging tab from the scaffolding and move the create
install.sql to the action tab
2009-01-18 08:06:06 +00:00
Tim Almdal 4bb0c93bf9 Changes to the installer code to use init_var.php and install.sql files 2009-01-18 07:38:10 +00:00
Tim Almdal 119cf7e148 Correct the mkdir for the sub directories in var 2009-01-18 07:30:22 +00:00
Tim Almdal 4c13987e92 Change the database unload to unload all the tables instead of fooling
around with individual tables.
2009-01-18 07:18:41 +00:00
Bharat Mediratta 7b68ca9946 Refactor dashboard -> block_manager since it'll manage blocks site
wide, not just in the dashboard.
2009-01-18 06:55:04 +00:00
Bharat Mediratta 3d1ea2904d Rename theme callback helpers from xxx_block to xxx_theme to make room
for us to rename the dashboard helper to be a block helper since
sidebar blocks are not just in the dashboard.
2009-01-18 05:01:00 +00:00
Tim Almdal 245cb11c58 Clean up the var directory creation script 2009-01-18 03:12:00 +00:00
Tim Almdal b60e790e90 Here's the rest of the change, new tool and forgot to add some files :-) 2009-01-18 01:06:17 +00:00
Tim Almdal 465735a25c 2009-01-18 01:05:18 +00:00
Tim Almdal f47fa55891 Change the scaffolding to generate 2 files init_var.php which will
initialize the var directory and the install.sql.  Still more code
than bharat would like, but the end result should be where we want to go.
2009-01-18 01:03:53 +00:00
Tim Almdal d0f307cbcd The Packager now copies all the directories properly, ignoring all the
.svn directories.  In addition the internal directory structure is
consistent with a Gallery3 install with out any source system names.
2009-01-17 17:36:21 +00:00
Tim Almdal 2b23f0a9e2 We can now build ar tar.gz file with the gallery installation. Still
to be done is the get the internal paths right and get rid of the .svn
that are still being included... its a wee bit large @ 35mb.  Also
need to write the code to unpack and do the actual install
2009-01-17 08:05:51 +00:00
Tim Almdal 91a61dcc6d Generate a single sql install file. 2009-01-17 06:17:12 +00:00
Tim Almdal f8d95f28cf Change the scaffolding packaging to set auot-render to false so the
entire screen is not returned
2009-01-17 06:00:47 +00:00
Bharat Mediratta 58402f6fbf Fix typo.. rebuild_index -> update_index 2009-01-17 05:27:15 +00:00
Bharat Mediratta ccff396fae Fix a silly bug in item_created() 2009-01-17 05:22:07 +00:00
Bharat Mediratta b13f7d7460 Fix indentation 2009-01-17 04:01:39 +00:00
Bharat Mediratta d568a1e9fd Implement relevance ranked boolean searching on a full text index of
item and comment data.  Whew!

It's not pretty yet.  And you have to manually update the index
currently in admin/maintenance.  But it works.
2009-01-17 00:52:50 +00:00
Bharat Mediratta 91be7a38f8 Clear the "akismet is not configured" message on uninstall. 2009-01-17 00:39:38 +00:00
Tim Almdal 71db2ca32a Add a scaffolding tab that allows packaging up the installation for installation. At the moment, it just creates an *.sql table for each defined table. I still need to zip this and put some install code around it so it is self installing. The ajax call will build the tables, but it doesn't return the resilt correctly. What it does is return my json response(expected) and the entire welcome.html page as well (unexpected) and i'm havinf trouble figuring out why. Something stupid i bet 2009-01-16 23:58:48 +00:00
Chad Kieffer a7b6409b74 Reverted jQuery back to 1.2.6, UI back to RC4. Need to test more thoroughly next time. Sorry. 2009-01-16 07:51:31 +00:00
Chad Kieffer 780682c04a Updated to jQuery UI 1.6rc5 (requires jQuery 1.3 now) 2009-01-16 07:39:42 +00:00
Chad Kieffer 2b0b21d76d Updated to jQuery 1.3. Change needs to be pushed to vendor branch. 2009-01-16 07:38:19 +00:00
Chad Kieffer ce70ab3785 Comment and code format fixes 2009-01-16 07:22:30 +00:00
Chad Kieffer e749e6cf3e Added drop target style, other minor admin dashboard style updates. 2009-01-16 06:45:25 +00:00
Bharat Mediratta 622da5f3cd Rename Task to Task_Definition to avoid confusion with Task_Model.
Order the finished tasks by update time in the task list.
2009-01-16 05:01:22 +00:00
Bharat Mediratta 72fa5736ff Rename Change xxx_task::available() to xxx_task::available_tasks()
Fix a bug in admin_maintenance.html.php where we were only showing the first task
2009-01-16 04:49:56 +00:00
Bharat Mediratta b2e37f20c7 Move graphics::rebuild_dirty_images to core_task::rebuild_dirty_images 2009-01-16 04:35:35 +00:00
Bharat Mediratta 2352dd162a Break task definitions out into the <module>_task helper and create a
Task library class as a data structure to hold task definitions.
2009-01-16 04:31:41 +00:00
Bharat Mediratta 2920640c2b Fix validation when adding new comments.
Fire off the appropriate item_related_update events as appropriate.
2009-01-16 04:06:03 +00:00