Commit Graph
72 Commits
Author SHA1 Message Date
Tim Almdal 14c1f45578 Forgot to update the install.sql when i changed the [] to {} to
identify table names that need substitution.
2009-03-02 01:53:26 +00:00
Tim Almdal c04ff8e02f Change the pattern to identify tables that need prefix substitution to
mirror the drupal pattern of using braces {}.
2009-02-28 06:37:28 +00:00
Tim Almdal 0b9fe18a6b Both the command line and web installer installer now supports
creating tables with a table prefix.
There are still some queries that haven't been converted, so don't
start using prefixes yet.  However, if you do, you can login and
modify the user profile.
2009-02-27 19:26:21 +00:00
Tim Almdal dc4f784558 * Refactor task management methods from admin_maintenance.php to
task.php
* Added a owner_id field to the task database
* Modified the admin maintenace to show the owner of the task
<<**** Requires a reinstallation of core ****>>
2009-02-27 16:28:20 +00:00
Tim Almdal d097b4fc02 Update to image_block based on bharat's feedback
1) move the rand_key column into core
2) don't do a max rand, just try to a get a random number less than
the current random number if that doesn't successd look the other way
2009-02-26 23:38:17 +00:00
Tim Almdal 4b08146c45 A couple of references to media_rss that were overlooked 2009-02-23 19:19:16 +00:00
Andy Staudacher 8bba897a46 Changing from binary(16) to char(32) as translation message key.
Although less efficient as a storage / transmission / comparison format, it's friendlier on the eyes and universally supported.
2009-02-23 06:33:10 +00:00
Chad Kieffer 51591c9669 Better yet, rename gallery2.png to just gallery.png. Reference logo from scaffold too. 2009-02-23 05:55:29 +00:00
Chad Kieffer ab041eedc5 Use local Gallery Project logo in the installer 2009-02-23 05:45:21 +00:00
Jakob Hilden 87ad71c985 added mkdir command to error message if "var" is not found, for people that don't know how to create a folder on unix 2009-02-17 21:49:57 +00:00
Bharat Mediratta 82ccbba124 Move private key generation into the installer so that we're not
generating it lazily.
2009-02-17 07:03:40 +00:00
Bharat Mediratta 6c59a19677 Get rid of InstallException and handle exceptions from create_admin()
properly.
2009-02-15 09:14:03 +00:00
Andy Staudacher c2eee47465 Move site default_locale into DB (vars) and add a per user locale preference.
There's no UI to select the locale yet.
2009-02-10 02:37:16 +00:00
Andy Staudacher dce6548431 Add local localization functionality. Local = no means to upload / download translations to a translation server yet.
- Added an outgoing_translations table to store translations from the local translation UI.
 - I18n class is checking incoming_ and outgoing_translations for translations, giving the latter priority.
 - Not handling plural strings in the translations UI yet.
2009-02-09 08:42:13 +00:00
Bharat Mediratta c33ac93b2b Require mysqli_set_charset to use the mysqli extension 2009-01-22 19:51:52 +00:00
Bharat Mediratta ebfc7d4f47 Don't allow the installer to run if PHP < 5.2.3 2009-01-22 19:49:30 +00:00
Bharat Mediratta 7a1b986b5b Require 5.2.3 2009-01-21 21:37:57 +00:00
Bharat Mediratta 8384cac5e3 Deal gracefully with bad mysql connection and database information. 2009-01-20 04:56:10 +00:00
Bharat Mediratta 0c6b36b086 Fix preambles, delete unused file 2009-01-20 04:41:53 +00:00
Bharat Mediratta 5e7717f778 Move install.html.php into views, too 2009-01-20 04:39:24 +00:00
Bharat Mediratta 66ee2f9618 Move pages -> views for consistency, which simplifies the life of the File_Structure_Test 2009-01-20 04:37:55 +00:00
Bharat Mediratta a299f418e1 Make VARPATH accessible to all. 2009-01-20 01:15:20 +00:00
Bharat Mediratta e6530e9ea6 Update README with new install instructions 2009-01-20 01:03:22 +00:00
Bharat Mediratta 681197a265 Web based installer. It's still got some rough edges, but you can now
do a complete CLI or web based install.
2009-01-20 00:54:02 +00:00
Bharat Mediratta d51955c8ef Pull the environment check out into a separate web page to simplify
the CLI installer.  Put a link to it in the footer of every web
install page.  Don't allow users to run it if Gallery 3 is already
installed.
2009-01-19 20:20:10 +00:00
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 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