Moodle - the world's open source learning platform https://moodle.org/
Find a file
tjhunt b70094743a themes: MDL-19077 change how the theme is initialised and CSS is served.
This is part of http://docs.moodle.org/en/Development:Theme_engines_for_Moodle%3F

$THEME is now initialised at the same time as $OUTPUT. Old functions like
theme_setup are deprecated in favour of methods on $PAGE. There is a new
theme_config class in outputlib.php that deals with loading the theme config.php file.

CSS used to be served by themes styles.php files calling a function in weblib.php.
Now it works by each theme's styles.php file doing
$themename = basename(dirname(__FILE__));
require_once(dirname(__FILE__) . '/../../theme/styles.php');
which is less code to be copied into each theme. (Old-style styles.php files still
work thanks to some code in deprecatedlib.php.)

Admin UI for choosing a theme cleaned up.

A couple of theme-specific hard-coded hacks like $THEME->cssconstants and
$THEME->CSSEdit have been replaced by a more generic $THEME->customcssoutputfunction
hook. See examples at the end of outputlib.php

Also:
* Fix setting the theme in the URL, which seems to have been broken since 1.9.
* Fix up errors on a few pages caused by the new initialisation order.
* MDL-19097 moodle_page::set_course should not set $COURSE unless it is $PAGE.
* httpsrequired() from moodlelib.php moved to $PAGE->https_required().
* Move has_started() method to the renderer base class.
* Further fixes to display of early errors.
* Remove print_header/footer_old from weblib. I did not mean to commit them before.
2009-07-01 05:54:26 +00:00
admin themes: MDL-19077 change how the theme is initialised and CSS is served. 2009-07-01 05:54:26 +00:00
auth CAS authentication: MDL-19671 phpCAS::getUser can return a mixed-case username, so lower-case it for comparison. 2009-06-30 23:33:11 +00:00
backup MDL-18293 removed obsoleted checking of return values from insert and update_record + unused strings cleanup 2009-06-13 18:34:43 +00:00
blocks Remove a few unnecessary references to global $THEME. 2009-06-25 03:26:58 +00:00
blog MDL-18293 $DB->something is using exceptions, no need for ifs there, removing useless strings 2009-06-03 20:37:28 +00:00
calendar MDL-19418 Replaced ereg* by preg* 2009-06-22 01:22:37 +00:00
course themes: MDL-19077 change how the theme is initialised and CSS is served. 2009-07-01 05:54:26 +00:00
enrol MDL-19418 Replaced ereg* by preg* 2009-06-22 01:22:37 +00:00
error MDL-10107 - Removed old email_to_user with we still arround and added default message processor for user, 2008-08-02 00:04:29 +00:00
files MDL-18111 improving file api comments and docs, fixing license header 2009-05-21 10:12:53 +00:00
filter filter-mediaplugin MDL-16706 Replaced inline JS with new PAGE methods and created mediaplugin.js 2009-06-29 08:05:21 +00:00
grade MDL-19673 Removed the semi-transparent underlay of YUI tooltips, they don't work in IE. Merged from MOODLE_19_STABLE 2009-07-01 03:57:05 +00:00
group MDL-19579 code coverage - add initial $includecoverage attributes 2009-06-26 17:21:36 +00:00
install Automatic installer.php lang files by installer_builder (20090626) 2009-06-26 00:29:31 +00:00
iplookup MDL-17037 ran all GIF images through gifsicle and PNG through optipng 2009-04-05 23:33:00 +00:00
lang themes: MDL-19077 change how the theme is initialised and CSS is served. 2009-07-01 05:54:26 +00:00
lib themes: MDL-19077 change how the theme is initialised and CSS is served. 2009-07-01 05:54:26 +00:00
local MDL-16438 centralise information about plugins to avoid duplication, includes local customisation conversion to standard plugin structure + fixes for some recent regressions; see tracker for more details and links to docs and forums discussions 2009-06-19 14:25:56 +00:00
login themes: MDL-19077 change how the theme is initialised and CSS is served. 2009-07-01 05:54:26 +00:00
message messages MDL-19664 Clean up the messages javascript code 2009-06-30 08:33:29 +00:00
mnet install: MDL-19610 encapsulate empty($CFG->rolesactive) checks in a during_initial_install() function. 2009-06-24 09:17:56 +00:00
mod MDL-19674 - err - slighly more sensible version of the previous commit. 2009-07-01 04:17:31 +00:00
my moodle_page: MDL-12212 improve comments and add some work-in-progress warnings 2009-05-06 09:29:05 +00:00
notes MDL-16166 centralised enabling of subsystems, fixed some warnings and general cleanup 2008-08-26 05:45:07 +00:00
pix MDL-19418 Replaced ereg* by preg* 2009-06-22 01:22:37 +00:00
portfolio MDL-19579 code coverage - finished adding initial $includecoverage attributes 2009-06-26 18:25:46 +00:00
question MDL-19077 - Finish eliminating customcorners-specific code in core. 2009-06-29 08:17:31 +00:00
repository "MDL-19180, url plugin, grab image resources only" 2009-07-01 03:46:20 +00:00
rss MDL-16438 centralise information about plugins to avoid duplication, includes local customisation conversion to standard plugin structure + fixes for some recent regressions; see tracker for more details and links to docs and forums discussions 2009-06-19 14:25:56 +00:00
search MDL-19418 Replaced ereg* by preg* 2009-06-22 01:22:37 +00:00
sso MDL-15189 magic quotes finally removed 2008-06-09 16:53:30 +00:00
tag javascript: MDL-19475 replace require_js calls with $PAGE->requires->js. 2009-06-15 07:57:53 +00:00
theme themes: MDL-19077 change how the theme is initialised and CSS is served. 2009-07-01 05:54:26 +00:00
user user MDL-16706 This was not the solution, removing YUI call here 2009-06-26 08:12:50 +00:00
userpix MDL-14279: use get_file_url instead of checking $CFG->slashargument manually (merge from 1.9) 2008-07-10 09:55:11 +00:00
webservice webservice MDL-12886 clean SOAP client 2009-05-04 06:36:43 +00:00
config-dist.php themes: MDL-19077 change how the theme is initialised and CSS is served. 2009-07-01 05:54:26 +00:00
COPYING.txt MDL-19096 include a copy of the GPL 2009-05-07 03:06:48 +00:00
draftfile.php MDL-18111 improving file api comments and docs, fixing license header 2009-05-21 09:52:00 +00:00
file.php MDL-18111 improving file api comments and docs, fixing license header 2009-05-21 09:44:26 +00:00
help.php Fix some fallout from the pagelib changes. 2009-06-12 12:08:25 +00:00
index.php themes: MDL-19077 new $OUTPUT->header/footer to replace print_header/footer. 2009-06-26 09:06:16 +00:00
install.php MDL-19418 Replaced ereg* by preg* 2009-06-22 01:22:37 +00:00
pluginfile.php MDL-14589 fixed error message if url malformed 2009-06-21 18:22:16 +00:00
README.txt fixing unmerged files 2007-12-06 08:44:07 +00:00
tags Latest tags for HEAD 2009-04-14 06:57:56 +00:00
TRADEMARK.txt Fixed a typo 2009-06-23 04:34:24 +00:00
userfile.php fix git cvs drift 2009-05-27 00:36:40 +00:00
version.php Updated the HEAD build version to 20090701 2009-07-01 00:38:58 +00:00

README      $Id$
------

QUICK INSTALL
=============

For the impatient, here is a basic outline of the 
installation process, which normally takes me only 
a few minutes:

1) Move the Moodle files into your web directory. 

2) Create a single database for Moodle to store all
   it's tables in (or choose an existing database).

3) Visit your Moodle site with a browser, you should 
   be taken to the install.php script, which will lead
   you through creating a config.php file and then 
   setting up Moodle, creating an admin account etc.

4) Set up a cron task to call the file admin/cron.php
   every five minutes or so.


For more information, see the INSTALL DOCUMENTATION:

   http://docs.moodle.org/en/Installing_Moodle 

A local copy can also be found in 

   lang/en_utf8/help/install.html   (or your language)


Good luck and have fun!
Martin Dougiamas, Lead Developer