Adding extra language flags

Signed-off-by: George Petsagourakis <petsagouris@gmail.com>
(cherry picked from commit 6cc64f6036506c77a83fe6e5ffe4c2bf91125f7b)
Removing unused reset.css

Signed-off-by: George Petsagourakis <petsagouris@gmail.com>
(cherry picked from commit 59e6b2d9b791f6a8174fde0f5e21a8ccb9cdb7b6)
Removing unsused Tipsy jquery plugin.

Signed-off-by: George Petsagourakis <petsagouris@gmail.com>
Updating jQuery to 1.8.3

Signed-off-by: George Petsagourakis <petsagouris@gmail.com>
(cherry picked from commit 0e051e807337bef3d463b113d7c066605e897285)
Removing whitespace.

Signed-off-by: George Petsagourakis <petsagouris@gmail.com>
(cherry picked from commit 8c88b84e5e5b4a8524aa2a55d29531ed95db8775)
Return boolean in the 'success' field of the JSON array in the `Ajax::confirm_database()`

Signed-off-by: George Petsagourakis <petsagouris@gmail.com>
Minor code refinements and PHPDoc comment changes

Signed-off-by: George Petsagourakis <petsagouris@gmail.com>
Reordering some methods in the installer_lib.php
And adding some PHPDoc comments on the class properties.

Signed-off-by: George Petsagourakis <petsagouris@gmail.com>
(cherry picked from commit f82fa95a7f80961eb3b6ff6c3cdfaa3c5df149b0)
Simplifying the PHP version checking.

Signed-off-by: George Petsagourakis <petsagouris@gmail.com>
Renaming curl_enabled and gd_enabled to *_available for coherency.

Signed-off-by: George Petsagourakis <petsagouris@gmail.com>
Removing `Installer_lib::validate_mysql_db_name()` as it was quite redundant.

Signed-off-by: George Petsagourakis <petsagouris@gmail.com>
Unified file-writing in `Installer_lib::write_*_file()` functions.

Simplified `Installer_lib::write_db_file()` & `Installer_lib::write_config_file()`
by introducing a simple `Installer_lib::_write_file_vars()` private method.

Signed-off-by: George Petsagourakis <petsagouris@gmail.com>
(cherry picked from commit 0e71421157f187f364836e75824dee919d9abd64)
Move javascript to bottom (giving me headaches).

Signed-off-by: George Petsagourakis <petsagouris@gmail.com>
Working on the formatting of the views.

Pushing more variables to the Codeigniter Parser makes the view much cleaner.

Signed-off-by: George Petsagourakis <petsagouris@gmail.com>
Introduced the `Installer::_render_view()` method to unify the way we show views.

Also fixed a tiny bug where the label for the validation of the username field couldnt be retrieved due to it looking for the wrong key. (line 347)
Taking care of javascript loading and whitespace.

Signed-off-by: George Petsagourakis <petsagouris@gmail.com>
Missing PHP end tag, screwed everything too.

Signed-off-by: George Petsagourakis <petsagouris@gmail.com>
Reworked the `Ajax::confirm_database()` logic, shorter, leaner.

Signed-off-by: George Petsagourakis <petsagouris@gmail.com>
Variables where initialized two times.

`$data->mysql` & `$data->http_server` inside the `Installer::step_2()`

Signed-off-by: George Petsagourakis <petsagouris@gmail.com>
From now on installer translation flags are generated automatically.

If there is a folder such as in the `installer/languages/<lang_name>` and the `<lang_name>` is in the `system/cms/config/language.php` file then there is a translation icon appears in the header of the installer.

The flags icon files are named after the two character code for the representative country of the language. If this behavior needs to be overridden it should be specified in the `$flag_exchange` array on `installer/controllers/installer.php` at line 96.

Signed-off-by: George Petsagourakis <petsagouris@gmail.com>