Bharat Mediratta
f5997a02e0
Incremental additions to the web installer. This is getting messy,
...
going to pause here and do some refactoring.
2009-01-19 19:05:22 +00:00
Bharat Mediratta
bb73a2d896
Replace mysql_create_db with a mysql_query() call as recommended by the PHP manual.
2009-01-19 18:16:25 +00:00
Bharat Mediratta
ebd811415a
Stub of the web based installer.
2009-01-19 09:19:07 +00:00
Bharat Mediratta
31d6f18d56
implement already_installed()
2009-01-19 08:59:50 +00:00
Bharat Mediratta
7b4502ac6b
setup_varpath() -> setup_var()
2009-01-19 08:51:26 +00:00
Bharat Mediratta
7f9a76b4b2
Only run the installer from the CLI for now
2009-01-19 08:18:12 +00:00
Bharat Mediratta
ff19e4cfe8
Remove the prefix arg, we don't support it yet.
2009-01-19 07:48:48 +00:00
Bharat Mediratta
7c6ceae4b5
mysql_create_db() might not exist
2009-01-19 07:33:40 +00:00
Bharat Mediratta
fc8cf562f5
Fix up various little things to get File_Structure_Test to pass.
2009-01-19 07:26:25 +00:00
Bharat Mediratta
5e94456ce9
Make get_add_block_form() static.
2009-01-19 06:12:49 +00:00
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