@ -1,4 +1,4 @@
<?php //$Id: work.php 20209 2009-04-30 00:11:19 Z cvargas1 $
<?php //$Id: work.php 20227 2009-04-30 16:40:35 Z cvargas1 $
/* For licensing terms, see /dokeos_license.txt */
/**
* @package dokeos.work
@ -6,7 +6,7 @@
* @author Patrick Cool < patrick.cool @ UGent . be > , Ghent University - ability for course admins to specify wether uploaded documents are visible or invisible by default.
* @author Roan Embrechts, code refactoring and virtual course support
* @author Frederic Vauthier, directories management
* @version $Id: work.php 20209 2009-04-30 00:11:19 Z cvargas1 $
* @version $Id: work.php 20227 2009-04-30 16:40:35 Z cvargas1 $
*
* @todo refactor more code into functions, use quickforms, coding standards, ...
*/
@ -249,7 +249,7 @@ if(isset($_GET['action']) && $_GET['action']=="downloadfolder")
*/
if (isset ($_GET['gradebook']) & & $_GET['gradebook']='view' ) {
if (!empty ($_GET['gradebook']) & & $_GET['gradebook']='view' ) {
$_SESSION['gradebook']=Security::remove_XSS($_GET['gradebook']);
$gradebook= $_SESSION['gradebook'];
} elseif (empty($_GET['gradebook'])) {
@ -278,13 +278,13 @@ if (!empty($_SESSION['toolgroup'])){
//------interbreadcrumb for the current directory root path
$dir_array = explode("/", $cur_dir_path);
$array_len = count($dir_array);
/*
if ($array_len > 0) {
$url_dir = 'work.php?&curdirpath=/';
$interbreadcrumb[] = array (
'url' => $url_dir,
'name' => get_lang('HomeDirectory'));
}
}*/
$dir_acum = '';
for ($i = 0; $i < $array_len; $i++) {
@ -323,23 +323,23 @@ if (!empty($_SESSION['toolgroup'])){
if (isset($origin) & & $origin != 'learnpath') {
$url_dir ='';
$interbreadcrumb[] = array ('url' => $url_dir,'name' => get_lang('StudentPublications'));
$interbreadcrumb[] = array ('url' => $url_dir.'?gradebook='.$gradebook ,'name' => get_lang('StudentPublications'));
//if (!$display_tool_options & & !$display_upload_form)
//{
//------interbreadcrumb for the current directory root path
$dir_array = explode("/", $cur_dir_path);
$array_len = count($dir_array);
if ($array_len > 0) {
$url_dir = 'work.php?&curdirpath=/';
/* if ($array_len > 0) {
$url_dir = 'work.php?gradebook='.$gradebook.' &curdirpath=/';
$interbreadcrumb[] = array (
'url' => $url_dir,
'name' => get_lang('HomeDirectory'));
}
}*/
$dir_acum = '';
for ($i = 0; $i < $array_len; $i++) {
$url_dir = 'work.php?& curdirpath=' . $dir_acum . $dir_array[$i];
$url_dir = 'work.php?gradebook='.$gradebook.' & curdirpath=' . $dir_acum . $dir_array[$i];
$interbreadcrumb[] = array (
'url' => $url_dir,
'name' => $dir_array[$i]
@ -350,19 +350,19 @@ if (!empty($_SESSION['toolgroup'])){
if ($display_upload_form) {
$interbreadcrumb[] = array (
"url" => "work.php",
"url" => "work.php?gradebook=$gradebook ",
"name" => get_lang('UploadADocument'));
}
if ($display_tool_options) {
$interbreadcrumb[] = array (
"url" => "work.php",
"url" => "work.php?gradebook=$gradebook ",
"name" => get_lang('EditToolOptions'));
}
if ($_GET['createdir'] == 1)
{
$interbreadcrumb[] = array (
"url" => "work.php",
"url" => "work.php?gradebook=$gradebook ",
"name" => get_lang('CreateDir'));
}