@ -455,7 +455,7 @@ foreach($courses_id_full_table_prefix_list as $course_code => $db)
if(empty($my_new_lp_item_id)){
//this can be ignored safely as it just means a user used a learnpath_item
//before it was removed from items - maybe fix that in Dokeos?
//echo "Somehow we miss lp_items[".$learnpath_id."][".$row['learnpath_item_id']."] here...<br/>";
//echo "Somehow we miss lp_items[".$learnpath_id."][".$row['learnpath_item_id']."] here...<br/>";
$incoherences ++;
}else{
$start_time = 0;
@ -532,7 +532,7 @@ foreach($courses_id_full_table_prefix_list as $course_code => $db)
//make sure there is a way of retrieving which links were updated (to revert)
fwrite($fh,$sql_tool_upd." AND link ='$link'");
fwrite($fh_revert,"UPDATE $tbl_tool SET link='$link' WHERE id=".$row_tool['id']." AND link ='newscorm/lp_controller.php?action=view&lp_id=$new_lp_id';\n");
//echo "No scorm link found in tool link $link<br/>";
//echo "No scorm link found in tool link $link<br/>";
}
//flush();
}
@ -586,9 +586,9 @@ foreach($courses_id_full_table_prefix_list as $course_code => $db)
}
}
if($intrp != $row_i['intro_text']){
//echo "<pre>Replacing ".$row_i['intro_text']."\n by \n ".$intro."</pre><br/>\n";
//echo "<pre>Replacing ".$row_i['intro_text']."\n by \n ".$intro."</pre><br/>\n";
$sql_upd = "update $tbl_intro set intro_text = '".mysql_real_escape_string($intro)."' WHERE id = 'course_homepage' AND intro_text = '".mysql_real_escape_string($row_i['intro_text'])."'";
//echo $sql_upd."<br/>\n";
//echo $sql_upd."<br/>\n";
fwrite($fh,"$sql_upd\n");
fwrite($fh_revert,"UPDATE $tbl_intro set intro_text = '".$row_i['intro_text']."' WHERE id = 'course_homepage' AND intro_text = '$intro';\n");
//echo " Didn't find corresponding item for $my_identifier in new tables<br/>\n";
//echo " Didn't find corresponding item for $my_identifier in new tables<br/>\n";
}
}
}
@ -1028,7 +1028,7 @@ foreach($scorms as $my_course_code => $paths_list )
if($loglevel>1){error_log("!!! imsmanifest file not found at ".$scorm_lp_paths[$my_content_id]['ims'].' for old lp '.$my_content_id.' and new '.$lp_ids[$my_content_id],0);}
//echo "<pre>Replacing ".$row_i['intro_text']."\n by \n ".$intro."</pre><br/>\n";
//echo "<pre>Replacing ".$row_i['intro_text']."\n by \n ".$intro."</pre><br/>\n";
$sql_upd = "update $tbl_intro set intro_text = '".mysql_real_escape_string($intro)."' WHERE id = 'course_homepage' AND intro_text = '".mysql_real_escape_string($row_i['intro_text'])."'";
//echo $sql_upd."<br/>\n";
//echo $sql_upd."<br/>\n";
fwrite($fh,$sql_upd."\n");
fwrite($fh_revert,"UPDATE $tbl_intro set intro_text = '".$row_i['intro_text']."' WHERE id = 'course_homepage' AND intro_text = '$intro';\n");
<fontcolor="red"><b>Warning:</b> You have more than <?phpechoMAX_COURSE_TRANSFER;?> courses on your Dokeos platform ! Only <?phpechoMAX_COURSE_TRANSFER;?> courses have been updated. To update the other courses, <ahref="update_courses.php?update_path=<?phpechourlencode($updatePath);?>"><fontcolor="red">click here</font></a>.</font>
<fontcolor="red"><strong>Warning:</strong> You have more than <?phpechoMAX_COURSE_TRANSFER;?> courses on your Dokeos platform ! Only <?phpechoMAX_COURSE_TRANSFER;?> courses have been updated. To update the other courses, <ahref="update_courses.php?update_path=<?phpechourlencode($updatePath);?>"><fontcolor="red">click here</font></a>.</font>
<?phpelse:?>
<br/><br/>
<?phpendif;?>
@ -169,7 +169,7 @@ else
Please enter the path where the older version of Dokeos is installed (<?phpechoimplode(' | ',$update_from_version);?>). The courses will be moved from that location to the Dokeos path.
<br/><br/>
<b>Notice:</b> Please run this update script only if you've just updated (incompletely) Dokeos <?phpechoimplode(' | ',$update_from_version);?> to Dokeos <?phpecho$dokeos_version;?>!
<strong>Notice:</strong> Please run this update script only if you've just updated (incompletely) Dokeos <?phpechoimplode(' | ',$update_from_version);?> to Dokeos <?phpecho$dokeos_version;?>!
@ -134,7 +134,7 @@ class Page_Requirements extends HTML_QuickForm_Page
}
else
{
return '<li><b>'.$extentionName.'</b><fontcolor="red">is missing (Dokeos can work without)</font> (<ahref="http://www.php.net/'.$extentionName.'"target="_blank">'.$extentionName.'</a>)</li>';
return '<li><strong>'.$extentionName.'</strong><fontcolor="red">is missing (Dokeos can work without)</font> (<ahref="http://www.php.net/'.$extentionName.'"target="_blank">'.$extentionName.'</a>)</li>';
}
}
function get_not_writable_folders()
@ -179,7 +179,7 @@ class Page_Requirements extends HTML_QuickForm_Page