Fixed check_owner() and fixed a parse error

This commit is contained in:
jengo 2000-09-05 07:12:26 +00:00
parent 4f689d3035
commit 1562717d19
3 changed files with 4 additions and 4 deletions

View File

@ -56,7 +56,7 @@
} else {
$bday = $bday_month . "/" . $bday_day . "/" . $bday_year;
$access = $phpgw->groups->array_to_string($access,$n_groups);
$access = $phpgw->accounts->array_to_string($access,$n_groups);
$sql = "UPDATE addressbook set email='" . addslashes($email)
. "', firstname='" . addslashes($firstname)

View File

@ -156,7 +156,7 @@
</td>
<td valign=top width=5%>
<font face=Arial, Helvetica, sans-serif size=2>
<?php echo check_owner($phpgw->db->f("owner"),$phpgw->db->f("con")); ?>
<?php echo $phpgw->common->check_owner($phpgw->db->f("owner"),"edit.php",lang_common("edit"),"con=" . $phpgw->db->f("con")); ?>
</font>
</td>
</tr>

View File

@ -23,7 +23,7 @@
"/addressbook/?sessionid=" . $phpgw_info["user"]["sessionid"]);
if ($filter != "private")
$filtermethod = " or access='public' " . $phpgw->groups->sql_search();
$filtermethod = " or access='public' " . $phpgw->accounts->sql_search("access");
$phpgw->db->query("SELECT * FROM addressbook WHERE con='$con' AND (owner='"
. $phpgw_info["user"]["userid"] . "' $filtermethod)");
@ -65,7 +65,7 @@
<TR>
<TD align=left>
<?php
echo check_owner($owner,$con);
echo $phpgw->common->check_owner($con,$owner,"Edit");
?>
</TD>
<TD align=left>