<td align="right" nowrap><i><?php echo $strFax; ?> :</i> </td> <td><?php echo empty_to_stripe($profile["work_fax"]); ?> </td> </tr> <tr> <td align="right" nowrap><i><?php echo $strHomepage; ?> :</i> </td> <td><?php echo empty_to_stripe(text_to_html($profile["homepage"])); ?> </td> </tr> </table> </td> </tr> <tr> <td colspan="2"> <br /> <?php $ab_module = $GO_MODULES->get_module('addressbook'); if ($ab_module && ($GO_SECURITY->has_permission($GO_SECURITY->user_id, $ab_module['acl_read']) || $GO_SECURITY->has_permission($GO_SECURITY->user_id, $ab_module['acl_write']))) { require_once $ab_module['path'] . 'classes/addressbook.class.inc'; $ab = new addressbook(); if (!$ab->user_is_contact($GO_SECURITY->user_id, $_REQUEST['id'])) {
function print_config_content($order, $ab, $page) { global $strSexes, $GO_USERS; $db = new db(); for ($i = 0; $i < count($order); $i++) { switch ($order[$i]) { case 'email': if ($page == 0) { echo "<td nowrap>" . mail_to(empty_to_stripe($ab->f("email")), empty_to_stripe($ab->f("email")), 'normal', true, $ab->f("id")) . " </td>\n"; } if ($page == 1) { echo '<td>' . mail_to($ab->f('email'), $ab->f('email')) . '</td>'; } if ($page == 2) { echo "<td>" . mail_to(empty_to_stripe($GO_USERS->f("email"))) . " </td>\n"; } break; case 'sex': echo '<td nowrap> ' . $strSexes[$ab->f('sex')] . ' </td>'; break; case 'birthday': case 'relation_date': $day = $ab->f($order[$i]) > 0 ? db_date_to_date($ab->f($order[$i])) : ''; echo '<td nowrap> ' . empty_to_stripe($day) . ' </td>'; break; case 'company_id': case 'parent': $db->query("SELECT name FROM ab_companies WHERE id = '" . (int) $ab->f($order[$i]) . "'"); echo '<td nowrap> ' . htmlspecialchars(empty_to_stripe($db->next_record() ? $db->f('name') : '')) . ' </td>'; break; case '': break; default: echo "<td nowrap> " . htmlspecialchars(empty_to_stripe($ab->f($order[$i]))) . " </td>\n"; } } }
echo $image_string; } echo "</a></td>\n"; echo "<td class=\"TableHead2\"><a class=\"TableHead2\" href=\"" . $_SERVER['PHP_SELF'] . "?newsort=registration_time&newdirection=" . $newdirection . "\">" . $strRegistrationDate; if ($admin_sort == "registration_time") { echo $image_string; } echo "</a></td>\n"; echo "<td class=\"TableHead2\"> </td>\n"; echo "</tr>\n"; while ($GO_USERS->next_record()) { $middle_name = $GO_USERS->f('middle_name') == '' ? '' : $GO_USERS->f('middle_name') . ' '; // $name = $GO_USERS->f('first_name').' '.$middle_name.$GO_USERS->f('last_name'); $name = $GO_USERS->f('last_name') . ' ' . $middle_name . $GO_USERS->f('first_name'); echo '<tr height="18"><td><a class="normal" href="edit_user.php?id=' . $GO_USERS->f("id") . '" title="' . $strEdit . ' ' . $name . '">' . $name . '</a> </td>'; echo '<td>' . empty_to_stripe($GO_USERS->f("company")) . ' </td>'; echo '<td>' . number_format($GO_USERS->f("logins"), 0, $_SESSION['GO_SESSION']['decimal_seperator'], $_SESSION['GO_SESSION']['thousands_seperator']) . ' </td>'; echo '<td>' . date($_SESSION['GO_SESSION']['date_format'] . ' ' . $_SESSION['GO_SESSION']['time_format'], $GO_USERS->f("lastlogin") + $_SESSION['GO_SESSION']['timezone'] * 3600) . ' </td>'; echo '<td>' . date($_SESSION['GO_SESSION']['date_format'] . ' ' . $_SESSION['GO_SESSION']['time_format'], $GO_USERS->f("registration_time") + $_SESSION['GO_SESSION']['timezone'] * 3600) . '</td>'; echo "<td> <a href='javascript:div_confirm_action(\"" . $_SERVER['PHP_SELF'] . "?delete_user="******"id") . "\",\"" . div_confirm_id($strDeletePrefix . "'" . $name . "'" . $strDeleteSuffix) . "\")' title=\"" . $strDeleteItem . " '" . $name . "'\"><img src=\"" . $GO_THEME->images['delete'] . "\" border=\"0\"></a></td>"; echo '<tr><td colspan="99" height="1"><img src="' . $GO_THEME->images['cccccc'] . '" border="0" height="1" width="100%" /></td></tr>'; } $links = ''; $max_links = 10; if ($max_rows != 0) { if ($count > $max_rows) { $links = '<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td>'; $next_start = $first + $max_rows; $previous_start = $first - $max_rows; if ($first != 0) { $links .= '<a href="' . $_SERVER['PHP_SELF'] . '?first=0"><<</a> ';
<tr> <td align="right" nowrap>' . $strPhone . ': </td> <td>' . empty_to_stripe($home_phone) . '</td> </tr> <tr> <td align="right" nowrap>' . $strFax . ': </td> <td>' . empty_to_stripe($fax) . '</td> </tr <tr> <td align="right" nowrap>' . $strEmail . ': </td> <td>' . $email . '</td> </tr> <tr> <td align="right" nowrap>' . $strCellular . ': </td> <td>' . empty_to_stripe($cellular) . '</td> </tr> <tr> <td colspan="2" nowrap>'; $mailbody .= '<a class="normal" href="' . $GO_CONFIG->full_url . 'administrator/users/register.php' . '?first_name=' . urlencode($first_name) . '&middle_name=' . urlencode($middle_name) . '&last_name=' . urlencode($last_name) . '&initials=' . urlencode($initials) . '&birthday=' . urlencode($birthday) . '&username='******'&email=' . urlencode($email) . '&address=' . urlencode($address) . '&zip=' . urlencode($zip) . '&city=' . urlencode($city) . '&state=' . urlencode($state) . '&country=' . urlencode($country) . '&home_phone=' . urlencode($home_phone) . '&fax=' . urlencode($fax) . '&cellular=' . urlencode($cellular) . '&company=' . urlencode($company) . '">' . $register_accept . '</a> '; $mailbody .= '<a class="normal" href="' . $GO_CONFIG->full_url . 'modules/addressbook/contact.php' . '?first_name=' . urlencode($first_name) . '&middle_name=' . urlencode($middle_name) . '&last_name=' . urlencode($last_name) . '&sex=' . urlencode($sex) . '&initials=' . urlencode($initials) . '&birthday=' . urlencode($birthday) . '&email=' . urlencode($email) . '&address=' . urlencode($address) . '&zip=' . urlencode($zip) . '&city=' . urlencode($city) . '&state=' . urlencode($state) . '&country=' . urlencode($country) . '&home_phone=' . urlencode($home_phone) . '&fax=' . urlencode($fax) . '&cellular=' . urlencode($cellular) . '&company=' . urlencode($company) . '">' . $register_addressbook . '</a>' . '</td></tr></table></body></html>'; $middle_name = $middle_name == '' ? '' : ' ' . $middle_name; $name = $_POST['first_name'] . $middle_name . ' ' . $_POST['last_name']; if (!sendmail($GO_CONFIG->webmaster_email, $email, $name, $register_new_user, $mailbody, '3', 'text/HTML')) { $feedback = '<p class="Error">' . $cms_sendmail_error . '</p>'; } else { echo $register_thanks; require $GO_THEME->theme_path . "footer.inc"; exit; } }
} $middle_name = $ab1->f('middle_name') == '' ? '' : $ab1->f('middle_name') . ' '; $name = $ab1->f('last_name') . ' ' . $middle_name . $ab1->f('first_name'); echo "<tr id=\"" . $ab1->f("id") . "\" class=\"" . $class . "\" height=\"20\"><td></td>\n"; if (!$require_email_address || $ab1->f('email') != '') { if ($multiselect) { echo "<td><input id=\"" . $name . "\" type=\"checkbox\" onclick=\"javacript:item_click(" . $ab1->f('id') . ", this);\" name=\"contacts[]\" value=\"" . $ab1->f($pass_value) . "\" " . $check . " /></td>"; } echo "<td><a" . $style . " class=\"normal\" href=\"javascript:_click('" . $ab1->f($pass_value) . "', 'contact');\">" . empty_to_stripe($name) . "</a> </td>\n"; } else { if ($multiselect) { echo '<td></td>'; } echo '<td><span style="' . $style . '">' . $name . '</span></td>'; } echo "<td>" . mail_to(empty_to_stripe($ab1->f("email")), empty_to_stripe($ab1->f("email")), 'normal', true, $ab1->f("id")) . " </td>\n"; echo "</tr>\n"; echo '<tr><td colspan="99" height="1"><img src="' . $GO_THEME->images['cccccc'] . '" border="0" height="1" width="100%" /></td></tr>'; } echo '<input type="hidden" name="group_end_0" />'; } else { if ($group_count > 0) { $text = $contacts_empty_group; } else { $text = $contacts_no_contacts; } echo "<tr><td colspan=\"99\" height=\"18\" class=\"normal\" width=\"100%\">" . $text . "</td></tr>"; echo '<tr><td colspan="99" height="1"><img src="' . $GO_THEME->images['cccccc'] . '" border="0" height="1" width="100%" /></td></tr>'; } } break;
function fill_config_content($order, $ab, $page, &$row, &$irow, &$firstrun) { global $strSexes, $GO_USERS; $db = new db(); for ($i = 0; $i < count($order); $i++) { switch ($order[$i]) { case 'email': if ($page == 0) { if ($firstrun) { $row[$irow++] = array('html' => mail_to(empty_to_stripe($ab->f("email")), empty_to_stripe($ab->f("email")), 'normal', true, $ab->f("id"))); } else { $row[$irow++]['html'] = mail_to(empty_to_stripe($ab->f("email")), empty_to_stripe($ab->f("email")), 'normal', true, $ab->f("id")); } } if ($page == 1) { if ($firstrun) { $row[$irow++] = array('html' => mail_to($ab->f('email'), $ab->f('email'))); } else { $row[$irow++]['html'] = mail_to($ab->f('email'), $ab->f('email')); } } if ($page == 2) { if ($firstrun) { $row[$irow++] = array('html' => mail_to(empty_to_stripe($GO_USERS->f("email")))); } else { $row[$irow++]['html'] = mail_to(empty_to_stripe($GO_USERS->f("email"))); } } break; case 'sex': $row[$irow++] = $strSexes[$ab->f('sex')]; break; case 'birthday': case 'relation_date': $day = $ab->f($order[$i]) > 0 ? db_date_to_date($ab->f($order[$i])) : ''; $row[$irow++] = empty_to_stripe($day); break; case 'company_id': case 'parent': $db->query("SELECT name FROM ab_companies WHERE id = '" . (int) $ab->f($order[$i]) . "'"); $row[$irow++] = empty_to_stripe($db->next_record() ? $db->f('name') : ''); break; case '': break; default: $row[$irow++] = empty_to_stripe($ab->f($order[$i])); } } }
<tr> <td align="right" nowrap>' . $strPhone . ': </td> <td>' . empty_to_stripe($_POST['home_phone']) . '</td> </tr> <tr> <td align="right" nowrap>' . $strFax . ': </td> <td>' . empty_to_stripe($_POST['fax']) . '</td> </tr <tr> <td align="right" nowrap>' . $strEmail . ': </td> <td>' . $_POST['email'] . '</td> </tr> <tr> <td align="right" nowrap>' . $strCellular . ': </td> <td>' . empty_to_stripe($_POST['cellular']) . '</td> </tr> <tr> <td colspan="2" nowrap>'; $mailbody .= '<a class="normal" href="' . $GO_CONFIG->full_url . '/administrator/users/register.php' . '?first_name=' . urlencode($_POST['first_name']) . '&middle_name=' . urlencode($_POST['middle_name']) . '&last_name=' . urlencode($_POST['last_name']) . '&initials=' . urlencode($_POST['initials']) . '&birthday=' . urlencode($_POST['birthday']) . '&username='******'username']) . '&email=' . urlencode($_POST['email']) . '&address=' . urlencode($_POST['address']) . '&zip=' . urlencode($_POST['zip']) . '&city=' . urlencode($_POST['city']) . '&state=' . urlencode($_POST['state']) . '&country=' . urlencode($_POST['country']) . '&home_phone=' . urlencode($_POST['home_phone']) . '&fax=' . urlencode($_POST['fax']) . '&cellular=' . urlencode($_POST['cellular']) . '&company=' . urlencode($_POST['company']) . '">' . $register_accept . '</a> '; $mailbody .= '<a class="normal" href="' . $GO_CONFIG->full_url . '/modules/addressbook/contact.php' . '?first_name=' . urlencode($_POST['first_name']) . '&middle_name=' . urlencode($_POST['middle_name']) . '&last_name=' . urlencode($_POST['last_name']) . '&sex=' . urlencode($_POST['sex']) . '&initials=' . urlencode($_POST['initials']) . '&birthday=' . urlencode($_POST['birthday']) . '&email=' . urlencode($_POST['email']) . '&address=' . urlencode($_POST['address']) . '&zip=' . urlencode($_POST['zip']) . '&city=' . urlencode($_POST['city']) . '&state=' . urlencode($_POST['state']) . '&country=' . urlencode($_POST['country']) . '&home_phone=' . urlencode($_POST['home_phone']) . '&fax=' . urlencode($_POST['fax']) . '&cellular=' . urlencode($_POST['cellular']) . '&company=' . urlencode($_POST['company']) . '">' . $register_addressbook . '</a>' . '</td></tr></table></body></html>'; $headers = "MIME-Version: 1.0\r \n"; $headers .= "Content-type: text/html; charset={$charset}\r \n"; $headers .= "Content-Transfer-Encoding: 8bit"; $headers .= "From: \"" . $_POST['first_name'] . " " . $_POST['last_name'] . "\" <" . $_POST['email'] . ">\r \n"; $headers .= "Reply-To: \"" . $_POST['first_name'] . " " . $_POST['last_name'] . "\" <" . $_POST['email'] . ">\r \n"; $headers .= "X-Mailer: Group-Office " . $GO_CONFIG->version . "\r\n\r\n"; mail($GO_CONFIG->webmaster_email, $register_new_user, '', $headers . $mailbody); echo '<table border="0" cellpadding="10" cellspacing="0"><tr><td>'; echo $register_thanks; echo '</td></tr></table>';