Bharat Mediratta
198297e0d4
Instead of putting after_install in the url, put it in the session.
...
This helps us to make sure that we only see the welcome message once.
2009-03-09 00:03:04 +00:00
Bharat Mediratta
72c7fed975
Log the user in as admin after running the web installer, and give
...
them a nice "Welcome to Gallery 3" dialog. The text in there needs a
little work but it's a start.
In the process, re-build the install.sql using the scaffolding code.
2009-03-08 21:21:09 +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
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
Bharat Mediratta
8384cac5e3
Deal gracefully with bad mysql connection and database information.
2009-01-20 04:56:10 +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
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
0f8685fc9f
Use mysqli_init() instead of mysqli() as our detector.
2009-01-19 05:21:37 +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