Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bug fix filehandler include in course delete

bug fix spaces around Union in calcinterval
Bug fix block selecting copyitems 
Bug fix IE6 table header layout issue

git-svn-id: http://imathas.googlecode.com/svn/trunk@646 c89b4f0b-ac2a-0410-9773-c9071ee4f95d
  • Loading branch information...
commit 2eebf7ec94ae38e112be8bb63eb427bc49e0f019 1 parent ab1e461
drlippman authored
View
6 admin/actions.php
@@ -58,7 +58,7 @@
mysql_query($query) or die("Query failed : $query " . mysql_error());
//todo: delete user picture files
//todo: delete user file uploads
- require("../includes/filehandler.php");
+ require_once("../includes/filehandler.php");
deletealluserfiles($_GET['id']);
//todo: delete courses if any
break;
@@ -254,8 +254,8 @@
$query = "SELECT id FROM imas_assessments WHERE courseid='{$_GET['id']}'";
$result = mysql_query($query) or die("Query failed : " . mysql_error());
+ require_once("../includes/filehandler.php");
while ($line = mysql_fetch_row($result)) {
- require("../includes/filehandler.php");
deleteallaidfiles($line[0]);
$query = "DELETE FROM imas_questions WHERE assessmentid='{$line[0]}'";
mysql_query($query) or die("Query failed : " . mysql_error());
@@ -492,7 +492,7 @@
if ($myrights <100) { echo "You don't have the authority for this action"; break;}
$old = time() - 60*60*24*30*$_POST['months'];
$who = $_POST['who'];
- require("../includes/filehandler.php");
+ require_once("../includes/filehandler.php");
if ($who=="students") {
$query = "SELECT id FROM imas_users WHERE lastaccess<$old AND (rights=0 OR rights=10)";
$result = mysql_query($query) or die("Query failed : " . mysql_error());
View
1  assessment/displayq2.php
@@ -2572,6 +2572,7 @@ function scorepart($anstype,$qn,$givenans,$options,$multi) {
}
$orarr = explode('U',$_POST["tc$qn"]);
foreach ($orarr as $opt) {
+ $opt = trim($opt);
$opts = explode(',',substr($opt,1,strlen($opt)-2));
if (strpos($opts[0],'oo')===false && !checkanswerformat($opts[0],$ansformats)) {
return 0;
View
2  course/copyitems.php
@@ -315,7 +315,7 @@ function chkgrp(frm, arr, mark) {
var els = frm.getElementsByTagName("input");
for (var i = 0; i < els.length; i++) {
var el = els[i];
- if (el.type=='checkbox' && el.id.indexOf(arr)==0) {
+ if (el.type=='checkbox' && (el.id.indexOf(arr+'.')==0 || el.id.indexOf(arr+'-')==0 || el.id==arr)) {
el.checked = mark;
}
}
View
2  header.php
@@ -4,7 +4,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title><?php echo $installname; if (isset($pagetitle)) { echo " - $pagetitle";}?></title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
-<link rel="stylesheet" href="<?php echo $imasroot . "/imascore.css?ver=022810";?>" type="text/css" />
+<link rel="stylesheet" href="<?php echo $imasroot . "/imascore.css?ver=061010";?>" type="text/css" />
<?php if (isset($coursetheme)) {
if (isset($flexwidth)) {
$coursetheme = str_replace('_fw','',$coursetheme);
View
1  imascore.css
@@ -119,6 +119,7 @@ div#tbl-container {
table.gb {
border-collapse: collapse;
margin: 0px;
+ position:relative;
}
table.gb thead th {
Please sign in to comment.
Something went wrong with that request. Please try again.