55 Commits

Author SHA1 Message Date
Petr Škoda
eb459f7192 MDL-40642 set more restrictive umask and use proper permission for new dirs and files 2013-07-19 09:18:44 +02:00
Sam Hemelryk
1168a5f2e3 MDL-39575 install: better handling of database creation error.
Implemented better handling of DML exceptions.
Added translation for cannotcreatedb exception.
2013-05-10 17:28:39 +12:00
Simon Coggins
ec2d8ceb88 MDL-35332 lib: Improve security of hashed passwords 2013-02-09 06:47:57 +13:00
Petr Škoda
398862b92b MDL-36487 send IE standards compatibility http headers 2012-11-09 17:27:29 +01:00
Petr Škoda
550790153a MDL-35904 send notifications from main admin and improve coding style 2012-10-13 09:52:45 +02:00
Petr Skoda
b7c5627f5b MDL-33089 flag test database as soon as possible in PHPUnit init 2012-05-28 10:10:32 +02:00
Aparup Banerjee
ad394588db MDL-28134 General : fixed CFG->branch notice during web/cli installation 2012-05-10 15:43:52 +08:00
Aparup Banerjee
ed01233ace MDL-28134 General : added branch variable to version.php for reliable docs versioned links. 2012-05-03 16:30:20 +08:00
Petr Skoda
d9d61fa340 MDL-32251 use standard PHP debug levels instead of original 38911 2012-03-30 19:19:06 +02:00
David Mudrak
fbe33209ce MDL-30381 install_init_dataroot() now creates temp and cache
This prevents PHP warnings displayed due to recent modifications in
make_temp_dir() and make_cache_dir(). These functions now expect that
the root temp/cache dir already exists. So they must be available before
the lang_installer installs the lang pack during install.
2011-11-21 23:56:05 +01:00
Tim Hunt
cc359566fe MDL-29474 admin index/plugins/environment pages: all ouptut code -> renderer. 2011-10-20 11:13:39 +01:00
Petr Skoda
e5d2c5779f MDL-25699 decode URLs in installer CSS 2011-07-23 00:45:17 +02:00
Ruslan Kabalin
afed8d0f17 MDL-27652 messages: introduce message_update_processors
This function populates default message preferences for all existing providers
when the new message processor is added.

The change also includes update of message_set_default_message_preference to
make possible using it for particular message processor update.

install_populate_default_messaging_prefs() is no longer needed and depricted.

Signed-off-by: Ruslan Kabalin <ruslan.kabalin@luns.net.uk>
2011-06-01 12:02:37 +01:00
Ruslan Kabalin
67147c2550 MDL-27171 messages: populate messaging defaults after the installation
This makes the order of plugins returned by get_plugin_types not important as
all messaging defaults population is done at the end.

Signed-off-by: Ruslan Kabalin <ruslan.kabalin@luns.net.uk>
2011-05-31 16:00:32 +01:00
Ruslan Kabalin
b53b2b0ee9 MDL-27171 messages: ensure message preferences for the core message providers are set
upgrade_core also attempts to populate the preferences, but since during the
first installation it is called before message outputs are set, we need to
force preferences setting at the end.

Signed-off-by: Ruslan Kabalin <ruslan.kabalin@luns.net.uk>
2011-05-27 14:07:06 +01:00
Ruslan Kabalin
7a04c476a2 MDL-27171 messages: implement new syntax in messages.php and update processing
The new messaging default settings can be set in messages.php and deployed
during installation. This also ensures the removing of settings on plugin
uninstallation and contains the update script to populate current default
settings on the existing system when the new feature is introduced.

For security reason we have to avoid using library functions in upgrade
function, so we set defaults the blind way. At this point we do not expect
plugins to have individual messaging defaults presets anyway. The site
defaults are the same as were set for each user using
message_set_default_message_preferences function.

