Finished ACL (almost..), got rid of short tags

This commit is contained in:
zone 2001-06-25 07:28:51 +00:00
parent d476922fc3
commit 345eb7d14b
9 changed files with 18 additions and 13 deletions

View File

@ -1,4 +1,4 @@
<?
<?php
error_reporting (8);

View File

@ -1,3 +1,3 @@
<?
<?php
?>

View File

@ -1,4 +1,4 @@
<?
<?php
require ("./inc/main.inc.php");

View File

@ -1,3 +1,3 @@
<?
<?php
?>

View File

@ -1,3 +1,3 @@
<?
<?php
?>

View File

@ -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);
}

View File

@ -1,4 +1,4 @@
<?
<?php
### Start Configuration Options ###
### These are automatically set in phpGW - do not edit ###

View File

@ -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
{

View File

@ -1,4 +1,4 @@
<?
<?php
$phpgw_info["flags"] = array("currentapp" => "phpwebhosting",
"noheader" => False,