* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* This file provides the handling of often-used attachment types.
*
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* This file provides the handling of often-used attachment types.
*
if (isset($attachment_common_types)) {
/* Don't run this before being logged in. That may happen
when plugins include mime.php */
if (isset($attachment_common_types)) {
/* Don't run this before being logged in. That may happen
when plugins include mime.php */
/* Register rules for general types.
* These will be used if there isn't a more specific rule available. */
/* Register rules for general types.
* These will be used if there isn't a more specific rule available. */
$Args[1]['attachment_common']['href'] = Where it links to
This sets the 'href' of this plugin for a new link. */
$Args[1]['attachment_common']['href'] = Where it links to
This sets the 'href' of this plugin for a new link. */
$Args[1]['attachment_common']['href'] =
set_url_var($Args[1]['attachment_common']['href'],
'ent_id',$Args[5]);
$Args[1]['attachment_common']['href'] =
set_url_var($Args[1]['attachment_common']['href'],
'ent_id',$Args[5]);
$Args[2] . '&passed_id=' . $Args[3] . '&mailbox=' . $Args[4] .
'&passed_ent_id=' . $Args[5] . '&override_type0=message&override_type1=rfc822';
/* The link that we created needs a name. "view" will be displayed for
$Args[2] . '&passed_id=' . $Args[3] . '&mailbox=' . $Args[4] .
'&passed_ent_id=' . $Args[5] . '&override_type0=message&override_type1=rfc822';
/* The link that we created needs a name. "view" will be displayed for
/* why use the overridetype? can this be removed */
'&override_type0=text&override_type1=html';
$Args[1]['attachment_common']['href'] =
/* why use the overridetype? can this be removed */
'&override_type0=text&override_type1=html';
$Args[1]['attachment_common']['href'] =
$info['passed_id'] = $Args[3];
$info['mailbox'] = $Args[4];
$info['ent_id'] = $Args[5];
$attachment_common_show_images_list[] = $info;
$info['passed_id'] = $Args[3];
$info['mailbox'] = $Args[4];
$info['ent_id'] = $Args[5];
$attachment_common_show_images_list[] = $info;
$Args[1]['attachment_common']['href'] =
set_url_var($Args[1]['attachment_common']['href'],
'ent_id',$Args[5]);
$Args[1]['attachment_common']['href'] =
set_url_var($Args[1]['attachment_common']['href'],
'ent_id',$Args[5]);
- $QUERY_STRING = $_SERVER['QUERY_STRING'];;
-
- $Args[1]['attachment_common']['href'] = '../src/vcard.php?'. $QUERY_STRING;
+ sqgetGlobalVar('QUERY_STRING', $QUERY_STRING, SQ_SERVER);
+
+ $Args[1]['attachment_common']['href'] = SM_PATH . 'src/vcard.php?'. $QUERY_STRING;
$Args[1]['attachment_common']['href'] =
set_url_var($Args[1]['attachment_common']['href'],
'ent_id',$Args[5]);
$Args[1]['attachment_common']['href'] =
set_url_var($Args[1]['attachment_common']['href'],
'ent_id',$Args[5]);