I am trying to achieve something similar to what Mary was looking for in this previous discussion http://moodle.org/mod/forum/discuss.php?d=159348 but in Moodle2.
I am working on a way to allow admins with little/no server access to save a file including settings and to incorporate that into the theme. I have my idea working with the file in the theme folder and using a php include ("myfile.php") there, and also from setting the file name through the settings page (so long as I'm just giving it the file name and it is already stored in the theme directory) but I want to be able to "include" a file saved by the admin for instance in the main menu block on the front page.
Can anyone help with this with the way Moodle2 references these files?
Richard
Edit: If I try to reference the file that I uploaded to the main menu block I get the error below
Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /var/www/moodle/theme/flexi3/lib.php
while trying to use $CFG->wwwroot gives the same error, and $CFG->dataroot says no such file exists so I'm not sure I'm referencing the file properly.