From 345eb7d14bdfeb4749f5918d6eb78b2b1b27722f Mon Sep 17 00:00:00 2001 From: zone Date: Mon, 25 Jun 2001 07:28:51 +0000 Subject: [PATCH] Finished ACL (almost..), got rid of short tags --- filemanager/inc/db.inc.php | 2 +- filemanager/inc/footer.inc.php | 2 +- filemanager/inc/functions.inc.php | 2 +- filemanager/inc/header.inc.php | 2 +- filemanager/inc/hook_admin.inc.php | 2 +- filemanager/inc/html.inc.php | 5 ++++- filemanager/inc/main.inc.php | 2 +- filemanager/index.php | 12 +++++++----- filemanager/test.php | 2 +- 9 files changed, 18 insertions(+), 13 deletions(-) diff --git a/filemanager/inc/db.inc.php b/filemanager/inc/db.inc.php index deee016c68..ff0afccde6 100755 --- a/filemanager/inc/db.inc.php +++ b/filemanager/inc/db.inc.php @@ -1,4 +1,4 @@ - diff --git a/filemanager/inc/functions.inc.php b/filemanager/inc/functions.inc.php index adc4f53e1b..f8671376f7 100644 --- a/filemanager/inc/functions.inc.php +++ b/filemanager/inc/functions.inc.php @@ -1,4 +1,4 @@ - diff --git a/filemanager/inc/hook_admin.inc.php b/filemanager/inc/hook_admin.inc.php index 770465f09e..62a2de0c86 100644 --- a/filemanager/inc/hook_admin.inc.php +++ b/filemanager/inc/hook_admin.inc.php @@ -1,3 +1,3 @@ - diff --git a/filemanager/inc/html.inc.php b/filemanager/inc/html.inc.php index e346a5bd5f..62e17323dc 100755 --- a/filemanager/inc/html.inc.php +++ b/filemanager/inc/html.inc.php @@ -1,4 +1,4 @@ -= 0) $rstring .= borkb ($size, 1, $return); + + $rstring = html_encode ($rstring, 1); + if ($return) return ($rstring); } diff --git a/filemanager/inc/main.inc.php b/filemanager/inc/main.inc.php index 69115632fb..d478b45095 100755 --- a/filemanager/inc/main.inc.php +++ b/filemanager/inc/main.inc.php @@ -1,4 +1,4 @@ - "phpwebhosting", "noheader" => False, @@ -133,14 +133,16 @@ if ((preg_match ("+^$fakebase\/(.*)(\/|$)+U", $path, $matches)) && $matches[1] ! html_page_close (); } -/* WIP - how are we actually supposed to use the API to determine if a group has access to an app? - $group_acl = CreateObject('phpgwapi.acl', $phpgw->accounts->name2id ($matches[1])); - if ($group_acl->get_specific_rights () == False) + $group_applications = CreateObject('phpgwapi.applications', $phpgw->accounts->name2id ($matches[1])); + + $app_array = $group_applications->read_account_specific (); + if (!$app_array[$appname]["enabled"]) { echo $phpgw->common->error_list (array ("The group $matches[1] does not have access to $appname")); + html_break (2); + html_link ("$appname/index.php?path=$homedir", "Go to your home directory"); html_page_close (); } -*/ } else { diff --git a/filemanager/test.php b/filemanager/test.php index d8dd279fa7..df3ab6ba7b 100644 --- a/filemanager/test.php +++ b/filemanager/test.php @@ -1,4 +1,4 @@ - "phpwebhosting", "noheader" => False,