Permalink
Browse files

No more used

  • Loading branch information...
1 parent 76389ce commit ea5928ee16c8fd8784b7c4528fadff6958dac791 bobopinna committed Sep 29, 2006
@@ -1,29 +0,0 @@
-<?php
- require_once('../../config.php');
- require_once('locallib.php');
-
- $id = required_param('id', PARAM_INT); // course ID
- $scormid = required_param('scorm', PARAM_INT); // scorm ID
- $scoid = required_param('sco', PARAM_INT); // suspend sco ID
- $userid = required_param('userid', PARAM_INT); // user ID
-
- $attempt = scorm_get_last_attempt($scormid,$userid);
- $statistic = get_record('scorm_statistic',"scormid",$scormid,"userid",$userid);
- $statisticInput->accesstime = $statistic->accesstime;
- $statisticInput->durationtime = $statistic->durationtime + time()- $statistic->accesstime;
- $statisticInput->status = 'suspend';
- $statisticInput->attemptnumber = $attempt;
- $statisticInput->scormid = $statistic->scormid;
- $statisticInput->userid = $statistic->userid;
- $statisticid = scorm_insert_statistic($statisticInput);
-
- $result = scorm_insert_trackmodel($userid, $scormid, $scoid,$attempt);
- if ($result) {
- echo "<script language='Javascript' type='text/javascript'>";
- echo "location.href='".$CFG->wwwroot." /course/view.php?id=".$id."';";
- echo "</script>";
- } else {
- echo "Suspend failed";
- }
-?>
-
Deleted file not rendered
View
Deleted file not rendered

0 comments on commit ea5928e

Please sign in to comment.