28 Commits

Author SHA1 Message Date
Petr Skoda
cbad562eee MDL-25314 improved prevention of output buffering + detection of misconfigured servers
Scripts that do not want buffered output just define NO_OUTPUT_BUFFERING before including config.php.
The fileserving code now checks if the headers are already sent which detects misconfigured servers.
2010-11-19 03:40:43 +00:00
Petr Skoda
61ef8f9f88 MDL-20204 removing deprecated admin headers 2010-03-31 08:05:53 +00:00
Petr Skoda
446e2634d4 MDL-20723 workaround for zlib compressed scripts 2009-11-08 22:23:05 +00:00
Petr Skoda
20207b827a MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 10:57:00 +00:00
nicolasconnault
8fbce1c8c8 MDL-19878 Upgraded calls to helpbutton, print_simple_box* and notify 2009-08-18 04:28:40 +00:00
nicolasconnault
73d6f52f6a MDL-19787 Converted all print_footer() calls 2009-08-06 14:12:46 +00:00
nicolasconnault
2fff8846f2 MDL-19787 Migrated calls to print_heading 2009-08-06 08:17:12 +00:00
tjhunt
e92c286c20 block contexts: MDL-19098 every block should have a context
even non-course and sticky blocks.

The parent context is block_instances.parentcontextid.

The block context should be used for checking permissions directly
related to the block, like moodle/block:view or moodle/site:manageblocks.

However, if the block is displaying information about the current page,
for example the participants block showing who 'here', then it may be
better to use the context of the page where the bloack is appearing -
in other words $this->page->context - to check permissions about the
user's ability to see participants here.

Or, if the block is displaying something stronly related to courses,
for example, a course meny block, the block should probably use the
context for $this->page->course to check permissions.
2009-07-13 08:37:34 +00:00
tjhunt
f474a4e583 blocks: MDL-19010 Fix further blocks-related breakage, including removing all references to blocks_insance_old outside blocklib.php 2009-05-07 08:55:10 +00:00
tjhunt
66b10689e2 blocklib: MDL-19010 upgrade database tables ready for now blocks system 2009-05-06 09:12:03 +00:00
tjhunt
ffdd703a99 MDL-18637 fix Moodle 1.9-style {$CFG->prefix}tablename in HEAD, and a few missing $DB->s.
I did not fix all the DB problems in search, there are too many there for me to be prepared to clean up other people's mess.

(For once, it was not me making this mistake ;-))
2009-03-23 05:19:53 +00:00
stronk7
36fa17855f MDL-18541 replace script - now also replaces within well known html blocks. Merged from 19_STABLE 2009-03-12 19:04:53 +00:00
skodak
d4a1fcaf11 MDL-16613 sesskey cleanup 2009-01-02 10:36:25 +00:00
dongsheng
85db96c5b4 "MDL-17570, cleanup align property in div, merged from 1.9" 2008-12-10 06:48:54 +00:00
skodak
294ce9870f MDL-15189 magic quotes finally removed 2008-06-09 16:53:30 +00:00
skodak
1d8bf5f0ab MDL-14679 towards /admin conversion 2008-05-30 21:36:57 +00:00
skodak
f33e1ed4ae MDL-14679 ok, here is the big patch with new dmllib and ddlib API, some code is already converted, XML db editor works; see tracker for details of regressions and TODOs 2008-05-15 21:40:00 +00:00
dongsheng
8e9d88f2f6 MDL-14129, creating error string 2008-04-10 03:44:09 +00:00
dongsheng
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
toyomoyo
8f2469611f wrap search/replace in a function so that it could be used in cron 2007-12-03 04:46:37 +00:00
skodak
1ae083e424 MDL-9647 simplify dealing with headers/footers in admin sections 2007-04-30 17:08:34 +00:00
toyomoyo
b1b5e86829 removing extra tag MDL-7861 2006-12-19 06:19:16 +00:00
skodak
c9a49ceab4 major cleanup of unsupported and legacy external pages in admin/; created new hidden unsupported category; some other minor fixes and changes 2006-09-25 20:22:55 +00:00
moodler
3f5edbdfa3 If the search and replace affected course->modinfo then courses may not work,
so clear the cache
2006-09-19 07:08:19 +00:00
toyomoyo
41d7209c7f some (mainly admin realated) capabilities 2006-08-25 08:27:27 +00:00
skodak
a37b4c5b10 fixed double prefix bug 2006-04-09 21:25:30 +00:00
skodak
a2eaae6102 parameter cleaup - round 4 2006-03-06 19:27:25 +00:00
moodler
04337d7531 A little utility script to perform search and replace on the whole database.
It's not linked from anywhere yet.

I'm not sure if this will work on PostgreSQL ... can someone test that?
2005-01-16 13:49:30 +00:00