Permalink
Browse files

SCORM MDL-22340 use full path for includes.

  • Loading branch information...
1 parent d5db311 commit ecf6f35cbfca097d8ee57e66e01ef621eea5c54a @danmarsden danmarsden committed May 6, 2010
Showing with 10 additions and 11 deletions.
  1. +10 −11 mod/scorm/aicc.php
View
@@ -1,18 +1,17 @@
<?php
- header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
- header("Cache-Control: no-cache");
- header("Pragma: no-cache");
+ header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
+ header("Cache-Control: no-cache");
+ header("Pragma: no-cache");
require_once('../../config.php');
- include_once('lib.php');
- require_once('locallib.php');
- require_once('datamodels/aicclib.php');
+ include_once($CFG->dirroot.'/mod/scorm/lib.php');
+ require_once($CFG->dirroot.'/mod/scorm/locallib.php');
+ require_once($CFG->dirroot.'/mod/scorm/datamodels/aicclib.php');
- foreach ($_POST as $key => $value)
- {
- $tempkey = strtolower($key);
- $_POST[$tempkey] = $value;
- }
+ foreach ($_POST as $key => $value) {
+ $tempkey = strtolower($key);
+ $_POST[$tempkey] = $value;
+ }
$command = required_param('command', PARAM_ALPHA);
$sessionid = required_param('session_id', PARAM_ALPHANUM);

0 comments on commit ecf6f35

Please sign in to comment.