Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature.just in time #142

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 8 additions & 1 deletion .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,11 @@
/tests/_output/
/c3.php
*.php~
*.js~
*.js~
config.php
header.php
infoheader.php
loginpage.php
newinstructor.php
.DS_Store
._.DS_Store
Empty file modified .htaccess
100644 → 100755
Empty file.
Empty file modified DEembedq.php
100644 → 100755
Empty file.
Empty file modified OEAembedq.php
100644 → 100755
Empty file.
Empty file modified actions.php
100644 → 100755
Empty file.
Empty file modified admin/.DS_Store
100644 → 100755
Empty file.
Empty file modified admin/FCMsetup.php
100644 → 100755
Empty file.
Empty file modified admin/actions.php
100644 → 100755
Empty file.
Empty file modified admin/addcourse.php
100644 → 100755
Empty file.
Empty file modified admin/addremoveteachers.php
100644 → 100755
Empty file.
Empty file modified admin/admin.php
100644 → 100755
Empty file.
Empty file modified admin/admin2.php
100644 → 100755
Empty file.
Empty file modified admin/approvepending.php
100644 → 100755
Empty file.
Empty file modified admin/approvepending2.php
100644 → 100755
Empty file.
Empty file modified admin/bbexport-generate.php
100644 → 100755
Empty file.
Empty file modified admin/bbexport-templates.php
100644 → 100755
Empty file.
Empty file modified admin/calendarfeed.php
100644 → 100755
Empty file.
Empty file modified admin/canvascalexport.php
100644 → 100755
Empty file.
16 changes: 8 additions & 8 deletions admin/ccexport-generate.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ function getorg($it,$parent,&$res,$ind,$mod_depth) {
$row = $stm->fetch(PDO::FETCH_NUM);
if ($row[8]==-1) {
require_once("../includes/updateptsposs.php");
$row[8] = updatePointsPossible($iteminfo[$item][1], $row[3], $row[2]);
$row[8] = updatePointsPossible($iteminfo[$item][1], $row[3], $row[2]);
}
//echo "encoding {$row[0]} as ".htmlentities($row[0],ENT_XML1,'UTF-8',false).'<br/>';
$out .= $ind.'<item identifier="'.$iteminfo[$item][0].$iteminfo[$item][1].'" identifierref="RES'.$iteminfo[$item][0].$iteminfo[$item][1].'">'."\n";
Expand Down Expand Up @@ -430,7 +430,7 @@ function getorg($it,$parent,&$res,$ind,$mod_depth) {
$aitemcnt[$k] = 1;
}
}

mkdir($newdir.'/assn'.$iteminfo[$item][1]);
$fp = fopen($newdir.'/assn'.$iteminfo[$item][1].'/assignment_settings.xml','w');
fwrite($fp,'<assignment xmlns="http://canvas.instructure.com/xsd/cccv1p0" identifier="RES'.$iteminfo[$item][0].$iteminfo[$item][1].'" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://canvas.instructure.com/xsd/cccv1p0 http://canvas.instructure.com/xsd/cccv1p0.xsd">'."\n");
Expand Down Expand Up @@ -604,7 +604,7 @@ function getorg($it,$parent,&$res,$ind,$mod_depth) {
mkdir($newdir.'/non_cc_assessments');
mkdir($newdir.'/course_settings');
file_put_contents($newdir.'/course_settings/canvas_export.txt', "Q: Why do pandas prefer Cartesian coordinates? A: Because they're not polar bears");

$fp = fopen($newdir.'/course_settings/assignment_groups.xml','w');
fwrite($fp,'<?xml version="1.0" encoding="UTF-8"?>'."\n");
fwrite($fp, '<assignmentGroups xsi:schemaLocation="http://canvas.instructure.com/xsd/cccv1p0 http://canvas.instructure.com/xsd/cccv1p0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://canvas.instructure.com/xsd/cccv1p0">'."\n");
Expand Down Expand Up @@ -639,9 +639,9 @@ function getorg($it,$parent,&$res,$ind,$mod_depth) {
}
fwrite($fp, '</course>');
fclose($fp);

if (dir_is_empty($newdir.'/web_resources')) {
rmdir($newdir.'/web_resources');
rmdir($newdir.'/web_resources');
}
}

