Commit Graph
88 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 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 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
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 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 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
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
Bharat Mediratta 4dbb14a0a8 define $arguments so that we don't have an error. 2009-01-14 04:30:19 +00:00
Bharat Mediratta 84ea7eefdc Delete DIRECTORY_SEPARATOR fixups. We're not on Windows. 2009-01-14 04:28:19 +00:00
Bharat Mediratta 9f0c33fdbd priviledge -> privilege 2009-01-14 04:26:03 +00:00
Bharat Mediratta 891bcd231b dir -> die 2009-01-14 04:14:35 +00:00
Bharat Mediratta f3ba69c1d6 Make sure that helper functions are all static. Add new
File_Structure_Test to make sure we don't regress.

According to the PHP docs, the "public" keyword is implied on static
functions, so remove it.  Also, require private static functions to
start with an _.

http://php.net/manual/en/language.oop5.visibility.php
2009-01-14 04:12:02 +00:00
Tim Almdal 02af2d8b76 The installer. At this point, the core installs, the user module defines groups and users, but dies when attempting to create default permissions 2009-01-14 03:38:51 +00:00
Tim Almdal fb73cc7bc4 Delete Mysql_Driver.php as it is no longer used 2009-01-13 01:18:54 +00:00
Bharat Mediratta 4adff59169 Fix preambles 2009-01-13 01:00:40 +00:00
Tim Almdal e02c5759bb Add a check to (e|i)nsure that the database provided is empty 2009-01-12 05:12:17 +00:00
Tim Almdal ea3785c126 Add a check that the installation directory is writable 2009-01-12 02:33:53 +00:00
Tim Almdal df44265401 Check to insure that the supplied user had the required permissions 2009-01-12 01:34:36 +00:00
Tim Almdal 65e28bc678 Moving slowly forward on the batch installer. It now connects to the database and checks that the supplied database is defined. 2009-01-11 23:08:23 +00:00
Tim Almdal c14387011e add a -i parameter that allows the specification of the database type (defaults: mysqli) 2009-01-11 07:33:57 +00:00
Tim Almdal 8c8bdf7025 allow modules to be installed to be specified as command line option or in the response file 2009-01-11 07:30:26 +00:00
Tim Almdal 6fdca531c6 allow modules to be installed to be specified as command line option or in the response file 2009-01-11 07:14:19 +00:00
Tim Almdal 2bc890a4f0 Don't use short tags in installer until we know its same to do so 2009-01-11 03:02:56 +00:00
Bharat Mediratta 01666c5579 Fix all file structure issues (tabs, bad preambles, etc).
Note: installer/install.php is now on the "direct access" list.
2009-01-11 02:27:00 +00:00
Tim Almdal 144f8c342b Change the format of the internal error messages and pretty print the installation parameters 2009-01-10 22:00:14 +00:00
Tim Almdal 4c330e5a99 Continuing baby steps to a batch installer. At this point you can run the installer and it will parse the command line arguments.
currently the following arguments are accepted -h(database host) -u(database user) -p(database password) -d(database name) -t(table prefex) or -f(a response file).

The order of processing, defaults are set. if the response file is provided, the contained values are merged and finally any command line parameters are merged.
2009-01-10 20:47:38 +00:00
Tim Almdal bdd3cadf68 Forgot to delete a working copy 2009-01-09 18:35:04 +00:00
Tim Almdal 22ee012720 Stage 1 of the installer. basically check that we can start as far as Kohana correctly 2009-01-09 18:33:48 +00:00