mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Fixed default preferences, add new ones for click-and-view
This commit is contained in:
parent
7f181d11ca
commit
42f1509fa4
20
filemanager/inc/hook_add_def_pref.inc.php
Executable file
20
filemanager/inc/hook_add_def_pref.inc.php
Executable file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
global $pref;
|
||||
|
||||
$pref->change ("phpwebhosting", "name", "True");
|
||||
$pref->change ("phpwebhosting", "mime_type", "True");
|
||||
$pref->change ("phpwebhosting", "size", "True");
|
||||
$pref->change ("phpwebhosting", "created", "True");
|
||||
$pref->change ("phpwebhosting", "modified", "True");
|
||||
//$pref->change ("phpwebhosting", "owner", "False");
|
||||
$pref->change ("phpwebhosting", "createdby_id", "True");
|
||||
$pref->change ("phpwebhosting", "modifiedby_id", "True");
|
||||
//$pref->change ("phpwebhosting", "app", "False");
|
||||
$pref->change ("phpwebhosting", "comment", "True");
|
||||
//$pref->change ("phpwebhosting", "viewinnewwin", "False");
|
||||
//$pref->change ("phpwebhosting", "viewonserver", "False");
|
||||
//$pref->change ("phpwebhosting", "dotdot", "False");
|
||||
//$pref->change ("phpwebhosting", "dotfiles", "False");
|
||||
|
||||
?>
|
@ -1,18 +0,0 @@
|
||||
<?php
|
||||
|
||||
global $pref;
|
||||
|
||||
$pref->change ("phpwebhosting", "filename", "True");
|
||||
$pref->change ("phpwebhosting", "mime_type", "True");
|
||||
$pref->change ("phpwebhosting", "size", "True");
|
||||
$pref->change ("phpwebhosting", "created", "True");
|
||||
$pref->change ("phpwebhosting", "modified", "True");
|
||||
$pref->change ("phpwebhosting", "owner", "False");
|
||||
$pref->change ("phpwebhosting", "createdby", "True");
|
||||
$pref->change ("phpwebhosting", "modifiedby", "True");
|
||||
$pref->change ("phpwebhosting", "app", "False");
|
||||
$pref->change ("phpwebhosting", "comment", "True");
|
||||
$pref->change ("phpwebhosting", "dotdot", "False");
|
||||
$pref->change ("phpwebhosting", "dotfiles", "True");
|
||||
|
||||
?>
|
@ -267,7 +267,7 @@ function html_page_error ($errorwas = NULL, $title = "Error", $return = 0)
|
||||
return ($rstring);
|
||||
}
|
||||
|
||||
function html_link ($href = NULL, $text = NULL, $return = 0, $encode = 1, $linkonly = 0)
|
||||
function html_link ($href = NULL, $text = NULL, $return = 0, $encode = 1, $linkonly = 0, $target = NULL)
|
||||
{
|
||||
global $phpgw;
|
||||
global $sep;
|
||||
@ -303,7 +303,10 @@ function html_link ($href = NULL, $text = NULL, $return = 0, $encode = 1, $linko
|
||||
}
|
||||
else
|
||||
{
|
||||
$rstring = "<a href=$address>$text</a>";
|
||||
if ($target)
|
||||
$target = "target=$target";
|
||||
|
||||
$rstring = "<a href=$address $target>$text</a>";
|
||||
}
|
||||
|
||||
return (eor ($rstring, $return));
|
||||
|
@ -17,7 +17,7 @@
|
||||
/*
|
||||
To add a preference, just add it here. Key is internal name, value is displayed name
|
||||
*/
|
||||
$other_checkboxes = array ("dotdot" => "Show ..", "dotfiles" => "Show .files");
|
||||
$other_checkboxes = array ("viewinnewwin" => "View documents in new window", "viewonserver" => "View documents on server (if available)", "dotdot" => "Show ..", "dotfiles" => "Show .files");
|
||||
|
||||
if ($submit)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user