Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
\n";
while (list($undef, $row) = each($res)) {
$email = htmlspecialchars(addcslashes(AddressBook::full_address($row), "'"), ENT_QUOTES);
if ($line % 2) {
$tr_bgcolor = $color[12];
} else {
$tr_bgcolor = $color[4];
}
echo html_tag( 'tr', '', '', $tr_bgcolor, 'nowrap' ) .
html_tag( 'td',
'"._("To")." | " .
'"._("Cc")." | " .
'"._("Bcc")."",
'center', '', 'valign="top" width="5%" nowrap' ) .
html_tag( 'td', ' ' . htmlspecialchars($row['name']), 'left', '', 'valign="top" nowrap' ) .
html_tag( 'td', ' ' .
'" . htmlspecialchars($row['email']) . ''
, 'left', '', 'valign="top"' ) .
html_tag( 'td', htmlspecialchars($row['label']), 'left', '', 'valign="top" nowrap' );
if ($includesource) {
echo html_tag( 'td', ' ' . $row['source'], 'left', '', 'valign="top" nowrap' );
}
echo "\n";
$line++;
}
echo '';
}
/* ================= End of functions ================= */
displayHtmlHeader();
/* Initialize vars */
if (!isset($query)) { $query = ''; }
if (!isset($show)) { $show = ''; }
if (!isset($backend)) { $backend = ''; }
/* Choose correct colors for top and bottom frame */
if ($show == 'form' && !isset($listall)) {
echo '';
} else {
echo '\n";
}
/* Empty search */
if (empty($query) && empty($show) && empty($listall)) {
echo html_tag( 'p', '
' .
_("No persons matching your search were found"),
'center' ) .
"\n\n";
exit;
}
/* Initialize addressbook */
$abook = addressbook_init();
/* Create search form */
if ($show == 'form' && empty($listall)) {
echo '' . "\n";
} else {
/* Show personal addressbook */
if ($show == 'blank' && empty($listall)) {
if($backend != -1 || $show == 'blank') {
if ($show == 'blank') {
$backend = $abook->localbackend;
}
$res = $abook->list_addr($backend);
if(is_array($res)) {
usort($res,'alistcmp');
display_result($res, false);
} else {
echo html_tag( 'p', '' .
sprintf(_("Unable to list addresses from %s"),
$abook->backends[$backend]->sname) . '' ,
'center' ) . "\n";
}
} else {
$res = $abook->list_addr();
usort($res,'alistcmp');
display_result($res, true);
}
} else {
if( !empty( $listall ) ){
$query = '*';
}
/* Do the search */
if (!empty($query)) {
if($backend == -1) {
$res = $abook->s_search($query);
} else {
$res = $abook->s_search($query, $backend);
}
if (!is_array($res)) {
echo html_tag( 'p', '
' .
_("Your search failed with the following error(s)") .
':
' . $abook->error . "\n" ,
'center' ) .
"\n