4251 Commits

Author SHA1 Message Date
moodler
326e563a43 Prevent an rcache-related notice 2007-01-29 06:12:18 +00:00
vyshane
c4ca9cb3b2 Merged from 1.7. 2007-01-29 02:22:18 +00:00
stronk7
b5eb752394 First real test of the new rs_fetchXXX() functions. Applying it
to get_my_courses(). MDL-8134

Merged from MOODLE_17_STABLE
2007-01-29 00:17:25 +00:00
stronk7
1e15c0fdad Added Oracle DIRTY HACK to both rs_fetchXX functions.
Detecting of EOF in rs_fetch_record()
Big improvement of rs_fetch_next_record() by using FethRow()
with speeds near native fields[]. MDL-8134

Merged from MOODLE_17_STABLE
2007-01-28 23:15:16 +00:00
skodak
9152fc9938 MDL-8323 finished full conversion to proper $COURSE global - no more $CFG->coursetheme, $CFG->courselang - improved course_setup(), current_language() and current_theme(); and Chameleon theme fixes needed for global $COURSE
MDL-7962 chat seems to be completely broken in head (fixed wrong JS)
* reworked chat themes support
MDL-8338 Cron does not need cookies
MDL-8339 forum cron capabilities problems
* minor deprecated function current_encoding() cleanup
2007-01-28 21:18:08 +00:00
skodak
8d2b18a886 MDL-8337 has_capability() ignores default roles for $userid and does not detect changed $USER and other minor fixes (this is needed for global $COURSE cleanup and fixed+improved cron.php) 2007-01-28 20:52:57 +00:00
stronk7
d9e10456ba Initial commit of the new rs_XXX() functions to fetch, advance and close
ADOdb recordsets in a standard way. Not finished yet but I need them in CVS.
MDL-8134

Merged from MOODLE_17_STABLE
2007-01-28 20:14:09 +00:00
stronk7
3b34bc7f39 Now MSSQL naming of objects introspects to avoid duplicates. MDL-7376 2007-01-28 18:18:28 +00:00
stronk7
c5e065f817 Clarify a bit getNameForObject correct usage. 2007-01-28 11:46:17 +00:00
stronk7
5a08ca80ed Oracle now introspects DB to fetch names of
sequences and triggers. MDL-6880
2007-01-28 11:42:10 +00:00
stronk7
3e7dab97e7 And finally I've found the annoying bug that was causing Oracle to
execute strange SQL statements! Argh! Now I can go to sleep...
2007-01-28 01:07:52 +00:00
stronk7
2a82cacf0b getting tired of restore my test Oracle DB. Typo! 2007-01-28 00:30:22 +00:00
stronk7
fec5fe881e Quote field names in rename in order to allow renaming of reserved words. 2007-01-28 00:20:54 +00:00
stronk7
a54d16ef2e CHAR fields NOT NULL must not have any empty default specified!
Oracle breaks with empty defaults because they are = NULL.

Leaving them as NULL, XMLDB will apply defaults for each DB properly.
2007-01-28 00:12:32 +00:00
stronk7
ad88038fdb Fixing silly (like me) typo. 2007-01-27 23:39:57 +00:00
stronk7
358b1e9359 Oracle PL/SQL blocks can end by ";". Prevent that to be trimmed. 2007-01-27 23:37:22 +00:00
skodak
1e94fe068c Editor related fixes:
MDL-7545 HTML Editor does not send http headers for character encoding;
MDL-8323 added proper require_course_login()
+ fixed javascript in coursefiles broken by XHTML strict
+ general cleanup and fixing in coursefiles (themes, javascript, obsoleted functions, etc.)
2007-01-27 23:23:44 +00:00
stronk7
6210ae1d43 Now Oracle naming of objects introspects to avoid duplicates. MDL-7376 2007-01-27 22:11:04 +00:00
skodak
083c3743d3 MDL-7977 - updated guest and loggedin detection in login block; removed obsolted $USER->loggedin (now tested with empty($USER->id) in isloggedin()) and $USER->site (replaced by session test cookie)
MDL-5429 - skip https login for guestlogins
2007-01-27 21:28:26 +00:00
stronk7
42b9540e01 When renaming tables, check that the new one doesn't exist. 2007-01-27 20:13:23 +00:00
stronk7
d21a42d7cf Small improvement. One less iteration pero object name requested. 2007-01-27 20:08:19 +00:00
skodak
dcf6d93c9c MDL-8323 Add proper setup of course $CFG variables, fix use of global $COURSE
new function course_setup() thats does proper $CFG-> , locale and themes setup much sooner than print_header() originally (needed for MDL-8067), cleanup of forgotten global $course issues

MDL-8067 Fixed several $HTTPSREQUIRED issues - html editor now loads from https (the old hack did not wotk with IE7, new hack is uglier but works), fixed formlibs images (we can not set them in library global scope, we must wait for httpsrequired() and require_login() and od that in function), fixed links in meta.php, fixed help images

