forked from extern/egroupware
button to mount /etemplates
This commit is contained in:
parent
87c442434e
commit
f96d6aefe6
@ -83,6 +83,13 @@ class filemanager_admin extends filemanager_ui
|
|||||||
lang('Root access granted.') : lang('Wrong username or password!');
|
lang('Root access granted.') : lang('Wrong username or password!');
|
||||||
$msg_type = egw_vfs::$is_root ? 'success' : 'error';
|
$msg_type = egw_vfs::$is_root ? 'success' : 'error';
|
||||||
}
|
}
|
||||||
|
elseif ($content['etemplates'] && $GLOBALS['egw_info']['user']['apps']['admin'])
|
||||||
|
{
|
||||||
|
$path = '/etemplates';
|
||||||
|
$url = 'stylite.merge://default/etemplates?merge=.&lang=0&level=1&extension=xet&url=egw';
|
||||||
|
$msg = egw_vfs::mount($url, $path) ?
|
||||||
|
lang('Successful mounted %1 on %2.',$url,$path) : lang('Error mounting %1 on %2!',$url,$path);
|
||||||
|
}
|
||||||
elseif (egw_vfs::$is_root)
|
elseif (egw_vfs::$is_root)
|
||||||
{
|
{
|
||||||
if ($content['logout'])
|
if ($content['logout'])
|
||||||
@ -147,7 +154,7 @@ class filemanager_admin extends filemanager_ui
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$content = array();
|
if (true) $content = array();
|
||||||
if ($this->versioning)
|
if ($this->versioning)
|
||||||
{
|
{
|
||||||
// statistical information
|
// statistical information
|
||||||
@ -189,6 +196,9 @@ class filemanager_admin extends filemanager_ui
|
|||||||
'admins' => lang('Administrators'),
|
'admins' => lang('Administrators'),
|
||||||
'everyone' => lang('Everyone'),
|
'everyone' => lang('Everyone'),
|
||||||
);
|
);
|
||||||
|
// show [Mount /etemplates] button for admin, if not already mounted and available
|
||||||
|
$readonlys['etemplates'] = !class_exists('stylite_merge_stream_wrapper') || egw_vfs::file_exists('/etemplates') ||
|
||||||
|
!isset($GLOBALS['egw_info']['user']['apps']['admin']);
|
||||||
//_debug_array($content);
|
//_debug_array($content);
|
||||||
|
|
||||||
$tpl = new etemplate_new('filemanager.admin');
|
$tpl = new etemplate_new('filemanager.admin');
|
||||||
|
@ -63,6 +63,7 @@
|
|||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
<vbox class="filemanager_config">
|
<vbox class="filemanager_config">
|
||||||
|
<button label="Mount /etemplates to allow customizing of eTemplates" id="etemplates"/>
|
||||||
<menulist>
|
<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"/>
|
<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>
|
</menulist>
|
||||||
|
Loading…
Reference in New Issue
Block a user