mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
Finished ACL (almost..), got rid of short tags
This commit is contained in:
parent
d476922fc3
commit
345eb7d14b
@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
|
||||
error_reporting (8);
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
<?
|
||||
<?php
|
||||
|
||||
?>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
|
||||
require ("./inc/main.inc.php");
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
<?
|
||||
<?php
|
||||
|
||||
?>
|
||||
|
@ -1,3 +1,3 @@
|
||||
<?
|
||||
<?php
|
||||
|
||||
?>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
|
||||
function html_form_begin ($action, $method = "post", $enctype = NULL, $string = HTML_FORM_BEGIN_STRING, $return = 0)
|
||||
{
|
||||
@ -199,6 +199,9 @@ function html_text_summary ($text = NULL, $size = NULL, $return = 0, $lang = 0)
|
||||
$rstring .= html_nbsp (3, $return);
|
||||
if ($size != NULL && $size >= 0)
|
||||
$rstring .= borkb ($size, 1, $return);
|
||||
|
||||
$rstring = html_encode ($rstring, 1);
|
||||
|
||||
if ($return)
|
||||
return ($rstring);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
|
||||
### Start Configuration Options ###
|
||||
### These are automatically set in phpGW - do not edit ###
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
|
||||
$phpgw_info["flags"] = array("currentapp" => "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
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
|
||||
$phpgw_info["flags"] = array("currentapp" => "phpwebhosting",
|
||||
"noheader" => False,
|
||||
|
Loading…
Reference in New Issue
Block a user