fixed setting of new $USER values in user edit forms
2007-01-27 19:56:08 +00:00
stronk7
d65980452a Updated comment. 2007-01-27 17:41:31 +00:00
stronk7
a1b2780c8e Now Postgres naming of objects introspects to avoid duplicates. MDL-7376 2007-01-27 17:37:39 +00:00
stronk7
f2daac4e62 Delegate to the isNameInUse() function the request to
see if one object name is in use in the DB (to avoid
duplicates 100%) MDL-7376 (the rest will come tomorrow)
2007-01-27 01:12:18 +00:00
stronk7
db21b7a28c Adding two helper functions and modify upgrade to
work properly under MSSQL and Oracle. MDL-8303

Added one simple hack to execute_sql() in order
to avoid and debug about trailing ;
2007-01-26 21:27:44 +00:00
stronk7
4218c9b21e Silly conditions produce silly results, please. :-P
(WHERE 1 is not cross-db at all)
2007-01-26 21:19:07 +00:00
stronk7
77b09448b3 Oracle doesn't like ; at the end of execute_sql() 2007-01-26 19:28:40 +00:00
moodler
0b4f88a6d6 Improved documentation for print_tabs 2007-01-26 06:28:43 +00:00
moodler
65c8c79335 Some slight modifications to the css classes for one-tab lines MDL-7782 2007-01-26 06:23:53 +00:00
skodak
29c7e08328 MDL-8096 - fixed set_user_preference() weirdness, you could not pass $USER->id as $otheruser parameter 2007-01-25 18:17:57 +00:00
skodak
4af06ddad0 MDL-8281 hardFreeze now removes previously defined required status and all rules 2007-01-25 17:59:46 +00:00
skodak
e8e0bb2d7b MDL-8096 - advanced edit now mostly works, though still some parts missing; RIP changeme user :-) 2007-01-25 11:03:33 +00:00
moodler
36e8c122d5 Improved classes for new tabs MDL-7782
Improved inclusion of meta.php avoids notices for non-existent files
2007-01-25 04:43:26 +00:00
vyshane
e50b0ad904 Merged from 1.7. 2007-01-25 04:37:39 +00:00
skodak
ad6226fba2 MDL-8096 - user edit form splitting, refactoring, cleanup and fixing - work in progress ;-)
* new editadvanced form for creating of users and editing without restrictions
* elliminated fantom changeme user
* updated links and installation process
* see TODO comments in code
2007-01-25 00:04:02 +00:00
donal72
6e783f21ec Mnet: Minor: Fix a comment 2007-01-24 23:15:24 +00:00
stronk7
83c9a8a29a Modified a bit the child iterator that wasn't working under Safari.
Tested with FF and Safari. Needs test with IE.
2007-01-24 19:39:59 +00:00
stronk7
bb3172c038 Prevent rename_field() to be executed if no full specs of
the original field are provided. MDL-8296
2007-01-24 17:54:53 +00:00
moodler
fdaacd8b70 A small bug in rename_field means that you need to specify the field in detail for it to work.
This will be fixed by Eloy later.

MDL-8237
2007-01-24 13:17:03 +00:00
moodler
79f533c388 Added some new settings to theme config.php so that a file meta.php can be
automatically included into the HEAD section of the current theme.

Supports parent and standard files too.

I added this to support the inclusion of some IE specific CSS  :-( which needs
to be done from HTML and not CSS, (MDL-7782) but it could be used to include other things
as well, or even to run some PHP code, set various vriables etc without messing
up the theme header.html (and regardless of the theme being used).
2007-01-24 09:20:32 +00:00
moodler
eb8cc38e65 Added some docs from MDL-6798 2007-01-24 07:08:50 +00:00
vyshane
4c72307e24 Merged from 1.7 2007-01-24 05:58:59 +00:00
donal72
cdf2232920 Mnet: Rename field: access to accessctrl for Oracle interop: MDL-8237 2007-01-23 21:27:50 +00:00
moodler
8f36e33ec3 Fixed up styles for simple boxes see MDL-8101 2007-01-23 05:37:26 +00:00
vyshane
4a384c5bbe PEAR Services_JSON. 2007-01-23 05:19:28 +00:00
skodak
371a32e308 (MDL-8250) install/upgrade autopilot 2007-01-22 20:15:12 +00:00
skodak
2463ef818f MDL-7861 fixed regression caused by one of previous commit related to print_single_button() and friends - old & handling restored, thanks Eloy for spotting the problem :-) 2007-01-22 18:23:14 +00:00
skodak
c35e8b1c15 removed xhtml strict todo comment - already fixed 2007-01-22 16:03:34 +00:00
moodler
8f8de2cc87 Made is_mnet_remote_user() a bit more robust MDL-8253 2007-01-22 08:25:20 +00:00