Expand Down Expand Up @@ -749,10 +749,10 @@ function rrmdir($path) {
$archive_file_name = 'CCEXPORT'.$cid.'.imscc';
//echo "<br/><a href=\"$imasroot/course/files/CCEXPORT$cid.imscc\">Download</a><br/>";
//echo "Once downloaded, keep things clean and <a href=\"ccexport.php?cid=$cid&delete=true\">Delete</a> the export file off the server.";
header("Content-type: application/vnd.ims.imsccv1p1");
header("Content-type: application/vnd.ims.imsccv1p1");
header("Content-Disposition: attachment; filename=$archive_file_name");
header("Content-length: " . filesize($path.'/'.$archive_file_name));
header("Pragma: no-cache");
header("Expires: 0");
header("Pragma: no-cache");
header("Expires: 0");
readfile($path.'/'.$archive_file_name);
unlink($path.'/'.$archive_file_name);
Empty file modified admin/ccexport.php
100644 → 100755
Empty file.
Empty file modified admin/coursebrowser.css
100644 → 100755
Empty file.
Empty file modified admin/coursebrowser.php
100644 → 100755
Empty file.
Empty file modified admin/diagonetime.php
100644 → 100755
Empty file.
Empty file modified admin/diagsetup.php
100644 → 100755
Empty file.
Empty file modified admin/exportitems.php
100644 → 100755
Empty file.
Empty file modified admin/exportitems2.php
100644 → 100755
Empty file.
Empty file modified admin/exportlib.php
100644 → 100755
Empty file.
Empty file modified admin/externaltools.php
100644 → 100755
Empty file.
Empty file modified admin/federatedapi.php
100644 → 100755
Empty file.
Empty file modified admin/federationpull.php
100644 → 100755
Empty file.
Empty file modified admin/forms.php
100644 → 100755
Empty file.
Empty file modified admin/hidefromcourselist.php
100644 → 100755
Empty file.
Empty file modified admin/import/.htaccess
100644 → 100755
Empty file.
Binary file added admin/import/webworksets.zip
Binary file not shown.
Empty file modified admin/importitems.php
100644 → 100755
Empty file.
Empty file modified admin/importitems2.php
100644 → 100755
Empty file.
Empty file modified admin/importitemsfuncs.php
100644 → 100755
Empty file.
Empty file modified admin/importlib.php
100644 → 100755
Empty file.
Empty file modified admin/importstu.php
100644 → 100755
Empty file.
Empty file modified admin/itemexportfields.php
100644 → 100755
Empty file.
Empty file modified admin/jsonexport.php
100644 → 100755
Empty file.
Empty file modified admin/listdiag.php
100644 → 100755
Empty file.
Empty file modified admin/ltioutcomeservice.php
100644 → 100755
Empty file.
Empty file modified admin/ltiuserprefs.php
100644 → 100755
Empty file.
Empty file modified admin/modcourseorder.php
100644 → 100755
Empty file.
Empty file modified admin/processltiqueue.php
100644 → 100755
Empty file.
Empty file modified admin/pushoutchg.php
100644 → 100755
Empty file.
Empty file modified admin/transfercourse.php
100644 → 100755
Empty file.
Empty file modified admin/unhidefromcourselist.php
100644 → 100755
Empty file.
Empty file modified admin/unittests.php
100644 → 100755
Empty file.
Empty file modified admin/userdetails.php
100644 → 100755
Empty file.
Empty file modified admin/userlti.php
100644 → 100755
Empty file.
Empty file modified assessment/asidutil.php
100644 → 100755
Empty file.
Empty file modified assessment/catscores.php
100644 → 100755
Empty file.
Empty file modified assessment/checkint.php
100644 → 100755
Empty file.
Empty file modified assessment/displayq2.php
100644 → 100755
Empty file.
Empty file modified assessment/eqnhelper.html
100644 → 100755
Empty file.
Empty file modified assessment/eqnhelperbasic.html
100644 → 100755
Empty file.
Empty file modified assessment/font/Symbola.eot
100644 → 100755
Empty file.
Empty file modified assessment/font/Symbola.otf
100644 → 100755
Empty file.
Empty file modified assessment/font/Symbola.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assessment/font/Symbola.ttf
100644 → 100755
Empty file.
Empty file modified assessment/font/Symbola.woff
100644 → 100755
Empty file.
Empty file modified assessment/font/Symbola2.eot
100644 → 100755
Empty file.
Empty file modified assessment/font/Symbola2.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assessment/font/Symbola2.ttf
100644 → 100755
Empty file.
Empty file modified assessment/font/Symbola2.woff
100644 → 100755
Empty file.
Empty file modified assessment/header.php
100644 → 100755
Empty file.
Empty file modified assessment/interpret5.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/JSXG.html
100644 → 100755
Empty file.
Empty file modified assessment/libs/JSXG.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/Viewer.class
100644 → 100755
Empty file.
Empty file modified assessment/libs/acct.html
100644 → 100755
Empty file.
Empty file modified assessment/libs/acct.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/calculus.html
100644 → 100755
Empty file.
Empty file modified assessment/libs/calculus.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/chemistry.html
100644 → 100755
Empty file.
Empty file modified assessment/libs/chemistry.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/chgbase.html
100644 → 100755
Empty file.
Empty file modified assessment/libs/chgbase.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/construct2.html
100644 → 100755
Empty file.
Empty file modified assessment/libs/construct2.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/crypto.html
100644 → 100755
Empty file.
Empty file modified assessment/libs/crypto.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/expressInstall.swf
100644 → 100755
Empty file.
Empty file modified assessment/libs/finance.html
100644 → 100755
Empty file.
Empty file modified assessment/libs/finance.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/fractions.html
100644 → 100755
Empty file.
Empty file modified assessment/libs/fractions.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/functioneval.html
100644 → 100755
Empty file.
Empty file modified assessment/libs/functioneval.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/geogebra.html
100644 → 100755
Empty file.
Empty file modified assessment/libs/geogebra.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/geom.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/graphtheory.html
100644 → 100755
Empty file.
Empty file modified assessment/libs/graphtheory.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/ineq.html
100644 → 100755
Empty file.
Empty file modified assessment/libs/ineq.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/interval.html
100644 → 100755
Empty file.
Empty file modified assessment/libs/interval.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/interval_ext.html
100644 → 100755
Empty file.
Empty file modified assessment/libs/interval_ext.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/libhelp.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/lineutil.html
100644 → 100755
Empty file.
Empty file modified assessment/libs/lineutil.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/matrix.html
100644 → 100755
Empty file.
Empty file modified assessment/libs/matrix.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/normalcurve.html
100644 → 100755
Empty file.
Empty file modified assessment/libs/normalcurve.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/plot3d.html
100644 → 100755
Empty file.
Empty file modified assessment/libs/plot3d.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/poly3.html
100644 → 100755
Empty file.
Empty file modified assessment/libs/poly3.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/polys.html
100644 → 100755
Empty file.
Empty file modified assessment/libs/polys.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/polys2.html
100644 → 100755
Empty file.
Empty file modified assessment/libs/polys2.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/primes.html
100644 → 100755
Empty file.
Empty file modified assessment/libs/primes.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/radicals.html
100644 → 100755
Empty file.
Empty file modified assessment/libs/radicals.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/sagecell.html
100644 → 100755
Empty file.
Empty file modified assessment/libs/sagecell.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/sagecellframe.html
100644 → 100755
Empty file.
Empty file modified assessment/libs/simplex.html
100644 → 100755
Empty file.
Empty file modified assessment/libs/simplex.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/socchoice.html
100644 → 100755
Empty file.
Empty file modified assessment/libs/socchoice.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/solvers.html
100644 → 100755
Empty file.
Empty file modified assessment/libs/solvers.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/stats.html
100644 → 100755
Empty file.
Empty file modified assessment/libs/stats.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/timedate.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/vector.html
100644 → 100755
Empty file.
Empty file modified assessment/libs/vector.php
100644 → 100755
Empty file.
Empty file modified assessment/libs/viewer3d.swf
100644 → 100755
Empty file.
Empty file modified assessment/libs/virtmanip.html
100644 → 100755
Empty file.
Empty file modified assessment/libs/virtmanip.php
100644 → 100755
Empty file.
Empty file modified assessment/macros.php
100644 → 100755
Empty file.
Empty file modified assessment/mathphp2.php
100644 → 100755
Empty file.
Empty file modified assessment/mathquill.css
100644 → 100755
Empty file.
Empty file modified assessment/mathquilled.html
100644 → 100755
Empty file.
16 changes: 8 additions & 8 deletions assessment/mathtest.css
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ div.spacer {

div.navbar {
float: left;
width:120px;
max-width: 190px;
padding:10px;
margin-top:0px;
background-color: #e0ffe0;
Expand Down Expand Up @@ -210,18 +210,18 @@ table.p3longdiv td.right {
padding: 0px;
}
table.p3longdiv td.bottomborder {
border-bottom:1px solid black;
text-align: right;
border-bottom:1px solid black;
text-align: right;
padding: 0px;
}
table.p3longdiv td.topborder {
border-top:1px solid black;
text-align: right;
border-top:1px solid black;
text-align: right;
padding: 0px;
}
table.p3longdiv td.topleftborder {
table.p3longdiv td.topleftborder {
border-left: 1px solid black;
border-top: 1px solid black;
border-top: 1px solid black;
text-align: right;
padding: 0px;
}
Expand Down Expand Up @@ -973,7 +973,7 @@ a[rel*=noopener]:after {
.mce-content-body a[target=_blank]:after {
display: none;
}
.mce-content-body span.AMedit {border: 1px solid #ff0000;}
.mce-content-body span.AMedit {border: 1px solid #ff0000;}
.clearfix:after {
content: " ";
display: block;
Expand Down
Empty file modified assessment/print.css
100644 → 100755
Empty file.
Empty file modified assessment/printtest.php
100644 → 100755
Empty file.
Empty file modified assessment/qimages/Thumbs.db
100644 → 100755
Empty file.
Empty file modified assessment/showsoln.php
100644 → 100755
Empty file.
Loading