summaryrefslogtreecommitdiff
path: root/forum/utils/addressbook.php
diff options
context:
space:
mode:
Diffstat (limited to 'forum/utils/addressbook.php')
-rw-r--r--forum/utils/addressbook.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/forum/utils/addressbook.php b/forum/utils/addressbook.php
index c3c5d65..fb34156 100644
--- a/forum/utils/addressbook.php
+++ b/forum/utils/addressbook.php
@@ -5,6 +5,7 @@ function form($cid,
$posturl,
$buttontext,
$name = "",
+ $co = "",
$address = "",
$city = "",
$country = "",
@@ -21,6 +22,7 @@ function form($cid,
<form method="post" action="<?php echo $posturl; ?>">
<input type="hidden" name="cid" value="<?php echo $cid;?>">
Name: <input name="name" value="<?php echo $name;?>"><br/>
+ c/o: <input name="co" value="<?php echo $co;?>"><br/>
Address: <input name="address" value="<?php echo $address;?>"><br/>
City: <input name="city" value="<?php echo $city;?>"><br/>
Country: <input name="country" value="<?php echo $country;?>"><br/>
@@ -51,6 +53,7 @@ if($action == "addgroup" && $gid) {
elseif($action == "addcontact" && $gid && $cid) {
$contact = new Contact($cid,
$name,
+ $co,
$address,
$city,
$country,
@@ -74,6 +77,7 @@ elseif($action =="editcontact" && $cid) {
"?mode=addressbook&amp;action=updatecontact".$gid,
"Update contact",
$contact->name,
+ $contact->co,
$contact->address,
$contact->city,
$contact->country,
@@ -91,6 +95,7 @@ elseif($action == "updatecontact" && $cid) {
$contact = $contacts->getContact($cid);
$contact->name = $name;
+ $contact->co = $co;
$contact->address = $address;
$contact->city = $city;
$contact->country = $country;