$tit\n";
}
/* ------------------------ main ------------------------ */
$imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
$boxes = sqimap_mailbox_list($imapConnection);
if( $mailbox == 'None' ) {
$mailbox = $boxes[0]['unformatted'];
}
displayPageHeader($color, $mailbox);
if( !isset( $search_memory ) ) {
$search_memory = 0;
}
do_hook('search_before_form');
echo "
\n".
"
\n".
" |
';
if( $search_memory > 0 ) {
if( isset( $pos) ) {
setpref( $data_dir, $username, 'search_pos', $pos );
} else {
$pos = getPref($data_dir, $username, 'search_pos', 0 );
}
}
for ( $form = 0; $form <= $search_memory; $form++ ) {
$frm = "$form";
$what = "what$frm";
$where = "where$frm";
if( $search_memory > 0 ) {
if ( $$what == '' ) {
$$what = getPref($data_dir, $username, "search_what$frm", '' );
$$where = getPref($data_dir, $username, "search_where$frm", '' );
} else {
setpref( $data_dir, $username, "search_what$frm", $$what );
setpref( $data_dir, $username, "search_where$frm", $$where );
}
}
echo " |