forked from extern/egroupware
Fixed check_owner() and fixed a parse error
This commit is contained in:
parent
4f689d3035
commit
1562717d19
@ -56,7 +56,7 @@
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
$bday = $bday_month . "/" . $bday_day . "/" . $bday_year;
|
$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)
|
$sql = "UPDATE addressbook set email='" . addslashes($email)
|
||||||
. "', firstname='" . addslashes($firstname)
|
. "', firstname='" . addslashes($firstname)
|
||||||
|
@ -156,7 +156,7 @@
|
|||||||
</td>
|
</td>
|
||||||
<td valign=top width=5%>
|
<td valign=top width=5%>
|
||||||
<font face=Arial, Helvetica, sans-serif size=2>
|
<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>
|
</font>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
"/addressbook/?sessionid=" . $phpgw_info["user"]["sessionid"]);
|
"/addressbook/?sessionid=" . $phpgw_info["user"]["sessionid"]);
|
||||||
|
|
||||||
if ($filter != "private")
|
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->db->query("SELECT * FROM addressbook WHERE con='$con' AND (owner='"
|
||||||
. $phpgw_info["user"]["userid"] . "' $filtermethod)");
|
. $phpgw_info["user"]["userid"] . "' $filtermethod)");
|
||||||
@ -65,7 +65,7 @@
|
|||||||
<TR>
|
<TR>
|
||||||
<TD align=left>
|
<TD align=left>
|
||||||
<?php
|
<?php
|
||||||
echo check_owner($owner,$con);
|
echo $phpgw->common->check_owner($con,$owner,"Edit");
|
||||||
?>
|
?>
|
||||||
</TD>
|
</TD>
|
||||||
<TD align=left>
|
<TD align=left>
|
||||||
|
Loading…
Reference in New Issue
Block a user