]> git.mjollnir.org Git - moodle.git/commit
Widespread changes throughout Moodle to make sure it works on
authormartin <martin>
Tue, 6 Aug 2002 17:23:45 +0000 (17:23 +0000)
committermartin <martin>
Tue, 6 Aug 2002 17:23:45 +0000 (17:23 +0000)
commit8223d271933beb79be52a6fce60d01ef4e10f4f8
tree3655742cada7cb7aa000f01e5acebed04049c377
parent515b9f306ea39b0373f53b824317fbabdf2959f1
Widespread changes throughout Moodle to make sure it works on
servers that have register_globals turned off (this is the
default setting on newer version of PHP).

In fact it's partly a hack that globalises all GET, POST, FILES
AND COOKIE variables.  Unfortunately though the SESSION and
USER global session variables are only available as $_SESSION["USER"]
and $_SESSION["SESSION"], which is cumbersome to use.

So, for every request I now make a copy of these two session variables
into $USER and $SESSION.  Whenever I update them thoughout Moodle I
now have to call save_session("USER") which copies them back to the
session variable.  This seems to be working well now.

Because I'm using $_SESSION etc now this will raise
the required minimum version of PHP to 4.1.0
27 files changed:
admin/user.php
course/enrol.php
course/loginas.php
course/mod.php
course/social.php
course/topics.php
course/unenrol.php
course/view.php
course/weeks.php
doc/install.html
index.php
lib/moodlelib.php
lib/setup.php
login/change_password.php
login/confirm.php
login/index.php
login/logout.php
mod/forum/discuss.php
mod/forum/index.php
mod/forum/lib.php
mod/forum/post.php
mod/forum/rate.php
mod/forum/search.php
mod/forum/subscribers.php
mod/forum/view.php
user/edit.php
user/lib.php