* $Id$
*/
-require_once('../src/validate.php');
-require_once('../functions/date.php');
-require_once('../functions/smtp.php');
-require_once('../functions/display_messages.php');
-require_once('../functions/addressbook.php');
-require_once('../functions/plugin.php');
-require_once('../functions/strings.php');
-require_once('../functions/html.php');
+/* Path for SquirrelMail required files. */
+define('SM_PATH','../');
+
+/* SquirrelMail required files. */
+require_once(SM_PATH . 'include/validate.php');
+require_once(SM_PATH . 'functions/date.php');
+require_once(SM_PATH . 'functions/smtp.php');
+require_once(SM_PATH . 'functions/display_messages.php');
+require_once(SM_PATH . 'functions/addressbook.php');
+require_once(SM_PATH . 'functions/plugin.php');
+require_once(SM_PATH . 'functions/strings.php');
+require_once(SM_PATH . 'functions/html.php');
+
+$session = $_POST['session'];
+$mailbox = $_POST['mailbox'];
+if ( isset($_POST['addrquery']) ) {
+ $addrquery = $_POST['addrquery'];
+}
+if ( isset($_POST['listall']) ) {
+ $listall = $_POST['listall'];
+}
+if ( isset($_POST['backend'] ) ) {
+ $backend = $_POST['backend'];
+}
/* Insert hidden data */
function addr_insert_hidden() {
'<input type=checkbox name="send_to_search[B' . $line . ']" value = "' .
htmlspecialchars($email) . '"> ' . _("Bcc") . ' ' ,
'center', '', 'width="5%" nowrap' ) .
- html_tag( 'td', ' ' . $row['name'] . ' ', 'left', '', 'nowrap' ) .
- html_tag( 'td', ' ' . $row['email'] . ' ', 'left', '', 'nowrap' ) .
- html_tag( 'td', ' ' . $row['label'] . ' ', 'left', '', 'nowrap' );
+ html_tag( 'td', ' ' . htmlspecialchars($row['name']) . ' ', 'left', '', 'nowrap' ) .
+ html_tag( 'td', ' ' . htmlspecialchars($row['email']) . ' ', 'left', '', 'nowrap' ) .
+ html_tag( 'td', ' ' . htmlspecialchars($row['label']) . ' ', 'left', '', 'nowrap' );
if ($includesource) {
echo html_tag( 'td', ' ' . $row['source'] . ' ', 'left', '', 'nowrap' );
/* --- End functions --- */
-global $mailbox;
if ($compose_new_win == '1') {
compose_Header($color, $mailbox);
}