Signed-off-by: Ruslan Kabalin <ruslan.kabalin@luns.net.uk>
2011-05-27 14:06:56 +01:00
Petr Skoda
1c71748dd1 MDL-27121 fix incorrect check_moodle_environment() version parameter
This prevents Moodle 2.0 from using environment info for 2.1 in the installer and CLI upgrade.
2011-04-09 17:43:52 +02:00
David Mudrak
9632db7aea MDL-23027 CLI installer allows to define site name and shortname
Credit goes to James Brisland for the submitted patch. I just polished
it a bit and changed the SQL condition that selects the site course
record from id=1 to format='site' (see xmldb_main_install() for how the
site course record is initialised, we should not rely on the id assigned
to it by the DB engine).
2010-10-27 19:18:45 +00:00
Petr Skoda
6ab00ccee7 helping IDEs with undefined variable detection 2010-09-18 11:29:45 +00:00
Petr Skoda
e71ea28fc8 opps, removing obsolete config.php deletion - this function is now used from different installers, admins will have to delete config.php manually... 2010-09-18 11:29:10 +00:00
Petr Skoda
8d3f06f7fa fixed undefined function 2010-09-18 11:14:09 +00:00
Petr Skoda
0bda70315b MDL-23984 improved dataroot handling in installer 2010-08-29 11:33:04 +00:00
Petr Skoda
b30fa33538 MDL-23948 we should make CFG global before assigning value to it, you could not include our config.php from non-global scope before which was breaking external stuff 2010-08-26 15:31:18 +00:00
Petr Skoda
b7315f3502 MDL-23590 refactoring cli install before adding install_database.php + fixing problem with incorrect octal when default value accepted 2010-07-30 11:58:02 +00:00
Petr Skoda
460ebd6c31 MDL-21249 fixed recent installer regression, sorry 2010-07-26 20:17:36 +00:00
David Mudrak
85ed076b18 MDL-23322 Fixed incorrect definition of installer strings 2010-07-23 12:11:17 +00:00
Petr Skoda
8bb701112d fixed comment typo 2010-05-21 17:40:28 +00:00
Petr Skoda
3b5ff37f24 MDL-22546 removing dirroot from the config.php - this should finally solve the symbolic links issues because we know 100% what should be in $CFG->dirroot once we get into lib/setup.php, it is being initialised there automatically instead + more robust handling of dataroot + simplified config-dist.php and installer; the $CFG->admin is now visible only if admin directory can not be found; please note the old config.php's are still going to work, if admins remove the dirroot they have to add the __FILE__ into require_once lib/setup.php at the end of old config 2010-05-21 17:32:15 +00:00
David Mudrak
7be6768138 MDL-22295 CLI installer supports --chmod argument to define $CFG->directorypermissions 2010-05-20 13:40:45 +00:00
David Mudrak
59ba2bb002 MDL-22294 CLI installer now supports --dataroot argument correctly 2010-05-10 15:59:21 +00:00
David Mudrak
6189e63d52 MDL-22306 PHP_EOL is used when creating config.php 2010-05-10 12:51:49 +00:00
Petr Skoda
2357ab4921 MDL-15252 language list refactoring 2010-04-10 21:22:15 +00:00
Petr Skoda
3a915b0667 MDL-21693 Dropping _utf8 suffix from language codes and folder names; enabling new string managers - please note the transition is not yet fully complete because we need to wait for git to recognize the renames in cvs 2010-04-10 07:24:56 +00:00
Sam Hemelryk
90723839ca themes MDL-21862 Implements base theme and standard theme.
Very big theme changes, standardold theme has been split into two themes base and standard. Base theme contains only CSS that is absolutly required (e.g. layout, white space rules, specific widths) and standard (which now looks like standardwhite) contains all the frills.
The following noteable changes have also been made:
  * Plugin CSS has been pushed back into the plugin directories as styles.css files.
  * Install_print_header has been corrected.
  * Redundant or deprecated rules have been removed.
  * Several minor class changes throughout Moodle.
  * CSS is now single line rules not multiline indented.
  * Installs with theme=standardold automatically switch to standard.
  * body classes / id now have prefixes to make it clearer what they are and avoid conflicts.
Also worth noting:
  * There is still alot of tweaking that is required to get everything looking as it is supposed to, please be patient or better yet help out.
  * I am currently working on the documentation for the themes system... it will be here soon.
2010-03-25 06:38:21 +00:00
Petr Skoda
da0c0e2595 MDL-21149 fixyed todos 2009-12-17 20:11:39 +00:00
Petr Skoda
78946b9bdb MDL-20204 first batch of major theme changes, some regressions are still there, expect more changes and improvements soon; see tracker for details and list of subtasks 2009-12-16 18:00:58 +00:00
Petr Skoda
4c1ba3ffc7 MDL-18006 MDL-18807 MDL-20853 merging sam's changes from MOODLE_19_STABLE, going to fix some more problems in this new code soon 2009-11-17 16:11:25 +00:00
nicolasconnault
5231a15c0f MDL-19799 Migrated calls to close_window_button() 2009-08-06 02:52:39 +00:00
samhemelryk
226617eafb lib MDL-19236 Added phpdocs and copyrights 2009-05-26 02:17:06 +00:00
skodak
dc47d704f2 MDL-15249 refactoring normal installer in preparation for new cli installer 2009-05-25 17:17:33 +00:00
skodak
95feaf965f MDL-19235 updated license header in installer - completely rewritten for 2.0 + more inline docs 2009-05-21 10:08:58 +00:00
stronk7
768408e8dd MDL-18198 installer - change distro to distrolib.php and delete distro hack from installlib 2009-02-09 19:35:57 +00:00
skodak
64c368e3df MDL-18167 more distro hooks refactoring - agreed with Eloy 2009-02-07 20:03:25 +00:00
skodak
9ace50944f MDL-14924 the same title now used on each upgrade/install page (Moodle - 2.0...) + the same footer with moodle logo now used during installation and upgrade - links to admin docs 2009-02-07 17:56:40 +00:00
skodak
6724b0598b MDL-18167 more hooks for distros 2009-02-07 17:07:05 +00:00
skodak
4d928665b9 MDL-14924 language autorefresh and starting to reimplement welcome.html support + strings.txt cleanup 2009-02-07 13:35:01 +00:00
skodak
3b09331066 MDL-17458 rewritten installer 2009-02-07 10:20:33 +00:00
skodak
11e7b506ce MDL-17754, MDL-11061, MDL-9276, MDL-17777, MDL-17787 - various url handling improvemetns; rewritten $FULLME and added $ME, $SCRIPT and $FULLSCRIPT; improved slashargument handling especially for IIS; removed legacy slasharguments functions obsoleted since 1.6; some other refactoring; reverse procy support, ssl appliance support 2009-01-05 21:37:20 +00:00
skodak
a49709851e MDL-15410 Require PHP 5.2.4 instead of 5.2.0 in HEAD because PHP 5.2.0 has many known problems :-( 2008-08-01 09:44:37 +00:00
skodak
16a5642c69 MDL-14679 var_export now used instead of addsingleslashes in installer; refactored the database setting initialisation 2008-06-22 22:53:40 +00:00