mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 08:09:02 +01:00
* Filemanager: user interface to mount into VFS or enable versioning (requires EPL)
This commit is contained in:
parent
1491829c05
commit
e602e93b05
197
filemanager/inc/class.filemanager_admin.inc.php
Normal file
197
filemanager/inc/class.filemanager_admin.inc.php
Normal file
@ -0,0 +1,197 @@
|
||||
<?php
|
||||
/**
|
||||
* Filemanager: mounting GUI
|
||||
*
|
||||
* @link http://www.egroupware.org/
|
||||
* @package filemanager
|
||||
* @author Ralf Becker <rb-AT-stylite.de>
|
||||
* @copyright (c) 2010-14 by Ralf Becker <rb-AT-stylite.de>
|
||||
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||
* @version $Id$
|
||||
*/
|
||||
|
||||
/**
|
||||
* Filemanager: mounting GUI
|
||||
*/
|
||||
class filemanager_admin extends filemanager_ui
|
||||
{
|
||||
/**
|
||||
* Functions callable via menuaction
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public $public_functions = array(
|
||||
'index' => true,
|
||||
);
|
||||
|
||||
/**
|
||||
* Autheticated user is setup config user
|
||||
*
|
||||
* @var boolean
|
||||
*/
|
||||
static protected $is_setup = false;
|
||||
|
||||
/**
|
||||
* Do we have versioning (stylite_versioning_stream_wrapper class) available and with which schema
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $versioning;
|
||||
|
||||
/**
|
||||
* Do not allow to (un)mount these
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected static $protected_path = array('/apps', '/templates');
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
// make sure user has admin rights
|
||||
if (!isset($GLOBALS['egw_info']['user']['apps']['admin']))
|
||||
{
|
||||
throw new egw_exception_no_permission_admin();
|
||||
}
|
||||
// sudo handling
|
||||
parent::__construct();
|
||||
self::$is_setup = egw_vfs::$is_root;//egw_session::appsession('is_setup','filemanager');
|
||||
|
||||
if (class_exists('stylite_versioning_stream_wrapper'))
|
||||
{
|
||||
//$this->versioning = stylite_versioning_stream_wrapper::SCHEME;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Mount GUI
|
||||
*
|
||||
* @param array $content=null
|
||||
* @param string $msg=''
|
||||
*/
|
||||
public function index(array $content=null, $msg='', $msg_type=null)
|
||||
{
|
||||
if (is_array($content))
|
||||
{
|
||||
//_debug_array($content);
|
||||
if ($content['sudo'])
|
||||
{
|
||||
$msg = $this->sudo($content['user'],$content['password'],self::$is_setup) ?
|
||||
lang('Root access granted.') : lang('Wrong username or password!');
|
||||
$msg_type = egw_vfs::$is_root ? 'success' : 'error';
|
||||
}
|
||||
elseif (egw_vfs::$is_root)
|
||||
{
|
||||
if ($content['logout'])
|
||||
{
|
||||
$msg = $this->sudo('','',self::$is_setup) ? 'Logout failed!' : lang('Root access stopped.');
|
||||
$msg_type = !egw_vfs::$is_root ? 'success' : 'error';
|
||||
}
|
||||
if ($content['mounts']['disable'] || self::$is_setup && $content['mounts']['umount'])
|
||||
{
|
||||
if (($unmount = $content['mounts']['umount']))
|
||||
{
|
||||
list($path) = @each($content['mounts']['umount']);
|
||||
}
|
||||
else
|
||||
{
|
||||
list($path) = @each($content['mounts']['disable']);
|
||||
}
|
||||
if (!in_array($path, self::$protected_path) && $path != '/')
|
||||
{
|
||||
$msg = egw_vfs::umount($path) ?
|
||||
lang('%1 successful unmounted.',$path) : lang('Error unmounting %1!',$path);
|
||||
}
|
||||
else // re-mount / with sqlFS, to disable versioning
|
||||
{
|
||||
$msg = egw_vfs::mount($url=sqlfs_stream_wrapper::SCHEME.'://default'.$path,$path) ?
|
||||
lang('Successful mounted %1 on %2.',$url,$path) : lang('Error mounting %1 on %2!',$url,$path);
|
||||
}
|
||||
}
|
||||
if (($path = $content['mounts']['path']) &&
|
||||
($content['mounts']['enable'] || self::$is_setup && $content['mounts']['mount']))
|
||||
{
|
||||
$url = str_replace('$path',$path,$content['mounts']['url']);
|
||||
if (empty($url) && $this->versioning) $url = stylite_versioning_stream_wrapper::PREFIX.$path;
|
||||
|
||||
if ($content['mounts']['enable'] && !$this->versioning)
|
||||
{
|
||||
$msg = lang('Versioning requires <a href="http://www.egroupware.org/products">Stylite EGroupware Enterprise Line (EPL)</a>!');
|
||||
$msg_type = 'info';
|
||||
}
|
||||
elseif (!egw_vfs::file_exists($path) || !egw_vfs::is_dir($path))
|
||||
{
|
||||
$msg = lang('Path %1 not found or not a directory!',$path);
|
||||
$msg_type = 'error';
|
||||
}
|
||||
// dont allow to change mount of /apps or /templates (eg. switching on versioning)
|
||||
elseif (in_array($path, self::$protected_path))
|
||||
{
|
||||
$msg = lang('Permission denied!');
|
||||
$msg_type = 'error';
|
||||
}
|
||||
else
|
||||
{
|
||||
$msg = egw_vfs::mount($url,$path) ?
|
||||
lang('Successful mounted %1 on %2.',$url,$path) : lang('Error mounting %1 on %2!',$url,$path);
|
||||
}
|
||||
}
|
||||
if ($content['allow_delete_versions'] != $GLOBALS['egw_info']['server']['allow_delete_versions'])
|
||||
{
|
||||
config::save_value('allow_delete_versions', $content['allow_delete_versions'], 'phpgwapi');
|
||||
$GLOBALS['egw_info']['server']['allow_delete_versions'] = $content['allow_delete_versions'];
|
||||
$msg = lang('Configuration changed.');
|
||||
}
|
||||
}
|
||||
}
|
||||
$content = array();
|
||||
if ($this->versioning)
|
||||
{
|
||||
// statistical information
|
||||
$content = stylite_versioning_stream_wrapper::summary();
|
||||
if ($content['total_files']) $content['percent_files'] = number_format(100.0*$content['version_files']/$content['total_files'],1).'%';
|
||||
if ($content['total_size']) $content['percent_size'] = number_format(100.0*$content['version_size']/$content['total_size'],1).'%';
|
||||
}
|
||||
if (!($content['is_root']=egw_vfs::$is_root))
|
||||
{
|
||||
if (empty($msg))
|
||||
{
|
||||
$msg = lang('You need to become root, to enable or disable versioning on a directory!');
|
||||
$msg_type = 'info';
|
||||
}
|
||||
$readonlys['logout'] = $readonlys['enable'] = $readonlys['allow_delete_versions'] = true;
|
||||
}
|
||||
$content['is_setup'] = self::$is_setup;
|
||||
$content['versioning'] = $this->versioning;
|
||||
$content['allow_delete_versions'] = $GLOBALS['egw_info']['server']['allow_delete_versions'];
|
||||
egw_framework::message($msg, $msg_type);
|
||||
|
||||
$n = 2;
|
||||
$content['mounts'] = array();
|
||||
foreach(egw_vfs::mount() as $path => $url)
|
||||
{
|
||||
$content['mounts'][$n++] = array(
|
||||
'path' => $path,
|
||||
'url' => $url,
|
||||
);
|
||||
$readonlys["disable[$path]"] = !$this->versioning || !egw_vfs::$is_root ||
|
||||
parse_url($url,PHP_URL_SCHEME) != $this->versioning;
|
||||
}
|
||||
$readonlys['umount[/]'] = $readonlys['umount[/apps]'] = true; // do not allow to unmount / or /apps
|
||||
$readonlys['url'] = !self::$is_setup;
|
||||
|
||||
$sel_options['allow_delete_versions'] = array(
|
||||
'' => lang('Noone'),
|
||||
'root' => lang('Superuser (root)'),
|
||||
'admins' => lang('Administrators'),
|
||||
'everyone' => lang('Everyone'),
|
||||
);
|
||||
//_debug_array($content);
|
||||
|
||||
$tpl = new etemplate_new('filemanager.admin');
|
||||
$GLOBALS['egw_info']['flags']['app_header'] = lang('VFS mounts and versioning');
|
||||
$tpl->exec('filemanager.filemanager_admin.index',$content,$sel_options,$readonlys);
|
||||
}
|
||||
}
|
@ -117,11 +117,12 @@ class filemanager_hooks
|
||||
'Site Configuration' => egw::link('/index.php','menuaction=admin.uiconfig.index&appname='.self::$appname),
|
||||
'Custom fields' => egw::link('/index.php','menuaction=admin.customfields.edit&appname='.self::$appname),
|
||||
'Check virtual filesystem' => egw::link('/index.php','menuaction=filemanager.filemanager_hooks.fsck'),
|
||||
'VFS mounts and versioning' => egw::link('/index.php', 'menuaction=filemanager.filemanager_admin.index'),
|
||||
);
|
||||
// add other administration links, eg. of filesystem backends like versioning
|
||||
if (($other = $GLOBALS['egw']->hooks->process('filemanager_admin',array(),true)))
|
||||
{
|
||||
foreach($other as $app => $file_data)
|
||||
foreach($other as $file_data)
|
||||
{
|
||||
$file += $file_data;
|
||||
}
|
||||
@ -242,14 +243,18 @@ class filemanager_hooks
|
||||
'application' => 'filemanager'
|
||||
));
|
||||
$options = array();
|
||||
foreach ((array)$definitions->get_definitions() as $identifier) {
|
||||
foreach ((array)$definitions->get_definitions() as $identifier)
|
||||
{
|
||||
try {
|
||||
$definition = new importexport_definition($identifier);
|
||||
} catch (Exception $e) {
|
||||
}
|
||||
catch (Exception $e) {
|
||||
unset($e);
|
||||
// permission error
|
||||
continue;
|
||||
}
|
||||
if ($title = $definition->get_title()) {
|
||||
if (($title = $definition->get_title()))
|
||||
{
|
||||
$options[$title] = $title;
|
||||
}
|
||||
unset($definition);
|
||||
|
@ -1,4 +1,5 @@
|
||||
%1 already exists as a file filemanager de %1 existiert schon als Datei
|
||||
%1 already mounted on %2! filemanager de %1 bereits auf %2 gemounted!
|
||||
%1 directories and %2 files copied. filemanager de %1 Verzeichnisse und %2 Dateien kopiert.
|
||||
%1 directories and %2 files deleted. filemanager de %1 Verzeichnisse und %2 Dateien gelöscht.
|
||||
%1 elements linked. filemanager de %1 Elemente verknüpft.
|
||||
@ -12,6 +13,7 @@
|
||||
%1 files deleted. filemanager de %1 Dateien gelöscht.
|
||||
%1 files moved. filemanager de %1 Dateien verschoben.
|
||||
%1 starts with '%2' filemanager de %1 beginnt mit '%2'
|
||||
%1 successful unmounted. filemanager de %1 erfolgreich unmounted.
|
||||
%1 successful uploaded. filemanager de %1 erfolgreich hochgeladen.
|
||||
%1 the following files into current directory filemanager de Die folgenden Dateien in das aktuelle Verzeichnis %1
|
||||
%1 urls %2 to clipboard. filemanager de %1 Adressen in die Zwischenablage %2.
|
||||
@ -26,21 +28,26 @@ acl added. filemanager de Zugriffsrecht hinzugefügt.
|
||||
acl deleted. filemanager de Zugriffsrecht gelöscht.
|
||||
actions filemanager de Befehle
|
||||
add to clipboard filemanager de In die Zwischenablage hinzufügen
|
||||
all files common de Alle Dateien
|
||||
administrators filemanager de Administratoren
|
||||
all files filemanager de Alle Dateien
|
||||
allow a maximum of the above configured folderlinks to be configured in settings admin de Erlaube das oben eingestellte Maximum an Einstellungen für Verzeichnisverweise
|
||||
and all it's childeren filemanager de und alle seine Kinderelemente
|
||||
application fields filemanager de Anwendungsfelder
|
||||
applications common de Anwendungen
|
||||
backend filemanager de Backend
|
||||
backend url filemanager de Backend URL
|
||||
backend url to mount filemanager de Backend URL zum mounten
|
||||
basedirectory filemanager de Basisverzeichnis
|
||||
can't open directory %1! filemanager de Kann Verzeichnis %1 nicht öffnen!
|
||||
cancel editing %1 without saving filemanager de Beende das Bearbeiten von %1 ohne zu Speichern
|
||||
cannot create directory because it begins or ends in a space filemanager de Die Erstellung des Verzeichnisses schlug fehl, da es mit einem Leerzeichen beginnt oder endet
|
||||
cautiously rejecting to remove folder '%1'! filemanager de Löschen des Verzeichnisses '%1' aus Vorsicht zurück gewiesen!
|
||||
check all filemanager de Alle auswählen
|
||||
check virtual filesystem filemanager de Virtuelles Dateisystem überprüfen
|
||||
check virtual filesystem common de Virtuelles Dateisystem überprüfen
|
||||
clear search filemanager de Suchfelder zurücksetzen
|
||||
clipboard is empty! filemanager de Zwischenablage ist leer!
|
||||
comment filemanager de Kommentar
|
||||
configuration changed. filemanager de Konfiguration geändert.
|
||||
copied filemanager de kopiert
|
||||
copied %1 to %2 filemanager de %1 nach %2 kopiert
|
||||
copy filemanager de Kopieren
|
||||
@ -75,6 +82,8 @@ directory %1 does not exist filemanager de Verzeichnis %1 existiert nicht
|
||||
directory not found or no permission to access it! filemanager de Verzeichnis wurde nicht gefunden oder Sie haben keine Rechte um darauf zuzugreifen!
|
||||
directory successfully created. filemanager de Verzeichnis erfolgreich angelegt.
|
||||
directory with documents to insert entries filemanager de Verzeichnis mit Dokumenten zum Einfügen von Daten
|
||||
disable filemanager de Ausschalten
|
||||
disable versioning for this mountpoint filemanager de Versionierung für diesen Mountpoint ausschalten
|
||||
display and modification of content filemanager de Anzeigen und Verändern des Inhaltes
|
||||
display of content filemanager de Anzeigen des Inhaltes
|
||||
do you want to overwrite existing file %1 in directory %2? filemanager de Wollen Sie die bestehende Datei %1 im Verzeichnis %2 überschreiben?
|
||||
@ -82,6 +91,8 @@ do you want to overwrite the existing file %1? filemanager de Wollen Sie die exi
|
||||
download filemanager de Herunterladen
|
||||
edit comments filemanager de Kommentare bearbeiten
|
||||
edit settings filemanager de Eigenschaften bearbeiten
|
||||
enable filemanager de Einschalten
|
||||
enable versioning for given mountpoint filemanager de Versionierung für angegebenen Mountpoint einschalten
|
||||
enter setup user and password filemanager de Setup Benutzer und Passwort eingeben
|
||||
enter setup user and password to get root rights filemanager de Setup Benutzer und Passwort eingeben um root Rechte zu erhalten
|
||||
enter the complete vfs path to specify a fast access link to a folder filemanager de Geben Sie den kompletten VFS Pfad ein, um einen Verweis zu diesem Ordner im Seitenmenü zu erzeugen
|
||||
@ -89,8 +100,11 @@ enter the complete vfs path to specify your desired start folder. filemanager de
|
||||
error adding the acl! filemanager de Fehler beim Hinzufügen des Zugriffsrechts!
|
||||
error creating symlink to target %1! filemanager de Fehler beim Anlegen einer Verknüpfung zu %1!
|
||||
error deleting the acl entry! filemanager de Fehler beim Löschen des Zugriffsrechts!
|
||||
error mounting %1 on %2! filemanager de Fehler beim mounten von %1 nach %2!
|
||||
error unmounting %1! filemanager de Fehler beim unmounten von %1!
|
||||
error uploading file! filemanager de Fehler beim Hochladen der Datei!
|
||||
error while creating directory. filemanager de Fehler beim Anlegen des Verzeichnisses
|
||||
everyone filemanager de Jeder
|
||||
example {{if n_prefix~mr~hello mr.~hello ms.}} - search the field "n_prefix", for "mr", if found, write hello mr., else write hello ms. filemanager de Beispiel: {{IF n_prefix~Herr~Sehr geehrter~Sehr geehrte}} - Suche im Feld "n_prefix", wenn es "Herr" enthält, dann schreibe "Sehr geehrter", wenn nicht schreibe "Sehr geehrte".
|
||||
example {{letterprefixcustom n_prefix title n_family}} - example: mr dr. james miller filemanager de Beispiel: {{LETTERPREFIXCUSTOM n_prefix title n_family}} - Beispiel: Herr Dr. Hans Müller
|
||||
example {{nelf role}} - if field role is not empty, you will get a new line with the value of field role filemanager de Beispiel: {{NELF role}} - Wenn das Feld "role" nicht leer ist, dann wird der Inhalt des Feldes "role" in eine neue Zeile geschrieben.
|
||||
@ -117,6 +131,7 @@ filename must not be empty! filemanager de Dateinamen darf nicht leer sein!
|
||||
files from subdirectories filemanager de Dateien aus Unterverzeichnissen
|
||||
files in this directory filemanager de Dateien in diesem Verzeichnis
|
||||
filesystem check reported no problems. filemanager de Überprüfung des Dateisystem ergab keine Probleme.
|
||||
finally delete this version filemanager de Diese Version endgültig löschen
|
||||
fix reported problems filemanager de Gefundene Probleme beheben
|
||||
folder up filemanager de Übergeordnetes Verzeichnis
|
||||
for files linked to an application entry (inside /apps/appname/id/) the placeholders for that application are also available. see the specific application for a list of available placeholders. filemanager de Die Platzhalter für Verknüpfte Eintrage bzw. Dateien (unter /apps/appname/id) der entsprechenden Anwendung stehen Ihnen hier auch zur Verfügung. Sie können die Platzhalter auch unter der Liste der Platzhalter der entsprechenden Anwendung einsehen.
|
||||
@ -147,6 +162,8 @@ mime type filemanager de MIME-Typ
|
||||
modified filemanager de verändert
|
||||
modified between filemanager de verändert zwischen
|
||||
modify all subdirectories and their content filemanager de Änderungen auf alle Unterverzeichnisse und ihre Inhalte anwenden
|
||||
mount filemanager de Mount
|
||||
mountpoints filemanager de Mountpoints
|
||||
move filemanager de verschieben
|
||||
move into folder filemanager de Verschieben in Ordner
|
||||
move to filemanager de Verschieben nach
|
||||
@ -157,9 +174,13 @@ no access filemanager de Kein Zugriff
|
||||
no files in this directory. filemanager de Keine Dateien in diesem Verzeichnis.
|
||||
no preview available filemanager de Keine Vorschau verfügbar.
|
||||
no version history for this file/directory filemanager de Keine Versionshistorie für diese Datei oder dieses Verzeichnis.
|
||||
noone filemanager de Niemand
|
||||
older versions or deleted files filemanager de Ältere Versionen oder gelöschte Dateien
|
||||
only owner can rename or delete the content filemanager de Nur der Besitzer kann den Inhalt umbenennen oder löschen.
|
||||
open filemanager de Öffnen
|
||||
operation filemanager de Vorgang
|
||||
path %1 not found or not a directory! filemanager de Pfad %1 nicht gefunden oder kein Verzeichnis!
|
||||
percentage filemanager de Prozentual
|
||||
permission denied! filemanager de Zugriff verweigert!
|
||||
permissions filemanager de Zugriffsrechte
|
||||
permissions of %1 changed. filemanager de Zugriffsrechte von %1 geändert.
|
||||
@ -205,9 +226,12 @@ show link "your home directory" in side box menu? filemanager de Möchten Sie de
|
||||
show link "your home directory*" in side box menu?* filemanager de Möchten Sie den Verknüpfung "Ihr Home Verzeichnis" innerhalb des Seitenmenüs angezeigt bekommen?
|
||||
show link to filemanagers basedirectory (/) in side box menu? filemanager de Zeige die Verknüpfung zum Basisverzeichnis (/) des Dateimanagers im Seitenmenü?
|
||||
size filemanager de Größe
|
||||
sqlfs statistics filemanager de sqlFS Statistik
|
||||
start search filemanager de Suche starten
|
||||
startfolder filemanager de Anfangsordner
|
||||
successful mounted %1 on %2. filemanager de %1 erfolgreich nach %2 gemounted.
|
||||
superuser filemanager de Superuser
|
||||
superuser (root) filemanager de Superuser (root)
|
||||
symlink to %1 created. filemanager de Verknüpfung nach %1 angelegt.
|
||||
tag to mark positions for address labels filemanager de Symbol um die Position von Adressetiketten anzuzeigen.
|
||||
the default start folder is your personal folder. the default is used, if you leave this empty, the path does not exist or you lack the neccessary access permissions. filemanager de Die Vorgabe für das Anfangsverzeichnis ist Ihr persönlicher Ordner. Die Vorgabe wird verwendet, wenn Sie hier nichts eintragen, der Pfad nicht existiert oder Ihnen die notwendigen Zugriffsrechte fehlen.
|
||||
@ -218,6 +242,7 @@ there's already a directory with that name! filemanager de Es gibt bereits ein V
|
||||
there's already a file with that name! filemanager de Es gibt bereits eine Datei mit diesem Namen!
|
||||
to overwrite the existing file store again. filemanager de Zum Überschreiben der Datei nochmal speichern.
|
||||
total files filemanager de Gesamtanzahl Dateien
|
||||
unmount filemanager de Unmount
|
||||
unused space filemanager de Nicht benutzter Platz
|
||||
up filemanager de Nach oben
|
||||
updated comment for %1 filemanager de Kommentar für %1 aktualisiert
|
||||
@ -228,10 +253,13 @@ use this tag for addresslabels. put the content, you want to repeat, between two
|
||||
used space filemanager de Benutzter Platz
|
||||
users and groups filemanager de Benutzer und Gruppen
|
||||
versioning filemanager de Versionierung
|
||||
vfs mounts and versioning common de VFS einhängen und versionieren
|
||||
who should be allowed to finally delete deleted files or old versions of a file: filemanager de Wer soll gelöschte Dateien oder ältere Versionen endgültig löschen dürfen:
|
||||
wrong username or password! filemanager de Falscher Benutzername oder Passwort!
|
||||
you are not allowed to upload a script! filemanager de Sie dürfen KEINE Skripte hochladen!
|
||||
you can only grant additional rights, you can not take rights away! filemanager de Sie können nur zusätzliche Rechte gewähren, Rechte können NICHT weg genommen werden!
|
||||
you do not have access to %1 filemanager de Sie besitzen keine Zugriffsrechte für %1
|
||||
you need to become root, to enable or disable versioning on a directory! filemanager de Sie müssen Superuser sein, um die Versionierung für ein Verzeichnis ein- oder auszuschalten!
|
||||
you need to select an owner! filemanager de Sie müssen einen Eigentümer auswählen!
|
||||
you need to select some files first! filemanager de Sie müssen zuerst die Dateien auswählen!
|
||||
you will be redirected to your home directory. filemanager de Sie werden zu Ihrem Heimatverzeichnis geleitet.
|
||||
|
@ -1,4 +1,5 @@
|
||||
%1 already exists as a file filemanager en %1 already exists as a file.
|
||||
%1 already mounted on %2! filemanager en %1 already mounted on %2!
|
||||
%1 directories and %2 files copied. filemanager en %1 directories and %2 files copied.
|
||||
%1 directories and %2 files deleted. filemanager en %1 directories and %2 files deleted.
|
||||
%1 elements linked. filemanager en %1 elements linked.
|
||||
@ -12,6 +13,7 @@
|
||||
%1 files deleted. filemanager en %1 files deleted.
|
||||
%1 files moved. filemanager en %1 files moved.
|
||||
%1 starts with '%2' filemanager en %1 starts with '%2'
|
||||
%1 successful unmounted. filemanager en %1 successful unmounted.
|
||||
%1 successful uploaded. filemanager en %1 successfully uploaded.
|
||||
%1 the following files into current directory filemanager en %1 the following files into current directory
|
||||
%1 urls %2 to clipboard. filemanager en %1 URLs %2 to clipboard
|
||||
@ -26,21 +28,26 @@ acl added. filemanager en ACL added.
|
||||
acl deleted. filemanager en ACL deleted.
|
||||
actions filemanager en Actions
|
||||
add to clipboard filemanager en Add to clipboard
|
||||
all files common en All files
|
||||
administrators filemanager en Administrators
|
||||
all files filemanager en All files
|
||||
allow a maximum of the above configured folderlinks to be configured in settings admin en Maximum number of folder links to be configured in preferences.
|
||||
and all it's childeren filemanager en and all it's children
|
||||
application fields filemanager en Application fields
|
||||
applications common en Applications
|
||||
backend filemanager en Backend
|
||||
backend url filemanager en Backend URL
|
||||
backend url to mount filemanager en Backend URL to mount
|
||||
basedirectory filemanager en Base directory
|
||||
can't open directory %1! filemanager en Can't open directory %1!
|
||||
cancel editing %1 without saving filemanager en Cancel editing %1 without saving
|
||||
cannot create directory because it begins or ends in a space filemanager en Can not create directory because it begins or ends in a space.
|
||||
cautiously rejecting to remove folder '%1'! filemanager en Cautiously rejecting to remove folder '%1'!
|
||||
check all filemanager en Check all
|
||||
check virtual filesystem filemanager en Check virtual filesystem
|
||||
check virtual filesystem common en Check virtual filesystem
|
||||
clear search filemanager en Clear search
|
||||
clipboard is empty! filemanager en Clipboard is empty!
|
||||
comment filemanager en Comment
|
||||
configuration changed. filemanager en Configuration changed.
|
||||
copied filemanager en Copied
|
||||
copied %1 to %2 filemanager en Copied %1 to %2
|
||||
copy filemanager en Copy
|
||||
@ -75,6 +82,8 @@ directory %1 does not exist filemanager en Directory %1 does not exist.
|
||||
directory not found or no permission to access it! filemanager en Directory not found or no permission to access it!
|
||||
directory successfully created. filemanager en Directory successfully created.
|
||||
directory with documents to insert entries filemanager en Directory with documents to insert entries
|
||||
disable filemanager en Disable
|
||||
disable versioning for this mountpoint filemanager en Disable versioning for this mountpoint
|
||||
display and modification of content filemanager en Display and modification of content
|
||||
display of content filemanager en Display of content
|
||||
do you want to overwrite existing file %1 in directory %2? filemanager en Do you want to overwrite existing file %1 in directory %2?
|
||||
@ -82,6 +91,8 @@ do you want to overwrite the existing file %1? filemanager en Do you want to ove
|
||||
download filemanager en Download
|
||||
edit comments filemanager en Edit comments
|
||||
edit settings filemanager en Edit settings
|
||||
enable filemanager en Enable
|
||||
enable versioning for given mountpoint filemanager en Enable versioning for given mountpoint
|
||||
enter setup user and password filemanager en Enter setup user and password
|
||||
enter setup user and password to get root rights filemanager en Enter setup user and password to get root rights
|
||||
enter the complete vfs path to specify a fast access link to a folder filemanager en Enter the complete VFS path to specify a fast access link to a folder
|
||||
@ -89,8 +100,11 @@ enter the complete vfs path to specify your desired start folder. filemanager en
|
||||
error adding the acl! filemanager en Error adding the ACL!
|
||||
error creating symlink to target %1! filemanager en Error creating symlink to target %1!
|
||||
error deleting the acl entry! filemanager en Error deleting the ACL entry!
|
||||
error mounting %1 on %2! filemanager en Error mounting %1 on %2!
|
||||
error unmounting %1! filemanager en Error unmounting %1!
|
||||
error uploading file! filemanager en Error uploading file!
|
||||
error while creating directory. filemanager en Error while creating directory
|
||||
everyone filemanager en Everyone
|
||||
example {{if n_prefix~mr~hello mr.~hello ms.}} - search the field "n_prefix", for "mr", if found, write hello mr., else write hello ms. filemanager en Example {{IF n_prefix~Mr~Hello Mr.~Hello Ms.}} - search the field "n_prefix", for "Mr", if found, write Hello Mr., else write Hello Ms.
|
||||
example {{letterprefixcustom n_prefix title n_family}} - example: mr dr. james miller filemanager en Example {{LETTERPREFIXCUSTOM n_prefix title n_family}} - Example: Mr Dr. James Miller
|
||||
example {{nelf role}} - if field role is not empty, you will get a new line with the value of field role filemanager en Example {{NELF role}} - if field role is not empty, you will get a new line with the value of field role
|
||||
@ -117,6 +131,7 @@ filename must not be empty! filemanager en File name must not be empty!
|
||||
files from subdirectories filemanager en Files from sub directories
|
||||
files in this directory filemanager en Files in this directory
|
||||
filesystem check reported no problems. filemanager en Filesystem check reported no problems.
|
||||
finally delete this version filemanager en Finally delete this version
|
||||
fix reported problems filemanager en Fix reported problems
|
||||
folder up filemanager en Folder up
|
||||
for files linked to an application entry (inside /apps/appname/id/) the placeholders for that application are also available. see the specific application for a list of available placeholders. filemanager en For files linked to an application entry (inside /apps/appname/id/) the placeholders for that application are also available. See the specific application for a list of available placeholders.
|
||||
@ -147,6 +162,8 @@ mime type filemanager en Mime type
|
||||
modified filemanager en Modified
|
||||
modified between filemanager en Modified between
|
||||
modify all subdirectories and their content filemanager en Modify all sub directories and their content
|
||||
mount filemanager en Mount
|
||||
mountpoints filemanager en Mountpoints
|
||||
move filemanager en Move
|
||||
move into folder filemanager en Move into folder
|
||||
move to filemanager en Move to
|
||||
@ -157,9 +174,13 @@ no access filemanager en No access
|
||||
no files in this directory. filemanager en No files in this directory.
|
||||
no preview available filemanager en No preview available.
|
||||
no version history for this file/directory filemanager en No version history for this file/directory.
|
||||
noone filemanager en Noone
|
||||
older versions or deleted files filemanager en Older versions or deleted files
|
||||
only owner can rename or delete the content filemanager en Only owner can rename or delete the content.
|
||||
open filemanager en Open
|
||||
operation filemanager en Operation
|
||||
path %1 not found or not a directory! filemanager en Path %1 not found or not a directory!
|
||||
percentage filemanager en Percentage
|
||||
permission denied! filemanager en Permission denied!
|
||||
permissions filemanager en Permissions
|
||||
permissions of %1 changed. filemanager en Permissions of %1 changed.
|
||||
@ -205,9 +226,12 @@ show link "your home directory" in side box menu? filemanager en Show link "Your
|
||||
show link "your home directory*" in side box menu?* filemanager en Show link "Your home directory*" in side box menu?*
|
||||
show link to filemanagers basedirectory (/) in side box menu? filemanager en Show link to File Manager's base directory (/) in side menu?
|
||||
size filemanager en Size
|
||||
sqlfs statistics filemanager en sqlFS Statistics
|
||||
start search filemanager en Start search
|
||||
startfolder filemanager en Start folder
|
||||
successful mounted %1 on %2. filemanager en Successful mounted %1 on %2.
|
||||
superuser filemanager en Super user
|
||||
superuser (root) filemanager en Superuser (root)
|
||||
symlink to %1 created. filemanager en Symlink to %1 created.
|
||||
tag to mark positions for address labels filemanager en Tag to mark positions for address labels
|
||||
the default start folder is your personal folder. the default is used, if you leave this empty, the path does not exist or you lack the neccessary access permissions. filemanager en The default start folder is your personal folder. The default is used, if you leave this empty, the path does not exist or you lack the necessary access permissions.
|
||||
@ -218,6 +242,7 @@ there's already a directory with that name! filemanager en There's already a dir
|
||||
there's already a file with that name! filemanager en There's already a file with that name!
|
||||
to overwrite the existing file store again. filemanager en To overwrite the existing filestore again
|
||||
total files filemanager en Total files
|
||||
unmount filemanager en Unmount
|
||||
unused space filemanager en Unused space
|
||||
up filemanager en Up
|
||||
updated comment for %1 filemanager en Updated comment for %1
|
||||
@ -228,10 +253,13 @@ use this tag for addresslabels. put the content, you want to repeat, between two
|
||||
used space filemanager en Used space
|
||||
users and groups filemanager en Users and groups
|
||||
versioning filemanager en Versioning
|
||||
vfs mounts and versioning common en VFS mounts and versioning
|
||||
who should be allowed to finally delete deleted files or old versions of a file: filemanager en Who should be allowed to finally delete deleted files or old versions of a file:
|
||||
wrong username or password! filemanager en Wrong username or password!
|
||||
you are not allowed to upload a script! filemanager en You are NOT allowed to upload a script!
|
||||
you can only grant additional rights, you can not take rights away! filemanager en You can only grant additional rights, you can NOT take rights away!
|
||||
you do not have access to %1 filemanager en You do not have access to %1
|
||||
you need to become root, to enable or disable versioning on a directory! filemanager en You need to become root, to enable or disable versioning on a directory!
|
||||
you need to select an owner! filemanager en You need to select an owner!
|
||||
you need to select some files first! filemanager en You need to select some files first!
|
||||
you will be redirected to your home directory. filemanager en You will be redirected to your home directory.
|
||||
|
92
filemanager/templates/default/admin.xet
Normal file
92
filemanager/templates/default/admin.xet
Normal file
@ -0,0 +1,92 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- $Id$ -->
|
||||
<overlay>
|
||||
<template id="filemanager.admin" template="" lang="" group="0" version="1.7.001">
|
||||
<groupbox disabled="!@percent_size">
|
||||
<caption label="sqlFS Statistics"/>
|
||||
<grid>
|
||||
<columns>
|
||||
<column/>
|
||||
<column/>
|
||||
<column/>
|
||||
<column/>
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<description value="All files"/>
|
||||
<int id="total_files" readonly="true" align="right"/>
|
||||
<description value="Files"/>
|
||||
<vfs-size id="total_size" class="bold"/>
|
||||
</row>
|
||||
<row>
|
||||
<description value="Older versions or deleted files"/>
|
||||
<int id="version_files" readonly="true" align="right"/>
|
||||
<description value="Files"/>
|
||||
<vfs-size id="version_size" align="right" class="bold"/>
|
||||
</row>
|
||||
<row>
|
||||
<description value="Percentage"/>
|
||||
<description id="percent_files" align="right" class="bold"/>
|
||||
<description/>
|
||||
<description id="percent_size" align="right" class="bold"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</groupbox>
|
||||
<description value="Mountpoints" class="filemanager_header"/>
|
||||
<grid id="mounts" class="egwGridView_grid">
|
||||
<columns>
|
||||
<column/>
|
||||
<column/>
|
||||
<column disabled="!@@is_root"/>
|
||||
<column disabled="!@@is_setup"/>
|
||||
</columns>
|
||||
<rows>
|
||||
<row class="th" part="header">
|
||||
<description value="Path"/>
|
||||
<description value="Backend URL"/>
|
||||
<description value="Versioning" align="center"/>
|
||||
<description value="Mount" align="center"/>
|
||||
</row>
|
||||
<row disabled="!@@is_root" part="footer">
|
||||
<textbox id="path" class="inputFullWidth"/>
|
||||
<textbox size="50" blur="stylite.versioning://default/$path" class="inputFullWidth" id="url" statustext="Backend URL to mount"/>
|
||||
<button label="Enable" id="enable" statustext="Enable versioning for given mountpoint" class="filemanager_smallButton" align="center"/>
|
||||
<button label="Mount" id="mount" class="filemanager_smallButton" align="center"/>
|
||||
</row>
|
||||
<row class="row">
|
||||
<description id="${row}[path]"/>
|
||||
<description id="${row}[url]"/>
|
||||
<button label="Disable" id="disable[$row_cont[path]]" statustext="Disable versioning for this mountpoint" class="filemanager_smallButton" align="center"/>
|
||||
<button label="Unmount" id="umount[$row_cont[path]]" class="filemanager_smallButton" align="center"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<vbox class="filemanager_config">
|
||||
<menulist>
|
||||
<menupopup id="allow_delete_versions" onchange="1" label="Who should be allowed to finally delete deleted files or old versions of a file:" disabled="!@versioning"/>
|
||||
</menulist>
|
||||
<grid>
|
||||
<columns>
|
||||
<column/>
|
||||
<column/>
|
||||
</columns>
|
||||
<rows>
|
||||
<row disabled="@is_root">
|
||||
<description value="User"/>
|
||||
<textbox id="user"/>
|
||||
</row>
|
||||
<row disabled="@is_root">
|
||||
<description value="Password"/>
|
||||
<passwd id="password"/>
|
||||
</row>
|
||||
<row disabled="@is_root">
|
||||
<description/>
|
||||
<button label="Submit" id="sudo"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<button id="logout" label="Logout" statustext="Log out as superuser"/>
|
||||
</vbox>
|
||||
</template>
|
||||
</overlay>
|
@ -71,3 +71,18 @@ div.filemanager_navigation > label > input {
|
||||
.displayNone input, input.displayNone { display: none; }
|
||||
.selectFiles td div { border-style: groove; }
|
||||
.selectFiles div { max-height: 400px; overflow:auto;}
|
||||
|
||||
/**
|
||||
* VFS mounts and versioning
|
||||
*/
|
||||
.filemanager_smallButton {
|
||||
font-size: 90%;
|
||||
margin: 0;
|
||||
}
|
||||
.filemanager_header {
|
||||
font-size: 120%;
|
||||
font-weight: bold;
|
||||
}
|
||||
.filemanager_config > * {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user