dirroot.'/lib/languages.php'); $id = optional_param('id', SITEID, PARAM_INT); $httpsrequired = optional_param('httpsrequired', 0, PARAM_BOOL); //flag indicating editor on page with required https require_course_login($id); $lastmodified = filemtime("htmlarea.php"); $lifetime = 1800; // Commenting this out since it's creating problems // where solution seem to be hard to find... // http://moodle.org/mod/forum/discuss.php?d=34376 //if ( function_exists('ob_gzhandler') ) { // ob_start("ob_gzhandler"); //} header("Content-type: application/x-javascript; charset: utf-8"); // Correct MIME type header("Last-Modified: " . gmdate("D, d M Y H:i:s", $lastmodified) . " GMT"); header("Expires: " . gmdate("D, d M Y H:i:s", time() + $lifetime) . " GMT"); header("Cache-control: max_age = $lifetime"); header("Pragma: "); $lang = current_language(); if (empty($lang)) { $lang = "en"; } if ($httpsrequired or (!empty($_SERVER['HTTPS']) and $_SERVER['HTTPS'] != 'off')) { $url = preg_replace('|https?://[^/]+|', '', $CFG->wwwroot).'/lib/editor/htmlarea/'; } else { $url = $CFG->wwwroot.'/lib/editor/htmlarea/'; } $strheading = get_string("heading", "editor"); $strnormal = get_string("normal", "editor"); $straddress = get_string("address", "editor"); $strpreformatted = get_string("preformatted", "editor"); $strlang = get_string('lang', 'editor'); $strmulti = get_string('multi', 'editor'); ?> // htmlArea v3.0 - Copyright (c) 2002, 2003 interactivetools.com, inc. // This copyright notice MUST stay intact for use (see license.txt). // // Portions (c) dynarch.com, 2003-2004 // // A free WYSIWYG editor replacement for