Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasCresson committed Jul 30, 2013
2 parents 0f9500e + 55bdcf1 commit b237fb4
Show file tree
Hide file tree
Showing 125 changed files with 4,143 additions and 2 deletions.
3 changes: 2 additions & 1 deletion core/src/core/classes/class.ConfService.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,8 @@ private function invalidateLoadedRepositories(){
*/
public static function getAccessibleRepositories($userObject=null, $details=false, $labelOnly = false, $skipShared = false){
$result = array();
foreach (ConfService::getRepositoriesList("all") as $repositoryId => $repositoryObject)
$allReps = ConfService::getRepositoriesList("all");
foreach ($allReps as $repositoryId => $repositoryObject)
{
if(!ConfService::repositoryIsAccessible($repositoryId, $repositoryObject, $userObject, $details, $skipShared)){
continue;
Expand Down
1 change: 1 addition & 0 deletions core/src/core/classes/class.Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ function getInferOptionsFromParent(){
*/
public function setGroupPath($groupPath)
{
if(strlen($groupPath) > 1) $groupPath = rtrim($groupPath, "/");
$this->groupPath = $groupPath;
}

Expand Down
143 changes: 143 additions & 0 deletions core/src/plugins/access.ajxp_conf/i18n/pt.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
<?php
/*
* Copyright 2007-2011 Charles du Jeu <contact (at) cdujeu.me>
* This file is part of AjaXplorer.
*
* AjaXplorer is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* AjaXplorer is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with AjaXplorer. If not, see <http://www.gnu.org/licenses/>.
*
* The latest code can be found at <http://www.ajaxplorer.info/>.
*/
$mess=array(
"1" => "Dados de Configuração",
"2" => "Utilizadores e Grupos",
"3" => "Áreas de Trabalho",
"4" => "Registos",
"5" => "Diagnóstico",
"6" => "Nome de Utilizador",
"7" => "É Administrador",
"8" => "Etiqueta de Área de Trabalho",
"9" => "Tipo de Acesso",
"10" => "Fontes Meta",
"11" => "Adicionar uma Fonte",
"12" => "Plugin Meta",
"13" => "Tem a certeza de que pretende apagar esta fonte?",
"14" => "Verdadeiro",
"15" => "Falso",
"16" => "Data de Ficheiro",
"17" => "Data",
"18" => "I.P.",
"19" => "Nível",
"20" => "Utilizador",
"21" => "Acção",
"22" => "Parâmetros",
"23" => "Nome de Teste",
"24" => "Nome de Dados",
"25" => "Acesso à Área de Trabalho",
"26" => "Alterar Palavra-Chave",
"27" => "Direitos de Administrador",
"28" => "O Utilizador tem permissões de administrador?",
"29" => "Ler",
"30" => "Escrever",
"32" => "Controlador de Acesso",
"33" => "A carregar...",
"34" => "Tem a certeza de que quer apagar este utilizador? Esta operação não é reversível!",
"35" => "Tem a certeza de que quer apagar esta Área de Trabalho? Esta operação não é reversível!",
"36" => "Campos obrigatórios não preenchidos!",
"37" => "ATENÇÃO: A confirmação difere da palavra-chave introduzida!",
"38" => "Por favor preencha o campo de login!",
"39" => "Por favor preencha ambos os campos da palavra-chave!",
"40" => "Por favor marque a caixa para confirmar!",
"41" => "Opções do Controlador",
"42" => "Por favor escolha um controlador!",
"43" => "O utilizador já existe, por favor escolha outro Login!",
"44" => "Utilizador criado com sucesso",
"45" => "Alterados os direitos de administrador para o utilizador ",
"46" => "Alterados os direitos para o utilizador ",
"47" => "Guardadas as alterações para o utilizador ",
"48" => "A palavra-chave foi mudada com sucesso para o utilizador ",
"49" => "Impossível actualizar a palavra-chave",
"50" => "Erro: uma Área de Trabalho com o mesmo nome já existe",
"51" => "A pasta 'conf' não tem permissões de escrita",
"52" => "Criada a Área de Trabalho com sucesso! Pode agora adicionar algumas 'Fontes de Metadata' para melhorar os conteúdos, adicionar Indexação automática, etc",
"53" => "Erro ao tentar editar a Área de Trabalho",
"54" => "Editada com sucesso a Área de Trabalho",
"55" => "ATENÇÃO: De momento apenas pode correr uma instância de cada plugin meta.",
"56" => "Adicionada fonte meta com sucesso",
"57" => "Apagada fonte meta com sucesso",
"58" => "Editada a fonte meta com sucesso",
"59" => "Apagada a Área de Trabalho com Sucesso",
"60" => "Utilizador apagado com sucesso",
"61" => "Argumentos errados!",
"62" => "Resumo de Permissões",
"63" => "Todas",
"64" => "Alteradas as permissões para o papel ",
"65" => "O nome do papel já existe, escolha outro nome!",
"66" => "Papel criado com sucesso",
"67" => "Impossível encontrar o papel ",
"68" => "Papel apagado com Sucesso",
"69" => "Papéis",
"70" => "Papéis de Utilizador",
"71" => "Papéis Disponíveis",
"72" => "Arraste os papéis para os atribuir a um utilizador",
"73" => "Papel adicionado ao Utilizador ",
"74" => "Papel removido ao utilizador ",
"75" => "Novo papel",
"role_access" => "p",
"76" => "ID de Papel",
"77" => "Controlo de Acesso",
"78" => "Dados Pessoais",
"79" => "Área de Trabalho",
"80" => "Ajustar acesso para este utilizador (Clique na etiqueta de Área de Trabalho da qual deseja que seja a que é mostrada sempre que o utilizador iniciar sessão)",
"81" => "Dados específicos da Área de Trabalho",
"82" => "Editar utilizadores em simultâneo",
"83" => "Arraste os papéis para os aplicar a todos os utilizadores (Utilizadores partilhados serão ignorados)",
"84" => "Papéis de Utilizador",
"85" => "Manual de Filtro de Acções",
"86" => "lista e acções separada por virgulas que serão desactivadas para este papel, não importa o tipo de permissão de acesso.",
"87" => "Actualizadas as permissões com sucesso para este papel",
"88" => "Esta Área de Trabalho é definida no ficheiro 'config', não pode editar as fontes meta da mesma usando a interface gráfica.",
"89" => "Dados específicos de Utilizador",
"90" => "Nova Área de Trabalho",
"91" => "Novo Modelo",
"92" => "Criar um novo modelo",
"93" => "Editar",
"94" => "Editar vários",
"95" => "Escolha uma etiqueta e um controlador para aceder aos dados (seleccione todas as secções de campos obrigatórios, pode passar com o rato sobre as etiquetas das mesmas para obter mais informações).",
"96" => "Uma vez que uma etiqueta e um controlador estejam seleccionados, active os campos que pretende preencher no modelo usando as caixas de selecção. Os outros campos serão deixados para o utilizador. Pode activar alguns campos e deixa-los vazios, caso pretenda ocultar os mesmos dos utilizadores.",
"repository_access_key" => "A",
"97" => "Opções do Plugin actualizadas com sucesso",
"98" => "Configurações do Core",
"99" => "Plugins",
"100" => "Opções partilhadas '%s' dos plugins",
"101" => "Nome",
"102" => "Identificador",
"103" => "Descrição",
"104" => "Activado",
"105" => "Verificações Automáticas",
"106" => "Identificador único",
"107" => "Configurações de Plugins",
"108" => "Documentação",
"109" => "Configurações Globais",
"110" => "Áreas de Trabalho & Utilizadores",
"111" => "Registos & Outros Dados",
"112" => "<b>Aplicar este papel por pré definição</b> a todos os novos utilizadores.",
"113" => "Estado dos Papéis actualizado com sucesso",
"114" => "Aplica-se a",
"115" => "Esquema",
"116" => "Etiqueta do Modelo",
"117" => "Etiqueta do Controlador",
"118" => "Novo Grupo",
"group_access" => "G",
"119" => "Definir grupo do utilizador",
);
56 changes: 56 additions & 0 deletions core/src/plugins/access.ajxp_shared/i18n/pt.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?php
/*
* Copyright 2007-2011 Charles du Jeu <contact (at) cdujeu.me>
* This file is part of AjaXplorer.
*
* AjaXplorer is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* AjaXplorer is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with AjaXplorer. If not, see <http://www.gnu.org/licenses/>.
*
* The latest code can be found at <http://www.ajaxplorer.info/>.
*/
$mess=array(
"1" => "Utilizadores partilhados",
"2" => "Áreas de Trabalho Partilhadas",
"3" => "Ficheiros Públicos",
"4" => "Caminho do Ficheiro",
"5" => "Repositório",
"6" => "Palavra-Chave",
"7" => "Validade",
"8" => "Elementos",
"9" => "Utilizadores Associados",
"10"=> "Áreas de Trabalho Associadas",
"11"=> "Tem a certeza de que quer apagar os seguintes elementos?",
"12"=> "Não tem permissões para apagar este elemento.",
"13"=> "Apagado com sucesso o ficheiro público.",
"14"=> "Integridade",
"15"=> "Confirmar",
"16"=> "Danificado",
"17"=> "URL de Transferência",
"18"=> "Copiar URL",
"19"=> "Copiar URL para enviar por e-mail.",
"20"=> "Transferências",
"21"=> "Sim",
"22"=> "Não",
"23"=> "Apagados com sucesso %s ficheiros.",
"24"=> "Nada para apagar.",
"25"=> "Limpar Expirados",
"26"=> "Apagar Ficheiros Partilhados Expirados.",
"27"=> "Proprietário",
"28"=> "Ficheiros partilhados para transferência directa, protegidos ou não por uma Palavra-Chave.",
"29"=> "Delega Áreas de Trabalho criados por utilizadores.",
"30"=> "Utilizadores criados para aceder às Áreas de Trabalho Delegadas.",
"31"=> "Descrição",
"32"=> "Repor",
"33"=> "Repor Contador de Transferências",
);
?>
33 changes: 33 additions & 0 deletions core/src/plugins/access.dropbox/i18n/conf/pt.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2007-2011 Charles du Jeu <contact (at) cdujeu.me>
* This file is part of AjaXplorer.
*
* AjaXplorer is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* AjaXplorer is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with AjaXplorer. If not, see <http://www.gnu.org/licenses/>.
*
* The latest code can be found at <http://www.ajaxplorer.info/>.
*/
$mess=array(
"Dropbox" => "Dropbox",
"This plugin allows accessing a dropbox account. Still experimental, requires PEAR/HTTP_OAuth extension." => "Este Plugin permite acesso a uma conta Dropbox. Ainda é experimental, requer a extensão PEAR/HTTP_OAuth.",
"Consumer Key" => "Chave de Consumidor",
"Key" => "Chave",
"Consumer Secret" => "Segredo do Consumidor",
"Secret" => "Segredo",
"User Mail" => "E-Mail do Utilizador",
"User account" => "Conta do Utilizador",
"Password" => "Palavra-Chave",
"User Password" => "Palavra-Chave do Utilizador",
);
?>
16 changes: 16 additions & 0 deletions core/src/plugins/access.fs/class.fsAccessDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -1236,6 +1236,22 @@ function readFile($filePathOrData, $headerType="plain", $localName="", $data=fal
header('Content-Disposition: attachment; filename="' . basename($filePathOrData) . '"');
return;
}
if($this->getFilteredOption("USE_XACCELREDIRECT", $this->repository->getId()) && $this->wrapperClassName == "fsAccessWrapper" && array_key_exists("X-Accel-Mapping",$_SERVER)){
if(!$realfileSystem) $filePathOrData = fsAccessWrapper::getRealFSReference($filePathOrData);
$filePathOrData = str_replace("\\", "/", $filePathOrData);
$filePathOrData = SystemTextEncoding::toUTF8($filePathOrData);
$mapping = explode('=',$_SERVER['X-Accel-Mapping']);
$replacecount = 0;
$accelfile = str_replace($mapping[0],$mapping[1],$filePathOrData,$replacecount);
if($replacecount == 1){
header("X-Accel-Redirect: $accelfile");
header("Content-type: application/octet-stream");
header('Content-Disposition: attachment; filename="' . basename($accelfile) . '"');
return;
} else {
AJXP_Logger::logAction("error","Problem with X-Accel-Mapping for file $filePathOrData");
}
}
$stream = fopen("php://output", "a");
if($realfileSystem){
AJXP_Logger::debug("realFS!", array("file"=>$filePathOrData));
Expand Down
38 changes: 38 additions & 0 deletions core/src/plugins/access.fs/i18n/conf/pt.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?php
/*
* Copyright 2007-2011 Charles du Jeu <contact (at) cdujeu.me>
* This file is part of AjaXplorer.
*
* AjaXplorer is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* AjaXplorer is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with AjaXplorer. If not, see <http://www.gnu.org/licenses/>.
*
* The latest code can be found at <http://www.ajaxplorer.info/>.
*/
$mess=array(
"File System (Standard)" => "Sistema de Ficheiros (padrão)",
"The most standard access to a filesystem located on the server." => "O tipo de acesso padrão para aceder ao sistema de ficheiros do servidor.",
"Path" => "Caminho",
"Real path to the root folder on the server" => "Caminho Real para a raíz da pasta no servidor",
"Create" => "Criar",
"Create folder if it does not exists" => "Criar pasta caso esta não exista",
"File Creation Mask" => "Máscara de criação de Ficheiro",
"Optionnaly apply a chmod operation. Value must be numeric, like 0777, 0644, etc." => "Opcionalmente utilizar o 'chmod' para aplicar permissões. Os valores devem ser numéricos, por exemplo: 0777, 0644, etc.",
"Purge Days" => "Dias de Limpeza",
"Option to purge documents after a given number of days. This require a manual set up of a CRON task. Leave to 0 if you don't wan't to use this feature." => "Opção para limpar os documentos após um certo número de dias. Requer configurar manualmente uma tarefa cronológica (CRON). Deixe o valor 0 caso não pretenda utilizar esta função.",
"Real Size Probing" => "Tamanho Real de Teste",
"Use system command line to get the filesize instead of php built-in function (fixes the 2Go limitation)" => "Utilizar a linha de comandos para obter um tamanho de ficheiro em vez da função incorporada no PHP (corrige o limite de 2GB)",
"X-SendFile Active" => "Activar X-SendFile",
"Delegates all download operations to the webserver using the X-SendFile header. Warning, this is an external module to install for Apache. Module is active by default in Lighttpd. Warning, you have to manually add the folders where files will be downloaded in the module configuration (XSendFilePath directive)" => "Delega todas as operações de transferência para o servidor utilizado o X-SendFile header. ATENÇÃO: Este é um módulo externo que tem que ser instalado no Apache. Este módulo encontra-se activado por pré definição no Lighttpd. ATENÇÃO: Tem que manualmente adicionar as pastas onde os ficheiros serão transferidos na configuração do módulo (Na pasta XSendFilePath)",
"Data template" => "Modelo de Dados",
"Path to a directory on the filesystem whose content will be copied to the repository the first time it is loaded." => "Caminho para a pasta no sistema de ficheiros cujo conteúdos serão copiados para a Área de Trabalho na primeira vez que esta for carregada."
);
3 changes: 2 additions & 1 deletion core/src/plugins/access.fs/manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<global_param name="PROBE_REAL_SIZE" type="boolean" label="CONF_MESSAGE[Real Size Probing]" description="CONF_MESSAGE[Use system command line to get the filesize instead of php built-in function (fixes the 2Go limitation)]" default="false"/>
<global_param name="USE_POSIX" type="boolean" label="CONF_MESSAGE[Use POSIX]" description="CONF_MESSAGE[Use php POSIX extension to read files permissions. Only works on *nix systems.]" default="false"/>
<global_param name="USE_XSENDFILE" type="boolean" label="CONF_MESSAGE[X-SendFile Active]" description="CONF_MESSAGE[Delegates all download operations to the webserver using the X-SendFile header. Warning, this is an external module to install for Apache. Module is active by default in Lighttpd. Warning, you have to manually add the folders where files will be downloaded in the module configuration (XSendFilePath directive)]" default="false"/>
<global_param name="USE_XACCELREDIRECT" type="boolean" label="CONF_MESSAGE[X-Accel-Redirect Active]" description="CONF_MESSAGE[Delegates all download operations to nginx using the X-Accel-Redirect header. Warning, you have to add some configuration in nginx, like X-Accel-Mapping]" default="false"/>
<global_param group="MIXIN_MESSAGE[Metadata and indexation]" name="DEFAULT_METASOURCES" type="string" label="MIXIN_MESSAGE[Default Metasources]" description="MIXIN_MESSAGE[Comma separated list of metastore and meta plugins, that will be automatically applied to all repositories created with this driver]" mandatory="false" default="metastore.serial,meta.filehasher,index.lucene"/>
</server_settings>
<class_definition filename="plugins/access.fs/class.fsAccessDriver.php" classname="fsAccessDriver"/>
Expand All @@ -38,4 +39,4 @@
</hooks>
</registry_contributions>
<class_stream_wrapper filename="plugins/access.fs/class.fsAccessWrapper.php" classname="fsAccessWrapper" protocol="ajxp.fs"/>
</ajxpdriver>
</ajxpdriver>

0 comments on commit b237fb4

Please sign in to comment.