TOKEN ); echo template('dialog_password',$array); } if ($mode=='view'){ # Add shares from others users $shared_with=load_folder_share(); if (!empty($shared_with[$_SESSION['login']])){ $shared_folders.= '
'; $saveshare=false; foreach($shared_with[$_SESSION['login']] as $id=>$data){ if (is_dir($data['folder'])&&!empty($ids[$id])){ $folder=_basename($data['folder']); $array=array( '#CLASS' => 'shared_folder', '#ID' => $id, '#FICHIER' => $folder, '#TOKEN' => TOKEN, '#NAME' => $folder, '#FROM' => $data['from'], ); $shared_folders.= template($mode.'_shared_folder_'.$layout,$array); }else{ # remove obsolete shared IDs unset($shared_with[$_SESSION['login']][$id]); $saveshare=true; } } $shared_folders.= '
'; save_folder_share($shared_with); } # Prepare folder tree for move dialog box $select_folder=''; # Add move dialogbox to the page $array=array( '#LIST_FILES_SELECT' => $select_folder, '#TOKEN' => TOKEN, ); $dia=str_replace('#LIST_FILES_SELECT',$select_folder,$templates['dialog_move']); $dia=str_replace('#TOKEN',TOKEN,$dia); echo $dia; } ?>
/ 1){unset($previous_path[$nb_folders-1]);$previous_path = implode('/',$previous_path);} elseif($nb_folders=1&&!empty($previous_path[0])){$previous_path='/';} else{$previous_path='';} $chemin=''; foreach($ariane as $nb=>$folder){ if (!empty($folder)){ $chemin.=$folder; echo ''.$folder.''; $chemin.='/'; } } if (!empty($previous_path)&&$show_back_button){ $back_button=''; $back_link=' . .. '; echo $back_button; } ?>
'.e('Filter:',false).' '.$_SESSION['filter'].'

'; } ?>