Conflicts: apps/files/js/filelist.js core/js/js.js lib/ocs.phpremotes/origin/stable5
commit
bf1057143c
@ -1 +0,0 @@ |
||||
|
@ -1 +1 @@ |
||||
1.1.5 |
||||
1.1.6 |
||||
|
@ -0,0 +1,59 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"There is no error, the file uploaded with success" => "No se han producido errores, el archivo se ha subido con éxito", |
||||
"The uploaded file exceeds the upload_max_filesize directive in php.ini" => "El archivo que intentás subir sobrepasa el tamaño definido por la variable upload_max_filesize en php.ini", |
||||
"The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form" => "El archivo que intentás subir sobrepasa el tamaño definido por la variable MAX_FILE_SIZE especificada en el formulario HTML", |
||||
"The uploaded file was only partially uploaded" => "El archivo que intentás subir solo se subió parcialmente", |
||||
"No file was uploaded" => "El archivo no fue subido", |
||||
"Missing a temporary folder" => "Falta un directorio temporal", |
||||
"Failed to write to disk" => "La escritura en disco falló", |
||||
"Files" => "Archivos", |
||||
"Unshare" => "Dejar de compartir", |
||||
"Delete" => "Borrar", |
||||
"Rename" => "cambiar nombre", |
||||
"already exists" => "ya existe", |
||||
"replace" => "reemplazar", |
||||
"suggest name" => "sugerir nombre", |
||||
"cancel" => "cancelar", |
||||
"replaced" => "reemplazado", |
||||
"undo" => "deshacer", |
||||
"with" => "con", |
||||
"unshared" => "no compartido", |
||||
"deleted" => "borrado", |
||||
"generating ZIP-file, it may take some time." => "generando un archivo ZIP, puede llevar un tiempo.", |
||||
"Unable to upload your file as it is a directory or has 0 bytes" => "No fue posible subir tu archivo porque es un directorio o su tamaño es 0 bytes", |
||||
"Upload Error" => "Error al subir el archivo", |
||||
"Pending" => "Pendiente", |
||||
"Upload cancelled." => "La subida fue cancelada", |
||||
"File upload is in progress. Leaving the page now will cancel the upload." => "La subida del archivo está en proceso. Si salís de la página ahora, la subida se cancelará.", |
||||
"Invalid name, '/' is not allowed." => "Nombre no válido, '/' no está permitido.", |
||||
"files scanned" => "archivos escaneados", |
||||
"error while scanning" => "error mientras se escaneaba", |
||||
"Name" => "Nombre", |
||||
"Size" => "Tamaño", |
||||
"Modified" => "Modificado", |
||||
"folder" => "carpeta", |
||||
"folders" => "carpetas", |
||||
"file" => "archivo", |
||||
"files" => "archivos", |
||||
"File handling" => "Tratamiento de archivos", |
||||
"Maximum upload size" => "Tamaño máximo de subida", |
||||
"max. possible: " => "máx. posible:", |
||||
"Needed for multi-file and folder downloads." => "Se necesita para descargas multi-archivo y de carpetas", |
||||
"Enable ZIP-download" => "Habilitar descarga en formato ZIP", |
||||
"0 is unlimited" => "0 significa ilimitado", |
||||
"Maximum input size for ZIP files" => "Tamaño máximo para archivos ZIP de entrada", |
||||
"Save" => "Guardar", |
||||
"New" => "Nuevo", |
||||
"Text file" => "Archivo de texto", |
||||
"Folder" => "Carpeta", |
||||
"From url" => "Desde la URL", |
||||
"Upload" => "Subir", |
||||
"Cancel upload" => "Cancelar subida", |
||||
"Nothing in here. Upload something!" => "Aquí no hay nada. ¡Subí contenido!", |
||||
"Share" => "Compartir", |
||||
"Download" => "Descargar", |
||||
"Upload too large" => "El archivo es demasiado grande", |
||||
"The files you are trying to upload exceed the maximum size for file uploads on this server." => "Los archivos que intentás subir sobrepasan el tamaño máximo ", |
||||
"Files are being scanned, please wait." => "Se están escaneando los archivos, por favor espere.", |
||||
"Current scanning" => "Escaneo actual" |
||||
); |
@ -0,0 +1,56 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"There is no error, the file uploaded with success" => "Ошибка отсутствует, файл загружен успешно.", |
||||
"The uploaded file exceeds the upload_max_filesize directive in php.ini" => "Размер загруженного файла превышает заданный в директиве upload_max_filesize в php.ini", |
||||
"The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form" => "Размер загруженного", |
||||
"The uploaded file was only partially uploaded" => "Загружаемый файл был загружен частично", |
||||
"No file was uploaded" => "Файл не был загружен", |
||||
"Missing a temporary folder" => "Отсутствует временная папка", |
||||
"Failed to write to disk" => "Не удалось записать на диск", |
||||
"Files" => "Файлы", |
||||
"Unshare" => "Скрыть", |
||||
"Delete" => "Удалить", |
||||
"already exists" => "уже существует", |
||||
"replace" => "отмена", |
||||
"suggest name" => "подобрать название", |
||||
"cancel" => "отменить", |
||||
"replaced" => "заменено", |
||||
"undo" => "отменить действие", |
||||
"with" => "с", |
||||
"unshared" => "скрытый", |
||||
"deleted" => "удалено", |
||||
"generating ZIP-file, it may take some time." => "Создание ZIP-файла, это может занять некоторое время.", |
||||
"Unable to upload your file as it is a directory or has 0 bytes" => "Невозможно загрузить файл,\n так как он имеет нулевой размер или является директорией", |
||||
"Upload Error" => "Ошибка загрузки", |
||||
"Pending" => "Ожидающий решения", |
||||
"Upload cancelled." => "Загрузка отменена", |
||||
"File upload is in progress. Leaving the page now will cancel the upload." => "Процесс загрузки файла. Если покинуть страницу сейчас, загрузка будет отменена.", |
||||
"Invalid name, '/' is not allowed." => "Неправильное имя, '/' не допускается.", |
||||
"Name" => "Имя", |
||||
"Size" => "Размер", |
||||
"Modified" => "Изменен", |
||||
"folder" => "папка", |
||||
"folders" => "папки", |
||||
"file" => "файл", |
||||
"files" => "файлы", |
||||
"File handling" => "Работа с файлами", |
||||
"Maximum upload size" => "Максимальный размер загружаемого файла", |
||||
"max. possible: " => "Максимально возможный", |
||||
"Needed for multi-file and folder downloads." => "Необходимо для множественной загрузки.", |
||||
"Enable ZIP-download" => "Включение ZIP-загрузки", |
||||
"0 is unlimited" => "0 без ограничений", |
||||
"Maximum input size for ZIP files" => "Максимальный размер входящих ZIP-файлов ", |
||||
"Save" => "Сохранить", |
||||
"New" => "Новый", |
||||
"Text file" => "Текстовый файл", |
||||
"Folder" => "Папка", |
||||
"From url" => "Из url", |
||||
"Upload" => "Загрузить ", |
||||
"Cancel upload" => "Отмена загрузки", |
||||
"Nothing in here. Upload something!" => "Здесь ничего нет. Загрузите что-нибудь!", |
||||
"Share" => "Сделать общим", |
||||
"Download" => "Загрузить", |
||||
"Upload too large" => "Загрузка слишком велика", |
||||
"The files you are trying to upload exceed the maximum size for file uploads on this server." => "Размер файлов, которые Вы пытаетесь загрузить, превышает максимально допустимый размер для загрузки на данный сервер.", |
||||
"Files are being scanned, please wait." => "Файлы сканируются, пожалуйста, подождите.", |
||||
"Current scanning" => "Текущее сканирование" |
||||
); |
@ -0,0 +1,6 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Encryption" => "Kryptering", |
||||
"Exclude the following file types from encryption" => "Ekskluder følgende filtyper fra kryptering", |
||||
"None" => "Ingen", |
||||
"Enable Encryption" => "Aktivér kryptering" |
||||
); |
@ -0,0 +1,6 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Encryption" => "Encriptación", |
||||
"Exclude the following file types from encryption" => "Exceptuar de la encriptación los siguientes tipos de archivo", |
||||
"None" => "Ninguno", |
||||
"Enable Encryption" => "Habilitar encriptación" |
||||
); |
@ -0,0 +1,6 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Encryption" => "Encriptado", |
||||
"Exclude the following file types from encryption" => "Excluír os seguintes tipos de ficheiro da encriptación", |
||||
"None" => "Nada", |
||||
"Enable Encryption" => "Habilitar encriptación" |
||||
); |
@ -0,0 +1,6 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Encryption" => "Criptografia", |
||||
"Exclude the following file types from encryption" => "Excluir os seguintes tipos de arquivo da criptografia", |
||||
"None" => "Nenhuma", |
||||
"Enable Encryption" => "Habilitar Criptografia" |
||||
); |
@ -0,0 +1,6 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Encryption" => "Encriptação", |
||||
"Exclude the following file types from encryption" => "Excluir da encriptação os seguintes tipo de ficheiros", |
||||
"None" => "Nenhum", |
||||
"Enable Encryption" => "Activar Encriptação" |
||||
); |
@ -0,0 +1,6 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Encryption" => "Încriptare", |
||||
"Exclude the following file types from encryption" => "Exclude următoarele tipuri de fișiere de la încriptare", |
||||
"None" => "Niciuna", |
||||
"Enable Encryption" => "Activare încriptare" |
||||
); |
@ -0,0 +1,6 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Encryption" => "Шифрование", |
||||
"Exclude the following file types from encryption" => "Исключите следующие типы файлов из шифрования", |
||||
"None" => "Ни один", |
||||
"Enable Encryption" => "Включить шифрование" |
||||
); |
@ -0,0 +1,6 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Encryption" => "Mã hóa", |
||||
"Exclude the following file types from encryption" => "Loại trừ các loại tập tin sau đây từ mã hóa", |
||||
"None" => "none", |
||||
"Enable Encryption" => "BẬT mã hóa" |
||||
); |
@ -0,0 +1,6 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Encryption" => "加密", |
||||
"Exclude the following file types from encryption" => "从加密中排除如下文件类型", |
||||
"None" => "无", |
||||
"Enable Encryption" => "启用加密" |
||||
); |
@ -1,5 +1,6 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Encryption" => "加密", |
||||
"Exclude the following file types from encryption" => "从加密中排除列出的文件类型", |
||||
"None" => "None", |
||||
"Enable Encryption" => "开启加密" |
||||
); |
||||
|
@ -0,0 +1,18 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"External Storage" => "Ekstern opbevaring", |
||||
"Mount point" => "Monteringspunkt", |
||||
"Backend" => "Backend", |
||||
"Configuration" => "Opsætning", |
||||
"Options" => "Valgmuligheder", |
||||
"Applicable" => "Kan anvendes", |
||||
"Add mount point" => "Tilføj monteringspunkt", |
||||
"None set" => "Ingen sat", |
||||
"All Users" => "Alle brugere", |
||||
"Groups" => "Grupper", |
||||
"Users" => "Brugere", |
||||
"Delete" => "Slet", |
||||
"Enable User External Storage" => "Aktiver ekstern opbevaring for brugere", |
||||
"Allow users to mount their own external storage" => "Tillad brugere at montere deres egne eksterne opbevaring", |
||||
"SSL root certificates" => "SSL-rodcertifikater", |
||||
"Import Root Certificate" => "Importer rodcertifikat" |
||||
); |
@ -1,10 +1,18 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"External Storage" => "Εξωτερική αποθήκευση", |
||||
"External Storage" => "Εξωτερικό Αποθηκευτικό Μέσο", |
||||
"Mount point" => "Σημείο προσάρτησης", |
||||
"Backend" => "Σύστημα υποστήριξης", |
||||
"Configuration" => "Ρυθμίσεις", |
||||
"Options" => "Επιλογές", |
||||
"Applicable" => "Εφαρμόσιμο", |
||||
"Add mount point" => "Προσθήκη σημείου προσάρτησης", |
||||
"None set" => "Κανένα επιλεγμένο", |
||||
"All Users" => "Όλοι οι χρήστες", |
||||
"Groups" => "Ομάδες", |
||||
"Users" => "Χρήστες", |
||||
"Delete" => "Διαγραφή" |
||||
"Delete" => "Διαγραφή", |
||||
"SSL root certificates" => "Πιστοποιητικά SSL root", |
||||
"Import Root Certificate" => "Εισαγωγή Πιστοποιητικού Root", |
||||
"Enable User External Storage" => "Ενεργοποίηση Εξωτερικού Αποθηκευτικού Χώρου Χρήστη", |
||||
"Allow users to mount their own external storage" => "Να επιτρέπεται στους χρήστες να προσαρτούν δικό τους εξωτερικό αποθηκευτικό χώρο" |
||||
); |
||||
|
@ -0,0 +1,18 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"External Storage" => "Almacenamiento externo", |
||||
"Mount point" => "Punto de montaje", |
||||
"Backend" => "Motor", |
||||
"Configuration" => "Configuración", |
||||
"Options" => "Opciones", |
||||
"Applicable" => "Aplicable", |
||||
"Add mount point" => "Añadir punto de montaje", |
||||
"None set" => "No fue configurado", |
||||
"All Users" => "Todos los usuarios", |
||||
"Groups" => "Grupos", |
||||
"Users" => "Usuarios", |
||||
"Delete" => "Borrar", |
||||
"SSL root certificates" => "certificados SSL raíz", |
||||
"Import Root Certificate" => "Importar certificado raíz", |
||||
"Enable User External Storage" => "Habilitar almacenamiento de usuario externo", |
||||
"Allow users to mount their own external storage" => "Permitir a los usuarios montar su propio almacenamiento externo" |
||||
); |
@ -1,12 +1,18 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"External Storage" => "Väline salvestuskoht", |
||||
"Mount point" => "Ühenduspunkt", |
||||
"Backend" => "Admin", |
||||
"Configuration" => "Seadistamine", |
||||
"Options" => "Valikud", |
||||
"Applicable" => "Rakendatav", |
||||
"Add mount point" => "Lisa ühenduspunkt", |
||||
"None set" => "Pole määratud", |
||||
"All Users" => "Kõik kasutajad", |
||||
"Groups" => "Grupid", |
||||
"Users" => "Kasutajad", |
||||
"Delete" => "Kustuta" |
||||
"Delete" => "Kustuta", |
||||
"SSL root certificates" => "SSL root sertifikaadid", |
||||
"Import Root Certificate" => "Impordi root sertifikaadid", |
||||
"Enable User External Storage" => "Luba kasutajatele väline salvestamine", |
||||
"Allow users to mount their own external storage" => "Luba kasutajatel ühendada külge nende enda välised salvestusseadmed" |
||||
); |
||||
|
@ -0,0 +1,18 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"External Storage" => "Almacenamento externo", |
||||
"Mount point" => "Punto de montaxe", |
||||
"Backend" => "Almacén", |
||||
"Configuration" => "Configuración", |
||||
"Options" => "Opcións", |
||||
"Applicable" => "Aplicable", |
||||
"Add mount point" => "Engadir punto de montaxe", |
||||
"None set" => "Non establecido", |
||||
"All Users" => "Tódolos usuarios", |
||||
"Groups" => "Grupos", |
||||
"Users" => "Usuarios", |
||||
"Delete" => "Eliminar", |
||||
"SSL root certificates" => "Certificados raíz SSL", |
||||
"Import Root Certificate" => "Importar Certificado Raíz", |
||||
"Enable User External Storage" => "Habilitar almacenamento externo do usuario", |
||||
"Allow users to mount their own external storage" => "Permitir aos usuarios montar os seus propios almacenamentos externos" |
||||
); |
@ -0,0 +1,18 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"External Storage" => "Armazenamento Externo", |
||||
"Mount point" => "Ponto de montagem", |
||||
"Backend" => "Backend", |
||||
"Configuration" => "Configuração", |
||||
"Options" => "Opções", |
||||
"Applicable" => "Aplicável", |
||||
"Add mount point" => "Adicionar ponto de montagem", |
||||
"None set" => "Nenhum definido", |
||||
"All Users" => "Todos os Usuários", |
||||
"Groups" => "Grupos", |
||||
"Users" => "Usuários", |
||||
"Delete" => "Remover", |
||||
"SSL root certificates" => "Certificados SSL raíz", |
||||
"Import Root Certificate" => "Importar Certificado Raíz", |
||||
"Enable User External Storage" => "Habilitar Armazenamento Externo do Usuário", |
||||
"Allow users to mount their own external storage" => "Permitir usuários a montar seus próprios armazenamentos externos" |
||||
); |
@ -0,0 +1,10 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Configuration" => "Configuração", |
||||
"Options" => "Opções", |
||||
"Applicable" => "Aplicável", |
||||
"All Users" => "Todos os utilizadores", |
||||
"Groups" => "Grupos", |
||||
"Users" => "Utilizadores", |
||||
"Delete" => "Apagar", |
||||
"Import Root Certificate" => "Importar Certificado Root" |
||||
); |
@ -0,0 +1,18 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"External Storage" => "Stocare externă", |
||||
"Mount point" => "Punctul de montare", |
||||
"Backend" => "Backend", |
||||
"Configuration" => "Configurație", |
||||
"Options" => "Opțiuni", |
||||
"Applicable" => "Aplicabil", |
||||
"Add mount point" => "Adaugă punct de montare", |
||||
"None set" => "Niciunul", |
||||
"All Users" => "Toți utilizatorii", |
||||
"Groups" => "Grupuri", |
||||
"Users" => "Utilizatori", |
||||
"Delete" => "Șterge", |
||||
"SSL root certificates" => "Certificate SSL root", |
||||
"Import Root Certificate" => "Importă certificat root", |
||||
"Enable User External Storage" => "Permite stocare externă pentru utilizatori", |
||||
"Allow users to mount their own external storage" => "Permite utilizatorilor să monteze stocare externă proprie" |
||||
); |
@ -0,0 +1,18 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"External Storage" => "Внешние системы хранения данных", |
||||
"Mount point" => "Точка монтирования", |
||||
"Backend" => "Бэкэнд", |
||||
"Configuration" => "Конфигурация", |
||||
"Options" => "Опции", |
||||
"Applicable" => "Применимый", |
||||
"Add mount point" => "Добавить точку монтирования", |
||||
"None set" => "Не задан", |
||||
"All Users" => "Все пользователи", |
||||
"Groups" => "Группы", |
||||
"Users" => "Пользователи", |
||||
"Delete" => "Удалить", |
||||
"SSL root certificates" => "Корневые сертификаты SSL", |
||||
"Import Root Certificate" => "Импортировать корневые сертификаты", |
||||
"Enable User External Storage" => "Включить пользовательскую внешнюю систему хранения данных", |
||||
"Allow users to mount their own external storage" => "Разрешить пользователям монтировать их собственную внешнюю систему хранения данных" |
||||
); |
@ -0,0 +1,5 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Groups" => "Групи", |
||||
"Users" => "Користувачі", |
||||
"Delete" => "Видалити" |
||||
); |
@ -0,0 +1,18 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"External Storage" => "Lưu trữ ngoài", |
||||
"Mount point" => "Điểm gắn", |
||||
"Backend" => "phụ trợ", |
||||
"Configuration" => "Cấu hình", |
||||
"Options" => "Tùy chọn", |
||||
"Applicable" => "Áp dụng", |
||||
"Add mount point" => "Thêm điểm lắp", |
||||
"None set" => "không", |
||||
"All Users" => "Tất cả người dùng", |
||||
"Groups" => "Nhóm", |
||||
"Users" => "Người dùng", |
||||
"Delete" => "Xóa", |
||||
"SSL root certificates" => "Chứng chỉ SSL root", |
||||
"Import Root Certificate" => "Nhập Root Certificate", |
||||
"Enable User External Storage" => "Kích hoạt tính năng lưu trữ ngoài", |
||||
"Allow users to mount their own external storage" => "Cho phép người dùng kết nối với lưu trữ riêng bên ngoài của họ" |
||||
); |
@ -0,0 +1,18 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"External Storage" => "外部存储", |
||||
"Mount point" => "挂载点", |
||||
"Backend" => "后端", |
||||
"Configuration" => "配置", |
||||
"Options" => "选项", |
||||
"Applicable" => "可应用", |
||||
"Add mount point" => "添加挂载点", |
||||
"None set" => "未设置", |
||||
"All Users" => "所有用户", |
||||
"Groups" => "群组", |
||||
"Users" => "用户", |
||||
"Delete" => "删除", |
||||
"SSL root certificates" => "SSL 根证书", |
||||
"Import Root Certificate" => "导入根证书", |
||||
"Enable User External Storage" => "启用用户外部存储", |
||||
"Allow users to mount their own external storage" => "允许用户挂载他们的外部存储" |
||||
); |
@ -1,16 +1,64 @@ |
||||
<?php |
||||
|
||||
// touch shared directories to trigger one-time re-scan for all users |
||||
$datadir = \OCP\Config::getSystemValue('datadirectory'); |
||||
$currentVersion=OC_Appconfig::getValue('files_sharing', 'installed_version'); |
||||
if (version_compare($currentVersion, '0.2.2', '<')) { |
||||
if ($handle = opendir($datadir)) { |
||||
while (false !== ($entry = readdir($handle))) { |
||||
$sharedFolder = $datadir.'/'.$entry.'/files/Shared'; |
||||
if ($entry != "." && $entry != ".." && is_dir($sharedFolder)) { |
||||
touch($sharedFolder); |
||||
$installedVersion = OCP\Config::getAppValue('files_sharing', 'installed_version'); |
||||
if (version_compare($installedVersion, '0.3', '<')) { |
||||
$update_error = false; |
||||
$query = OCP\DB::prepare('SELECT * FROM `*PREFIX*sharing`'); |
||||
$result = $query->execute(); |
||||
$groupShares = array(); |
||||
//we need to set up user backends, otherwise creating the shares will fail with "because user does not exist" |
||||
OC_User::useBackend(new OC_User_Database()); |
||||
OC_Group::useBackend(new OC_Group_Database()); |
||||
OC_App::loadApps(array('authentication')); |
||||
while ($row = $result->fetchRow()) { |
||||
$itemSource = OC_FileCache::getId($row['source'], ''); |
||||
if ($itemSource != -1) { |
||||
$file = OC_FileCache::get($row['source'], ''); |
||||
if ($file['mimetype'] == 'httpd/unix-directory') { |
||||
$itemType = 'folder'; |
||||
} else { |
||||
$itemType = 'file'; |
||||
} |
||||
if ($row['permissions'] == 0) { |
||||
$permissions = OCP\Share::PERMISSION_READ | OCP\Share::PERMISSION_SHARE; |
||||
} else { |
||||
$permissions = OCP\Share::PERMISSION_READ | OCP\Share::PERMISSION_UPDATE | OCP\Share::PERMISSION_SHARE; |
||||
if ($itemType == 'folder') { |
||||
$permissions |= OCP\Share::PERMISSION_CREATE; |
||||
} |
||||
} |
||||
$pos = strrpos($row['uid_shared_with'], '@'); |
||||
if ($pos !== false && OC_Group::groupExists(substr($row['uid_shared_with'], $pos + 1))) { |
||||
$shareType = OCP\Share::SHARE_TYPE_GROUP; |
||||
$shareWith = substr($row['uid_shared_with'], 0, $pos); |
||||
if (isset($groupShares[$shareWith][$itemSource])) { |
||||
continue; |
||||
} else { |
||||
$groupShares[$shareWith][$itemSource] = true; |
||||
} |
||||
} else if ($row['uid_shared_with'] == 'public') { |
||||
$shareType = OCP\Share::SHARE_TYPE_LINK; |
||||
$shareWith = null; |
||||
} else { |
||||
$shareType = OCP\Share::SHARE_TYPE_USER; |
||||
$shareWith = $row['uid_shared_with']; |
||||
} |
||||
OC_User::setUserId($row['uid_owner']); |
||||
//we need to setup the filesystem for the user, otherwise OC_FileSystem::getRoot will fail and break |
||||
OC_Util::setupFS($row['uid_owner']); |
||||
try { |
||||
OCP\Share::shareItem($itemType, $itemSource, $shareType, $shareWith, $permissions); |
||||
} |
||||
catch (Exception $e) { |
||||
$update_error = true; |
||||
OCP\Util::writeLog('files_sharing', 'Upgrade Routine: Skipping sharing "'.$row['source'].'" to "'.$shareWith.'" (error is "'.$e->getMessage().'")', OCP\Util::WARN); |
||||
} |
||||
OC_Util::tearDownFS(); |
||||
} |
||||
closedir($handle); |
||||
} |
||||
} |
||||
if ($update_error) { |
||||
OCP\Util::writeLog('files_sharing', 'There were some problems upgrading the sharing of files', OCP\Util::ERROR); |
||||
} |
||||
// NOTE: Let's drop the table after more testing |
||||
// $query = OCP\DB::prepare('DROP TABLE `*PREFIX*sharing`'); |
||||
// $query->execute(); |
||||
} |
||||
|
@ -1 +1 @@ |
||||
0.3.1 |
||||
0.3.2 |
@ -1,8 +1,11 @@ |
||||
body { background:#ddd; } |
||||
#header { position:fixed; top:0; left:0; right:0; z-index:100; height:2.5em; line-height:2.5em; padding:.5em; background:#1d2d44; -moz-box-shadow:0 0 10px rgba(0, 0, 0, .5), inset 0 -2px 10px #222; -webkit-box-shadow:0 0 10px rgba(0, 0, 0, .5), inset 0 -2px 10px #222; box-shadow:0 0 10px rgba(0, 0, 0, .5), inset 0 -2px 10px #222; } |
||||
#details { color:#fff; } |
||||
#header #download { margin-left:2em; font-weight:bold; color:#fff; } |
||||
#header #download { margin-left:2em; font-weight:bold; } |
||||
#header #download img { padding-left: 0.1em; padding-right: 0.3em; vertical-align: text-bottom; } |
||||
#preview { min-height:30em; margin:50px auto; padding-top:2em; border-bottom:1px solid #f8f8f8; background:#eee; text-align:center; } |
||||
#noPreview { display:none; padding-top:5em; } |
||||
p.info { width:22em; text-align: center; margin:2em auto; color:#777; text-shadow:#fff 0 1px 0; } |
||||
p.info a { font-weight:bold; color:#777; } |
||||
p.info a { font-weight:bold; color:#777; } |
||||
#imgframe { width:80%; height: 75%; margin: 0 auto; padding-bottom:2em; } |
||||
#imgframe img { max-height:100%; max-width: 100%; } |
@ -0,0 +1,9 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Password" => "Kodeord", |
||||
"Submit" => "Send", |
||||
"%s shared the folder %s with you" => "%s delte mappen %s med dig", |
||||
"%s shared the file %s with you" => "%s delte filen %s med dig", |
||||
"Download" => "Download", |
||||
"No preview available for" => "Forhåndsvisning ikke tilgængelig for", |
||||
"web services under your control" => "Webtjenester under din kontrol" |
||||
); |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue