Archive for November, 2007

Working with web files and permissions in Linux

Thursday, November 22nd, 2007

Change all files to 644: chmod 644 -R . (assuming you’re running from the web root)

Change all directories to 755: find . -type d -exec chmod 755 {} + (again assuming you’re running from the web root)

For older versions of linux/shells use: find . -type d -exec chmod 755 {} \;

Moodle :: Automatically purging data from DB after each semester

Thursday, November 8th, 2007

http://moodle.org/mod/forum/discuss.php?d=77241

http://moodle.org/mod/forum/discuss.php?d=53142#p349045 

Context Levels in Moodle

Thursday, November 8th, 2007

// context definitions
define(’CONTEXT_SYSTEM’, 10);
define(’CONTEXT_PERSONAL’, 20);
define(’CONTEXT_USER’, 30);
define(’CONTEXT_COURSECAT’, 40);
define(’CONTEXT_COURSE’, 50);
define(’CONTEXT_GROUP’, 60);
define(’CONTEXT_MODULE’, 70);
define(’CONTEXT_BLOCK’, 80);