/// that should be called on every page
define('NO_MOODLE_COOKIES', true);
+ define('NO_UPGRADE_CHECK', true);
include('../config.php');
/// Load up any configuration from the config table
$CFG = get_config();
-/// Verify upgrade is not running
- if (isset($CFG->upgraderunning)) {
+/// Verify upgrade is not running unless we are in a script that needs to execute in any case
+ if (!defined('NO_UPGRADE_CHECK') and isset($CFG->upgraderunning)) {
if ($CFG->upgraderunning < time()) {
unset_config('upgraderunning');
} else {
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
- $lifetime = 600; // Seconds to cache this stylesheet
define('NO_MOODLE_COOKIES', true); // session not used here
+ define('NO_UPGRADE_CHECK', true); // ignore upgrade check
+
require_once("../../config.php"); // Load up the Moodle libraries
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
$lang = optional_param('lang', '', PARAM_FILE); // Look for styles in this language
+ $lifetime = 1800; // Seconds to cache this stylesheet
style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
- $lifetime = 600; // Seconds to cache this stylesheet
- $nomoodlecookie = true; // Cookies prevent caching, so don't use them
+ define('NO_MOODLE_COOKIES', true); // session not used here
+ define('NO_UPGRADE_CHECK', true); // ignore upgrade check
+
require_once("../../config.php"); // Load up the Moodle libraries
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
$lang = optional_param('lang', '', PARAM_FILE); // Look for styles in this language
+ $lifetime = 1800; // Seconds to cache this stylesheet
style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
- $lifetime = 600; // Seconds to cache this stylesheet
define('NO_MOODLE_COOKIES', true); // session not used here
+ define('NO_UPGRADE_CHECK', true); // ignore upgrade check
+
require_once("../../config.php"); // Load up the Moodle libraries
- $themename = basename(dirname(__FILE__)); // Name of the folder we are in
+ $themename = basename(dirname(__FILE__)); // Name of the folder we are in
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
+ $lifetime = 1800; // Seconds to cache this stylesheet
style_sheet_setup(time(), $lifetime, $themename, $forceconfig);
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
- $lifetime = 600; // Seconds to cache this stylesheet
define('NO_MOODLE_COOKIES', true); // session not used here
+ define('NO_UPGRADE_CHECK', true); // ignore upgrade check
+
require_once("../../config.php"); // Load up the Moodle libraries
- $themename = basename(dirname(__FILE__)); // Name of the folder we are in
+ $themename = basename(dirname(__FILE__)); // Name of the folder we are in
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
$lang = optional_param('lang', '', PARAM_FILE); // Look for styles in this language
+ $lifetime = 1800; // Seconds to cache this stylesheet
style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
- $lifetime = 600; // Seconds to cache this stylesheet
define('NO_MOODLE_COOKIES', true); // session not used here
+ define('NO_UPGRADE_CHECK', true); // ignore upgrade check
+
require_once("../../config.php"); // Load up the Moodle libraries
- $themename = basename(dirname(__FILE__)); // Name of the folder we are in
+ $themename = basename(dirname(__FILE__)); // Name of the folder we are in
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
$lang = optional_param('lang', '', PARAM_FILE); // Look for styles in this language
+ $lifetime = 1800; // Seconds to cache this stylesheet
style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
- $lifetime = 600; // Seconds to cache this stylesheet
- $nomoodlecookie = true; // Cookies prevent caching, so don't use them
+ define('NO_MOODLE_COOKIES', true); // session not used here
+ define('NO_UPGRADE_CHECK', true); // ignore upgrade check
+
require_once("../../config.php"); // Load up the Moodle libraries
- $themename = basename(dirname(__FILE__)); // Name of the folder we are in
+ $themename = basename(dirname(__FILE__)); // Name of the folder we are in
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
$lang = optional_param('lang', '', PARAM_FILE); // Look for styles in this language
+ $lifetime = 1800; // Seconds to cache this stylesheet
style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
- $lifetime = 1800; // Seconds to cache this stylesheet
define('NO_MOODLE_COOKIES', true); // session not used here
+ define('NO_UPGRADE_CHECK', true); // ignore upgrade check
+
require_once("../../config.php"); // Load up the Moodle libraries
- $themename = basename(dirname(__FILE__)); // Name of the folder we are in
+ $themename = basename(dirname(__FILE__)); // Name of the folder we are in
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
+ $lang = optional_param('lang', '', PARAM_FILE); // Look for styles in this language
+ $lifetime = 1800; // Seconds to cache this stylesheet
- style_sheet_setup(time(), $lifetime, $themename, $forceconfig);
+ style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
?>
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
- $lifetime = 600; // Seconds to cache this stylesheet
define('NO_MOODLE_COOKIES', true); // session not used here
+ define('NO_UPGRADE_CHECK', true); // ignore upgrade check
+
require_once("../../config.php"); // Load up the Moodle libraries
- $themename = basename(dirname(__FILE__)); // Name of the folder we are in
+ $themename = basename(dirname(__FILE__)); // Name of the folder we are in
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
$lang = optional_param('lang', '', PARAM_FILE); // Look for styles in this language
+ $lifetime = 1800; // Seconds to cache this stylesheet
style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
- $lifetime = 600; // Seconds to cache this stylesheet
define('NO_MOODLE_COOKIES', true); // session not used here
+ define('NO_UPGRADE_CHECK', true); // ignore upgrade check
+
require_once("../../config.php"); // Load up the Moodle libraries
- $themename = basename(dirname(__FILE__)); // Name of the folder we are in
+ $themename = basename(dirname(__FILE__)); // Name of the folder we are in
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
+ $lang = optional_param('lang', '', PARAM_FILE); // Look for styles in this language
+ $lifetime = 1800; // Seconds to cache this stylesheet
- style_sheet_setup(time(), $lifetime, $themename, $forceconfig);
+ style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
?>
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
- $lifetime = 600; // Seconds to cache this stylesheet
define('NO_MOODLE_COOKIES', true); // session not used here
+ define('NO_UPGRADE_CHECK', true); // ignore upgrade check
+
require_once("../../config.php"); // Load up the Moodle libraries
- $themename = basename(dirname(__FILE__)); // Name of the folder we are in
+ $themename = basename(dirname(__FILE__)); // Name of the folder we are in
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
+ $lang = optional_param('lang', '', PARAM_FILE); // Look for styles in this language
+ $lifetime = 1800; // Seconds to cache this stylesheet
- style_sheet_setup(time(), $lifetime, $themename, $forceconfig);
+ style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
?>
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
- $lifetime = 600; // Seconds to cache this stylesheet
define('NO_MOODLE_COOKIES', true); // session not used here
+ define('NO_UPGRADE_CHECK', true); // ignore upgrade check
+
require_once("../../config.php"); // Load up the Moodle libraries
- $themename = basename(dirname(__FILE__)); // Name of the folder we are in
+ $themename = basename(dirname(__FILE__)); // Name of the folder we are in
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
$lang = optional_param('lang', '', PARAM_FILE); // Look for styles in this language
+ $lifetime = 1800; // Seconds to cache this stylesheet
style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
- $lifetime = 1800; // Seconds to cache this stylesheet
define('NO_MOODLE_COOKIES', true); // session not used here
+ define('NO_UPGRADE_CHECK', true); // ignore upgrade check
+
require_once("../../config.php"); // Load up the Moodle libraries
- $themename = basename(dirname(__FILE__)); // Name of the folder we are in
+ $themename = basename(dirname(__FILE__)); // Name of the folder we are in
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
+ $lang = optional_param('lang', '', PARAM_FILE); // Look for styles in this language
+ $lifetime = 1800; // Seconds to cache this stylesheet
- style_sheet_setup(time(), $lifetime, $themename, $forceconfig);
+ style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
?>
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
- $lifetime = 1800; // Seconds to cache this stylesheet
define('NO_MOODLE_COOKIES', true); // session not used here
+ define('NO_UPGRADE_CHECK', true); // ignore upgrade check
+
require_once("../../config.php"); // Load up the Moodle libraries
- $themename = basename(dirname(__FILE__)); // Name of the folder we are in
+ $themename = basename(dirname(__FILE__)); // Name of the folder we are in
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
+ $lang = optional_param('lang', '', PARAM_FILE); // Look for styles in this language
+ $lifetime = 1800; // Seconds to cache this stylesheet
- style_sheet_setup(time(), $lifetime, $themename, $forceconfig);
+ style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
?>
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
- $lifetime = 1800; // Seconds to cache this stylesheet
define('NO_MOODLE_COOKIES', true); // session not used here
+ define('NO_UPGRADE_CHECK', true); // ignore upgrade check
+
require_once("../../config.php"); // Load up the Moodle libraries
- $themename = basename(dirname(__FILE__)); // Name of the folder we are in
+ $themename = basename(dirname(__FILE__)); // Name of the folder we are in
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
+ $lang = optional_param('lang', '', PARAM_FILE); // Look for styles in this language
+ $lifetime = 1800; // Seconds to cache this stylesheet
- style_sheet_setup(time(), $lifetime, $themename, $forceconfig);
+ style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
?>
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
- $lifetime = 1800; // Seconds to cache this stylesheet
define('NO_MOODLE_COOKIES', true); // session not used here
+ define('NO_UPGRADE_CHECK', true); // ignore upgrade check
+
require_once("../../config.php"); // Load up the Moodle libraries
- $themename = basename(dirname(__FILE__)); // Name of the folder we are in
+ $themename = basename(dirname(__FILE__)); // Name of the folder we are in
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
+ $lang = optional_param('lang', '', PARAM_FILE); // Look for styles in this language
+ $lifetime = 1800; // Seconds to cache this stylesheet
- style_sheet_setup(time(), $lifetime, $themename, $forceconfig);
+ style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
?>
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
- $lifetime = 1800; // Seconds to cache this stylesheet
define('NO_MOODLE_COOKIES', true); // session not used here
+ define('NO_UPGRADE_CHECK', true); // ignore upgrade check
+
require_once("../../config.php"); // Load up the Moodle libraries
- $themename = basename(dirname(__FILE__)); // Name of the folder we are in
+ $themename = basename(dirname(__FILE__)); // Name of the folder we are in
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
+ $lang = optional_param('lang', '', PARAM_FILE); // Look for styles in this language
+ $lifetime = 1800; // Seconds to cache this stylesheet
- style_sheet_setup(time(), $lifetime, $themename, $forceconfig);
+ style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
?>
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
- $lifetime = 1800; // Seconds to cache this stylesheet
define('NO_MOODLE_COOKIES', true); // session not used here
+ define('NO_UPGRADE_CHECK', true); // ignore upgrade check
+
require_once("../../config.php"); // Load up the Moodle libraries
- $themename = basename(dirname(__FILE__)); // Name of the folder we are in
+ $themename = basename(dirname(__FILE__)); // Name of the folder we are in
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
+ $lang = optional_param('lang', '', PARAM_FILE); // Look for styles in this language
+ $lifetime = 1800; // Seconds to cache this stylesheet
- style_sheet_setup(time(), $lifetime, $themename, $forceconfig);
+ style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
?>