summaryrefslogtreecommitdiff
path: root/installer/installer.php
AgeCommit message (Collapse)Author
2013-01-21Update copyright to 2013. Fixes #1953.Bharat Mediratta
2012-05-15Harden installer against bad characters in the database name or prefix. ↵Bharat Mediratta
Fixes #1866.
2012-02-27Update copyright to 2012. #1822Bharat Mediratta
2011-05-05Fix for ticket 1275. Do the same checking as Kohana uses and don't worry ↵Tim Almdal
about calling the utf8_encode routine. Corrected the error messages and also added a check to insure the XML Parser extension is loaded as we still need the utf8_encode function from it.
2011-01-21Update copyright to 2011.Bharat Mediratta
2010-12-16Detect safe_mode and abort the install. Fixes #1534.Bharat Mediratta
2010-12-15Use mt_rand() instead of rand() since it provides better portability.Bharat Mediratta
Fixes #1527.
2010-11-08Check for the PHP Ctype extension. Fixes ticket #1474.Bharat Mediratta
2010-06-06Add a check for short_open_tagBharat Mediratta
2010-06-06Whitespace fixesBharat Mediratta
2010-03-03Update the copyright to 2010. It's only 3 months into the year :-)Bharat Mediratta
2010-02-14Avoid PHP warnings when the DB host string has no port.Andy Staudacher
2010-01-06Provide an error message when the sql in installer::empty_db fails. Also ↵Tim Almdal
change the show tables not to specify a database as it will use the database in the active connection. Fixes ticket #963.
2009-12-29Make sure that we have the mbstring extension.Bharat Mediratta
2009-11-12Initialize the database config with the port number if it is specified. Also ↵Tim Almdal
set it up so the mysqli constructor will split it into host and port for the call to the mysqli constructor. Fixes ticket: #780
2009-09-17Move the check_environment into the installer helper and call it from the ↵Tim Almdal
command line installer as well as the web installer.
2009-09-10Trim the input line to get rid of carriage returns on Windows. FixesBharat Mediratta
ticket #740. Thanks to jankoprowski!
2009-09-10Rename "after_installer" to "welcome_message" in the code to make itBharat Mediratta
clearer what its purpose is. Add some spacing in the theme for it so that it's less cramped.
2009-09-01Escape backslashes (\) in the $salt in create_admin() as they willBharat Mediratta
interfere with our hand rolled UPDATE statement. Big thanks to paulepanter.
2009-08-31Suppress errors to mysql_connect(). We had this before, but itBharat Mediratta
appears to have been accidentally removed in 177a854d
2009-08-30Add back mysql_fetch_object() call that I accidentally removed in myBharat Mediratta
rush to catch a plane.
2009-08-30Remove unnecessary cleverness in stripping off the hyphen for mysqlBharat Mediratta
version checks that was causing problems in the case where there's no hyphen. version_compare handles hypens fine.
2009-08-30Print out the version of MySQL that we found along with our errorBharat Mediratta
message, which should resolve http://gallery.menalto.com/node/90646
2009-08-28Fix for #440. Basically add a check that the mysql version is > 5.0.0.Tim Almdal
It was felt that actually listing the requirements might be overwhelming to novice users.
2009-06-28Move the mysql_xxx() override function definitions insideBharat Mediratta
installer::connect(), otherwise they're defined before we call check_environment, then we think we have mysql_query when we really don't.
2009-06-13Remap mysql_xx() functions to their mysqli counterparts if the mysqlBharat Mediratta
extension is unavailable. Fixes ticket #393.
2009-06-01Fix a warningbharat
2009-05-29Fix the code to specify which columns its inserting into. WithoutBharat Mediratta
that it's fragile, and I broke it when I sorted the columns alphabetically a day or two ago.
2009-05-27Update all references to the core application to now point to theBharat Mediratta
gallery module. This type of mass update is prone to some small bugs.
2009-05-13Suppress some warningsBharat Mediratta
2009-05-13Gee it's May already. Update copyright to 2009.Bharat Mediratta
2009-05-13Warn the user if they're attemping to reinstall into a database thatBharat Mediratta
already has Gallery 3 tables. Otherwise, permit it to continue. We key this off of the existence of the g3_items table. Theoretically it's possible that the g3_items table is gone but other tables are still there, which could mess things up. I'm not going to worry about that for now. Fixes ticket #175
2009-03-09Instead of putting after_install in the url, put it in the session.Bharat Mediratta
This helps us to make sure that we only see the welcome message once.
2009-03-08Log the user in as admin after running the web installer, and giveBharat Mediratta
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-02-28Change the pattern to identify tables that need prefix substitution toTim Almdal
mirror the drupal pattern of using braces {}.
2009-02-27Both the command line and web installer installer now supportsTim Almdal
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-17Move private key generation into the installer so that we're notBharat Mediratta
generating it lazily.
2009-02-15Get rid of InstallException and handle exceptions from create_admin()Bharat Mediratta
properly.
2009-01-20Deal gracefully with bad mysql connection and database information.Bharat Mediratta
2009-01-20Web based installer. It's still got some rough edges, but you can nowBharat Mediratta
do a complete CLI or web based install.
2009-01-19Pull the environment check out into a separate web page to simplifyBharat Mediratta
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-19Incremental additions to the web installer. This is getting messy,Bharat Mediratta
going to pause here and do some refactoring.
2009-01-19Replace mysql_create_db with a mysql_query() call as recommended by the PHP ↵Bharat Mediratta
manual.
2009-01-19Stub of the web based installer.Bharat Mediratta
2009-01-19implement already_installed()Bharat Mediratta
2009-01-19setup_varpath() -> setup_var()Bharat Mediratta
2009-01-19Remove the prefix arg, we don't support it yet.Bharat Mediratta
2009-01-19mysql_create_db() might not existBharat Mediratta
2009-01-19Use mysqli_init() instead of mysqli() as our detector.Bharat Mediratta
2009-01-19Simplification pass over the installer:Bharat Mediratta
- 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