return $refer;
}
}
-?>
+?>
\ No newline at end of file
}
-?>
+?>
\ No newline at end of file
* sent and regular output to begin, which will majorly screw
* things up when we try to send more headers later.
*/
-?>
+?>
\ No newline at end of file
*
* LDAP filtering code by Tim Bell
* <bhat at users.sourceforge.net> (#539534)
- * ADS limit_scope code by Michael Brown
+ * ADS limit_scope code by Michael Brown
* <mcb30 at users.sourceforge.net> (#1035454)
*
* @version $Id$
$expr = $this->charset_encode($expr);
/*
- * allow use of one asterisk in search.
+ * allow use of one asterisk in search.
* Don't allow any ldap special chars if search is different
*/
if($expr!='*') {
/**
* Create and initialize an addressbook object.
- * @param boolean $showerr display any address book init errors. html page header
+ * @param boolean $showerr display any address book init errors. html page header
* must be created before calling addressbook_init() with $showerr enabled.
* @param boolean $onlylocal enable only local address book backends
* @return object address book object.
}
/* Global file based addressbook */
- if (isset($abook_global_file) &&
+ if (isset($abook_global_file) &&
isset($abook_global_file_writeable) &&
isset($abook_global_file_listing) &&
trim($abook_global_file)!=''){
// Detect place of address book
if (! preg_match("/[\/\\\]/",$abook_global_file)) {
/* no path chars, address book stored in data directory
- * make sure that there is a slash between data directory
+ * make sure that there is a slash between data directory
* and address book file name
*/
$abook_global_filename=$data_dir
}
/**
- * Adds href and text keys to attachment_common array for image attachments
+ * Adds href and text keys to attachment_common array for image attachments
* @param array $Args attachment $type hook arguments
* @since 1.2.0
*/
}
/**
- * Adds href and text keys to attachment_common array for vcard attachments
+ * Adds href and text keys to attachment_common array for vcard attachments
* @param array $Args attachment $type hook arguments
* @since 1.2.0
*/
/**
* Processes octet-stream attachments.
- * Calls attachment_common-load_mime_types and attachment $type hooks.
+ * Calls attachment_common-load_mime_types and attachment $type hooks.
* @param array $Args attachment $type hook arguments
* @since 1.2.0
*/
}
}
-?>
+?>
\ No newline at end of file
$optpage_save_error=array_merge($optpage_save_error,array($message));
}
// vim: et ts=4
-?>
+?>
\ No newline at end of file
if (!@file_exists($filename) ) {
/* If it does not exist, check for default_prefs */
-
+
/* First, check legacy locations: data dir */
if(substr($data_dir,-1) != '/') {
$data_dir .= '/';
if (!@file_exists($default_pref)) {
$default_pref = SM_PATH . 'config/default_pref';
}
-
+
/* If a default_pref file found, try to copy it, if none found,
* try to create an empty one. If that fails, report an error.
*/
}
// vim: et ts=4
-?>
+?>
\ No newline at end of file
{
if (substr_count($folder_name, '"') || substr_count($folder_name, "\\") ||
substr_count($folder_name, $delimiter) || ($folder_name == '')) {
-
+
global $color;
error_box(_("Illegal folder name.") . "<br />\n" .
- sprintf(_("The name may not contain any of the following: %s"), '<tt>" \\ '.$delimiter.'</tt>')
- . "<br />\n" .
- _("Please select a different name.").
- '<br /><a href="folders.php">'.
- _("Click here to go back") . '</a>.', $color);
+ sprintf(_("The name may not contain any of the following: %s"), '<tt>" \\ '.$delimiter.'</tt>')
+ . "<br />\n" .
+ _("Please select a different name.").
+ '<br /><a href="folders.php">'.
+ _("Click here to go back") . '</a>.', $color);
sqimap_logout($imapConnection);
exit;
global $folder_prefix;
$folder_name = imap_utf7_encode_local($folder_name);
-
+
if ( ! empty($contain_subs) ) {
$folder_name = $folder_name . $delimiter;
}
if ( $old == '' ) {
plain_error_message(_("You have not selected a folder to rename. Please do so.").
'<br /><a href="../src/folders.php">'._("Click here to go back").'</a>.', $color);
- sqimap_logout($imapConnection);
+ sqimap_logout($imapConnection);
exit;
}
'<input type="submit" name="cancelbutton" value="'._("Cancel")."\" />\n".
'</form><br /></td></tr></table>';
echo "\n</td></tr></table>\n</td></tr></table>\n\n</body></html>";
-
- sqimap_logout($imapConnection);
+
+ sqimap_logout($imapConnection);
exit;
}
$orig = imap_utf7_encode_local($orig);
$old_name = imap_utf7_encode_local($old_name);
$new_name = imap_utf7_encode_local($new_name);
-
+
if ($old_name != $new_name) {
if (strpos($orig, $delimiter)) {
echo "\n</td></tr></table>\n</td></tr></table>\n\n</body></html>";
- sqimap_logout($imapConnection);
+ sqimap_logout($imapConnection);
exit;
}
function folders_delete_do ($imapConnection, $delimiter, $folder_name)
{
require_once(SM_PATH . 'functions/tree.php');
-
+
$boxes = sqimap_mailbox_list ($imapConnection);
global $delete_folder, $imap_server_type, $trash_folder, $move_to_trash;
'<br /><a href="../src/folders.php">'._("Click here to go back").'</a>.', $color);
sqimap_logout($imapConnection);
exit;
-
+
}
}
foreach ( $folder_names as $folder_name ) {
}
-?>
+?>
\ No newline at end of file
function addInputField($type, $name = null, $value = null, $attributes = '', $id = null) {
return '<input type="'.$type.'"'.
($name !== null ? ' name="'.htmlspecialchars($name).'"' : '').
- ($id !== null ? ' id="'.htmlspecialchars($id).'"'
+ ($id !== null ? ' id="'.htmlspecialchars($id).'"'
: ($name !== null ? ' id="'.htmlspecialchars($name).'"' : '')).
($value !== null ? ' value="'.htmlspecialchars($value).'"' : '').
$attributes . " />\n";
$enctype . $name . $charset . ">\n";
}
-?>
+?>
\ No newline at end of file
}
// vim: et ts=4
-?>
+?>
\ No newline at end of file
*
* @param string $charset
* @param string $string Text to be decoded
- * @param boolean $force_decode converts string to html without $charset!=$default_charset check.
+ * @param boolean $force_decode converts string to html without $charset!=$default_charset check.
* Argument is available since 1.5.1 and 1.4.5.
* @return string decoded string
*/
* If function is asked to detect preferred language
* OR squirrelmail default language is set to empty string
* AND
- * squirrelmail language ($sm_language) is empty string
+ * squirrelmail language ($sm_language) is empty string
* (not set in user's prefs and no cookie with language info)
* AND
* browser provides list of preferred languages
* THEN
* get preferred language from HTTP_ACCEPT_LANGUAGE header
*/
- if (($do_search || empty($squirrelmail_default_language)) &&
- ! $sm_language &&
+ if (($do_search || empty($squirrelmail_default_language)) &&
+ ! $sm_language &&
isset($accept_lang)) {
// TODO: use more than one language, if first language is not available
// FIXME: function assumes that string contains two or more characters.
* THEN
* use default squirrelmail language value from configuration.
*/
- if ((!$sm_language||$default) &&
+ if ((!$sm_language||$default) &&
! empty($squirrelmail_default_language)) {
$squirrelmail_language = $squirrelmail_default_language;
$sm_language = $squirrelmail_default_language;
/**
* mbstring.func_overload fix (#929644).
*
- * php mbstring extension can replace standard string functions with their multibyte
+ * php mbstring extension can replace standard string functions with their multibyte
* equivalents. See http://www.php.net/ref.mbstring#mbstring.overload.
*
* Some SquirrelMail functions work with 8bit strings in bytes. If interface is forced
* to use mbstring functions and mbstring internal encoding is set to multibyte charset,
- * interface can't trust regular string functions. Due to mbstring overloading design
+ * interface can't trust regular string functions. Due to mbstring overloading design
* limits php scripts can't control this setting.
*
* This hack should fix some issues related to 8bit strings in passwords. Correct fix is
* to disable mbstring overloading. Japanese translation uses different internal encoding.
*/
- if ($squirrelmail_language != 'ja_JP' &&
+ if ($squirrelmail_language != 'ja_JP' &&
function_exists('mb_internal_encoding') &&
check_php_version(4,2,0) &&
(int)ini_get('mbstring.func_overload')!=0) {
require_once(SM_PATH . 'functions/mailbox_display.php');
require_once(SM_PATH . 'functions/mime.php');
-?>
+?>
\ No newline at end of file
* @global bool imap_asearch_debug_dump
* @param string $var_name
* @param string $var_var
- * @deprecated contains workarounds for 1.4.0 and older code.
+ * @deprecated contains workarounds for 1.4.0 and older code.
* code without workarounds uses regular sm 1.4.2+ functions.
* it is not compatible with 1.4.1
* @todo remove debugging function
* (LIST|LSUB) (<Flags list>) (NIL|"<separator atom>") <mailbox name string>\r\n
* mailbox name in quoted string MUST be unquoted and stripslashed (sm API)
*
- * Originally stored in functions/strings.php. Since 1.2.6 stored in
+ * Originally stored in functions/strings.php. Since 1.2.6 stored in
* functions/imap_mailbox.php
* @param string $line imap LIST/LSUB response line
* @return string mailbox name
* separator character, returns the second last part of the full
* mailbox name (i.e. the mailbox's parent mailbox)
*
- * Originally stored in functions/strings.php. Since 1.2.6 stored in
+ * Originally stored in functions/strings.php. Since 1.2.6 stored in
* functions/imap_mailbox.php
* @param string $haystack full mailbox name
* @param string $needle delimiter
- * @return string parent mailbox
+ * @return string parent mailbox
*/
function readMailboxParent($haystack, $needle) {
if ($needle == '') {
/**
* Defines special mailboxes: given a mailbox name, it checks if this is a
* "special" one: INBOX, Trash, Sent or Draft.
- *
+ *
* Since 1.2.5 function includes special_mailbox hook.<br>
* Since 1.4.3 hook supports more than one plugin.
* @param string $box mailbox name
/**
* Expunges a mailbox
- *
+ *
* WARNING: Select mailbox before calling this function.
- *
- * permanently removes all messages that have the \Deleted flag
- * set from the selected mailbox. See EXPUNGE command chapter in
+ *
+ * permanently removes all messages that have the \Deleted flag
+ * set from the selected mailbox. See EXPUNGE command chapter in
* IMAP RFC.
* @param stream $imap_stream imap connection resource
* @param string $mailbox mailbox name (unused since 1.1.3).
* Before 1.3.0 used more arguments and returned data depended on those argumements.
* @param stream $imap_stream imap connection resource
* @param string $mailbox mailbox name
- * @return array results of select command (on success - permanentflags, flags and rights)
+ * @return array results of select command (on success - permanentflags, flags and rights)
* @since 1.0 or older
*/
function sqimap_mailbox_select ($imap_stream, $mailbox) {
* Creates a folder.
*
* Mailbox is automatically subscribed.
- *
- * Set $type to string that does not match 'noselect' (case insensitive),
- * if you don't want to prepend delimiter to mailbox name. Please note
- * that 'noinferiors' might be used someday as keyword for folders
+ *
+ * Set $type to string that does not match 'noselect' (case insensitive),
+ * if you don't want to prepend delimiter to mailbox name. Please note
+ * that 'noinferiors' might be used someday as keyword for folders
* that store only messages.
* @param stream $imap_steam imap connection resource
* @param string $mailbox mailbox name
/* Find INBOX's children */
for($k = 0; $k < $cnt; ++$k) {
- if (!$used[$k] && isBoxBelow(strtolower($boxesall[$k]['unformatted']), 'inbox') &&
+ if (!$used[$k] && isBoxBelow(strtolower($boxesall[$k]['unformatted']), 'inbox') &&
strtolower($boxesall[$k]['unformatted']) != 'inbox') {
$boxesnew[] = $boxesall[$k];
$used[$k] = true;
- }
+ }
}
-
+
/* Rest of the folders */
for($k = 0; $k < $cnt; $k++) {
if (!$used[$k]) {
return $msg;
}
-?>
+?>
\ No newline at end of file
return $composesession;
}
-?>
+?>
\ No newline at end of file
* be displayed as the actual message in the HTML. It contains
* everything needed, including HTML Tags, Attachments at the
* bottom, etc.
- *
+ *
* Since 1.2.0 function uses message_body hook.
* Till 1.3.0 function included output of formatAttachments().
*
/**
* If we don't add html message between iframe tags,
* we must detect unsafe images and modify $has_unsafe_images.
- */
+ */
$html_body = magicHTML($body, $id, $message, $mailbox);
// creating iframe url
$iframeurl=sqm_baseuri().'src/view_html.php?'
- . 'mailbox=' . $urlmailbox
+ . 'mailbox=' . $urlmailbox
. '&passed_id=' . $id
. '&ent_id=' . $ent_num
. '&view_unsafe_images=' . (int) $view_unsafe_images;
$body = html_tag('div',_("Viewing HTML formatted email"),'center');
/**
- * height can't be set to 100%, because it does not work as expected when
- * iframe is inside the table. Browsers do not create full height objects
- * even when iframe is not nested. Maybe there is some way to get full size
+ * height can't be set to 100%, because it does not work as expected when
+ * iframe is inside the table. Browsers do not create full height objects
+ * even when iframe is not nested. Maybe there is some way to get full size
* with CSS. Tested in firefox 1.02 and opera 7.53
*
* width="100%" does not work as expected, when table width is not set (automatic)
.' frameborder="1" marginwidth="0" marginheight="0" scrolling="auto">' . "\n";
// Message for browsers without iframe support
- //$body.= _("Your browser does not support inline frames.
+ //$body.= _("Your browser does not support inline frames.
// You can view HTML formated message by following below link.");
- //$body.= "<br /><a href=\"$iframeurl\">"._("View HTML Message")."</a>";
+ //$body.= "<br /><a href=\"$iframeurl\">"._("View HTML Message")."</a>";
// if browser can't render iframe, it renders html message.
$body.= $html_body;
$body.="</iframe></div>\n";
} else {
// old way of html rendering
- $body = magicHTML($body, $id, $message, $mailbox);
+ $body = magicHTML($body, $id, $message, $mailbox);
}
} else {
translateText($body, $wrap_at,
* Since 1.0.2 uses attachment $type0/$type1 hook.
* Since 1.2.5 uses attachment $type0/* hook.
* Since 1.5.0 uses attachments_bottom hook.
- *
+ *
* @param object $message SquirrelMail message object
* @param array $exclude_id message parts that are not attachments.
* @param string $mailbox mailbox name
} else {
$attachments .= ' | ';
}
- $attachments .= '<a href="' . $val['href'] . '">'
- . (isset($val['text']) && !empty($val['text']) ? $val['text'] : '')
- . (isset($val['extra']) && !empty($val['extra']) ? $val['extra'] : '')
+ $attachments .= '<a href="' . $val['href'] . '">'
+ . (isset($val['text']) && !empty($val['text']) ? $val['text'] : '')
+ . (isset($val['extra']) && !empty($val['extra']) ? $val['extra'] : '')
. '</a>';
}
unset($links);
}
}
}
-
+
if (!empty($linkurl)) {
$httpurl = $quotchar . SM_PATH . 'src/download.php?absolute_dl=true&' .
"passed_id=$id&mailbox=" . urlencode($mailbox) .
*/
$httpurl = $quotchar . SM_PATH . 'images/blank.png';
}
-
+
return $httpurl;
}
if ((preg_match_all($MailTo_PReg_Match, $trusted, $regs)) && ($regs[0][0] != '')) {
foreach ($regs[0] as $i => $mailto_before) {
$mailto_params = $regs[10][$i];
-
+
// get rid of any tailing quote since we have to add send_to to the end
//
if (substr($mailto_before, strlen($mailto_before) - 1) == '"')
$mailto_before = substr($mailto_before, 0, strlen($mailto_before) - 1);
if (substr($mailto_params, strlen($mailto_params) - 1) == '"')
$mailto_params = substr($mailto_params, 0, strlen($mailto_params) - 1);
-
+
if ($regs[1][$i]) { //if there is an email addr before '?', we need to merge it with the params
$to = 'to=' . $regs[1][$i];
if (strpos($mailto_params, 'to=') > -1) //already a 'to='
$mailto_params .= '?' . $to;
}
}
-
+
$url_str = preg_replace(array('/to=/i', '/(?<!b)cc=/i', '/bcc=/i'), array('send_to=', 'send_to_cc=', 'send_to_bcc='), $mailto_params);
-
+
// we'll already have target=_blank, no need to allow comp_in_new
// here (which would be a lot more work anyway)
//
$compose_new_win = 0;
$comp_uri = makeComposeLink('src/compose.php' . $url_str, $mailto_before);
$compose_new_win = $temp_comp_in_new;
-
+
// remove <a href=" and anything after the next quote (we only
// need the uri, not the link HTML) in compose uri
//
}
echo "<body text=\"$color[8]\" bgcolor=\"$color[4]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\" $sBodyTagJs>\n\n";
}
-?>
+?>
\ No newline at end of file
return strtoupper($string);
}
$PHP_SELF = php_self();
-?>
+?>
\ No newline at end of file
return (array_key_exists(0, $addresses) ? $addresses[0] : '');
}
-?>
+?>
\ No newline at end of file
}
-?>
+?>
\ No newline at end of file
);
-?>
+?>
\ No newline at end of file
break;
case SMOPT_TYPE_PATH:
if ( sqgetGlobalVar($e, $new_v, SQ_POST) ) {
- // FIXME: fix use of $data_dir in $attachment_dir
+ // FIXME: fix use of $data_dir in $attachment_dir
$v = change_to_sm_path($new_v);
$newcfg[$k] = $v;
}
echo ' /> ' . _("Show button in toolbar") . "</td></tr>\n";
}
-?>
+?>
\ No newline at end of file
}
}
// compatibility plugin can be used without need to enable it in sm config
- if (file_exists(SM_PATH . 'plugins/compatibility/setup.php')
+ if (file_exists(SM_PATH . 'plugins/compatibility/setup.php')
&& ! in_array('compatibility',$plugins)) {
$str.= ' * compatibility';
include_once(SM_PATH . 'plugins/compatibility/setup.php');
function filters_optpage_register_block() {
global $optpage_blocks, $AllowSpamFilters;
if (!file_exists(SM_PATH . 'plugins/filters/config.php')) return;
-
+
$optpage_blocks[] = array(
'name' => _("Message Filters"),
'url' => SM_PATH . 'plugins/filters/options.php',
function start_filters() {
global $imapServerAddress, $imapPort, $imap_stream, $imapConnection,
$UseSeparateImapConnection, $AllowSpamFilters;
-
+
if (!file_exists(SM_PATH . 'plugins/filters/config.php')) return;
-
+
sqgetGlobalVar('username', $username, SQ_SESSION);
sqgetGlobalVar('key', $key, SQ_COOKIE);
$filters[$i]['what'], $filters[$i]['folder'], $filters_user_scan, $expunge);
} else if ($filters[$i]['where'] == 'Message Body') {
$expunge = filter_search_and_delete($imap_stream, 'BODY',
- $filters[$i]['what'], $filters[$i]['folder'], $filters_user_scan, $expunge);
+ $filters[$i]['what'], $filters[$i]['folder'], $filters_user_scan, $expunge);
} else {
/*
* If it's a normal TO, CC, SUBJECT, or FROM, then handle it
* @param string $what String to search for
* @param string $where_to Folder it will move to
* @param string $user_scan Whether to search all or just unseen
- * @param string $should_expunge
+ * @param string $should_expunge
* @param boolean $where Which part of location to search
* @access private
*/
/**
* Swaps two filters
* @param int $id1 ID of first filter to swap
- * @param int $id2 ID of second filter to swap
+ * @param int $id2 ID of second filter to swap
* @access private
*/
function filter_swap($id1, $id2) {
function update_for_folder ($args) {
if (!file_exists(SM_PATH . 'plugins/filters/config.php')) return;
-
+
$old_folder = $args[0];
$new_folder = $args[2];
$action = $args[1];
$imap_stream = sqimap_login($username, $key, $imapServerAddress, $imapPort, 10);
// check if destination folder is not set, is not subscribed and is not \noselect folder
- if($mailfetch_subfolder == '' ||
+ if($mailfetch_subfolder == '' ||
! mail_fetch_check_folder($imap_stream,$mailfetch_subfolder)) {
$mailfetch_subfolder = 'INBOX';
}
/**
* Checks if folder is noselect (can't store messages)
- *
+ *
* Function does not check if folder subscribed.
* @param stream $imap_stream imap connection resource
* @param string $imap_folder imap folder name
while (list($lineNum, $line) = each ($MessArray)) {
$Message .= $line;
}
-
+
// check if mail folder is not null and subscribed (There is possible issue with /noselect mail folders)
- if ($mailfetch_subfolder=='' ||
+ if ($mailfetch_subfolder=='' ||
! mail_fetch_check_folder($imap_stream,$mailfetch_subfolder)) {
fputs($imap_stream, "A3$i APPEND INBOX {" . strlen($Message) . "}\r\n");
} else {
/**
* Converts 8bit string to hex
*
- * Replaces 8bit symbols with their hex strings,
+ * Replaces 8bit symbols with their hex strings,
* encloses them in curly brackets and uses different color.
* @param string $string text
* @return string
* Returns actual message details
* @param string $mailbox
* @param string $passed_id
- * @param boolean $stripHTML If TRUE, only plain text is returned,
- * default is FALSE, wherein output contains
+ * @param boolean $stripHTML If TRUE, only plain text is returned,
+ * default is FALSE, wherein output contains
* pretty-HTMLification of message body
* @return string The formatted message details
* @access public
$returnValue .= $message_body;
-if (!$stripHTML)
+if (!$stripHTML)
$returnValue .= '</div></div></font></code></body></html>';
return $returnValue;
}
-?>
+?>
\ No newline at end of file
'&get_message_details=yes&passed_id=' . "$passed_id" .
'" name="bottom_frame" frameborder="0" />';
echo '</frameset>'."\n"."</html>\n";
-?>
+?>
\ No newline at end of file
'</form></center>'.
'</body>'.
"</html>\n";
-?>
+?>
\ No newline at end of file
if (isset($newmail_mediacompat_mode) && $newmail_mediacompat_mode)
$ret.= newmail_media_embed($object,$types[0],$path,$args,$addsuffix);
- // add $extra code inside objects
+ // add $extra code inside objects
if ($extra!='')
$ret.=$extra . "\n";
/**
* Creates embed tags of multimedia object
- *
+ *
* docs about embed
* Apple: http://www.apple.com/quicktime/authoring/embed.html
*
case SM_NEWMAIL_FILETYPE_MP3:
case SM_NEWMAIL_FILETYPE_SVG:
default:
- $ret_embed='';
+ $ret_embed='';
}
return $ret_embed;
}
/**
* Adds closing tags for ie object
* Warning:
- * * This is internal function, use newmail_media_objects() instead
+ * * This is internal function, use newmail_media_objects() instead
* @param integer $type media object type
* @return string closing tag of media object
*/
case SM_NEWMAIL_FILETYPE_OGG:
case SM_NEWMAIL_FILETYPE_SVG:
default:
- $ret_end='';
+ $ret_end='';
}
return $ret_end;
}
/**
* Adds closing tags for object
* Warning:
- * * This is internal function, use newmail_media_objects() instead
+ * * This is internal function, use newmail_media_objects() instead
* @param integer $type media object type
* @return string closing tag of media object
*/
$ret_end="</object>\n";
break;
default:
- $ret_end='';
+ $ret_end='';
}
return $ret_end;
}
/**
* Adds closing tags for object
* Warning:
- * * This is internal function, use newmail_media_objects() instead
+ * * This is internal function, use newmail_media_objects() instead
* @param integer $type media object type
* @return string closing tag of media object
*/
case SM_NEWMAIL_FILETYPE_MP3:
case SM_NEWMAIL_FILETYPE_SVG:
default:
- $ret_end='';
+ $ret_end='';
}
return $ret_end;
}
* Converts media attributes to string
* Warning:
* * attribute values are automatically sanitized by htmlspecialchars()
- * * This is internal function, use newmail_media_objects() instead
+ * * This is internal function, use newmail_media_objects() instead
* @param array $args array with object attributes
* @return string string with object attributes
*/
function newmail_media_prepare_args($args) {
$ret_args='';
foreach ($args as $arg => $value) {
- $ret_args.= $arg . '="' . htmlspecialchars($value) . '" ';
+ $ret_args.= $arg . '="' . htmlspecialchars($value) . '" ';
}
return $ret_args;
}
*/
/**
- * define SM_PATH
+ * define SM_PATH
* @ignore
*/
define('SM_PATH','../../');
$media = getPref($data_dir,$username,'newmail_media', '(none)');
// get other prefs
$newmail_userfile_type=getPref($data_dir,$username,'newmail_userfile_type',false);
-
+
$newmail_userfile_location=getHashedFile($username, $data_dir, $username . '.sound');
if ($newmail_userfile_type!=false && file_exists($newmail_userfile_location)) {
echo html_tag( 'tr' )
. html_tag('td',_("Width of popup window:"),'right','', 'style="white-space: nowrap;"')
- . html_tag('td','<input type="text" name="popup_width" value="'
+ . html_tag('td','<input type="text" name="popup_width" value="'
. (int)$newmail_popup_width . '" size="3" maxlengh="3" />'
. ' <small>(' . _("If set to 0, reverts to default value") . ')</small>','left')
. "</tr>\n";
echo html_tag( 'tr' )
. html_tag('td',_("Height of popup window:"),'right','', 'style="white-space: nowrap;"')
- . html_tag('td','<input type="text" name="popup_height" value="'
+ . html_tag('td','<input type="text" name="popup_height" value="'
. (int)$newmail_popup_height . '" size="3" maxlengh="3" />'
. ' <small>(' . _("If set to 0, reverts to default value") . ')</small>','left')
. "</tr>\n";
"</script>\n";
}
}
-?>
+?>
\ No newline at end of file
echo sprintf(_("SquirrelMail is a feature rich, standards compliant webmail application written in PHP. It was made by a group of volunteers united in the SquirrelMail Project Team and is released as open source, free software under the %sGNU General Public License%s."),'<a href="http://www.gnu.org/copyleft/gpl.html" target="_blank">','</a>');
// add space between two sentences.
-// Don't want to join two sprintf strings.
+// Don't want to join two sprintf strings.
echo ' ';
// i18n: %s tags are used in order to remove html URL attributes from translation
</td></tr>
<tr><td align="center">© 1999 - 2005 The SquirrelMail Project Team</td></tr>
</table></p>
-</body></html>
+</body></html>
\ No newline at end of file
border="0"
src="addrbook_search.php?show=blank" />
</frameset>
-</html>
+</html>
\ No newline at end of file
html_tag( 'td',
'<input type="submit" name="addr_search_done" value="' .
_("Use Addresses") . '" /> ' .
- '<input type="submit" name="addr_search_cancel" value="' .
- _("Cancel") . '" />',
+ '<input type="submit" name="addr_search_cancel" value="' .
+ _("Cancel") . '" />',
'center', '', 'colspan="'. $td_colspan .'"' )
) .
'</table>' .
}
?>
-</body></html>
+</body></html>
\ No newline at end of file
}
} else {
/**
- * $editaddr is set, but $sel (address selection in address listing)
- * and $doedit (address edit form) are not set.
+ * $editaddr is set, but $sel (address selection in address listing)
+ * and $doedit (address edit form) are not set.
* Assume that user clicked on "Edit address" without selecting any address.
*/
$formerror = _("Please select address that you want to edit");
if (! $allow_remote_configtest) {
sqGetGlobalVar('REMOTE_ADDR',$client_ip,SQ_SERVER);
if (! isset($client_ip) || $client_ip!='127.0.0.1') {
- do_err('Enable "Allow remote configtest" option in squirrelmail configuration in order to use this script.');
+ do_err('Enable "Allow remote configtest" option in squirrelmail configuration in order to use this script.');
}
}
/* checking PHP specs */
if ( $squirrelmail_default_language != 'en_US' ) {
$loc_path = SM_PATH .'locale/'.$squirrelmail_default_language.'/LC_MESSAGES/squirrelmail.mo';
if( ! file_exists( $loc_path ) ) {
- do_err('You have set <i>' . $squirrelmail_default_language .
+ do_err('You have set <i>' . $squirrelmail_default_language .
'</i> as your default language, but I cannot find this translation (should be '.
'in <tt>' . $loc_path . '</tt>). Please note that you have to download translations '.
'separately from the main SquirrelMail package.', FALSE);
} elseif ( ! is_readable( $loc_path ) ) {
- do_err('You have set <i>' . $squirrelmail_default_language .
+ do_err('You have set <i>' . $squirrelmail_default_language .
'</i> as your default language, but I cannot read this translation (file '.
'in <tt>' . $loc_path . '</tt> unreadable).', FALSE);
} else {
<p><a href="login.php">Login now</a></p>
</body>
-</html>
-<?php
-// vim: et ts=4
-?>
+</html>
\ No newline at end of file
$location = get_location();
header ("Location: $location/left_main.php");
-?>
+?>
\ No newline at end of file
folders_unsubscribe($imapConnection, $folder_names);
$td_str = _("Unsubscribed successfully.");
break;
- }
+ }
// if there are any messages, output them.
if ( !empty($td_str) ) {
echo addForm('folders.php')
. addHidden('smaction', 'unsubscribe')
. "<tt><select name=\"folder_names[]\" multiple=\"multiple\" size=\"8\">\n";
- foreach ( $boxes as $box ) {
+ foreach ( $boxes as $box ) {
$use_folder = true;
if ((strtolower($box["unformatted"]) != "inbox") &&
($box['unformatted'] != $trash_folder) &&
// here we filter out all boxes we're already subscribed to,
// so we keep only the unsubscribed ones.
foreach ($boxes_all as $box_a) {
-
+
$use_folder = true;
foreach ( $boxes as $box ) {
if ($box_a['unformatted'] == $box['unformatted'] ||
$use_folder = false;
}
}
-
+
if ($use_folder == true) {
- $box_enc = htmlspecialchars($box_a['unformatted-dm']);
+ $box_enc = htmlspecialchars($box_a['unformatted-dm']);
$box_disp = htmlspecialchars(imap_utf7_decode_local($box_a['unformatted-disp']));
$subboxes[$box_enc] = $box_disp;
}
}
-
+
if ( count($subboxes) > 0 ) {
echo addForm('folders.php')
. addHidden('smaction', 'subscribe')
</table>
</td></tr>
</table>
-</body></html>
+</body></html>
\ No newline at end of file
html_tag( 'td', ' ', 'left', $color[0] )
);
?>
-</table></body></html>
+</table></body></html>
\ No newline at end of file
$font = "<font color=\"$color[15]\">";
$fontend = '</font>';
}
-
+
// let plugins fiddle with end of line
$end .= concat_hook_function('left_main_after_each_folder',
array(isset($numMessages) ? $numMessages : '',
if (!$boxes->is_root) {
echo "" . $pre .$font.
- str_replace(
+ str_replace(
array(' ','<','>'),
array(' ','<','>'),
$boxes->mailboxname_sub) .
echo '<div id="leftframe"><br /><br />';*/
}
-echo "\n\n" .
+echo "\n\n" .
'<center><font size="4"><b>'. _("Folders") . "</b><br /></font>\n\n";
if ($date_format != 6) {
}
$clk = str_replace(' ',' ',$clk);
- echo '<small><span style="white-space: nowrap;">'
- . str_replace(' ', ' ', _("Last Refresh"))
+ echo '<small><span style="white-space: nowrap;">'
+ . str_replace(' ', ' ', _("Last Refresh"))
. ":</span><br /><span style=\"white-space: nowrap;\">$clk</span></small><br />\n";
}
sqimap_logout($imapConnection);
?>
-</body></html>
+</body></html>
\ No newline at end of file
*/
if($imap_auth_mech == 'login') {
/**
- * detect disabled login, only when imapServerAddress contains
+ * detect disabled login, only when imapServerAddress contains
* server address and not mapping. See sqimap_get_user_server()
*/
if (substr($imapServerAddress, 0, 4) != "map:") {
do_hook('login_bottom');
?>
-</body></html>
+</body></html>
\ No newline at end of file
'desc' => _("The order of the message index can be rearranged and changed to contain the headers in any order you want."),
'js' => false
);
-
+
/* Build a section for Compose Options. */
$optpage_blocks[] = array(
'name' => _("Compose Preferences"),
</table>
</td></tr>
</table>
-</body></html>
+</body></html>
\ No newline at end of file
} /* end pf_clean_string() function */
/* --end pf-specific functions */
-?>
+?>
\ No newline at end of file
'</form>',
'right' );
?>
-</body></html>
+</body></html>
\ No newline at end of file
sqsession_register($attachment_common_types, 'attachment_common_types');
}
-?>
+?>
\ No newline at end of file
'center', $color[4], 'width="50%" cellpadding="2" cellspacing="0" border="0"' )
?>
</body>
-</html>
+</html>
\ No newline at end of file
$header = parse_viewheader($imapConnection,$passed_id, $passed_ent_id);
view_header($header, $mailbox, $color);
-?>
+?>
\ No newline at end of file
* Displays html message parts
*
* File is used to display html message parts. Usually inside iframe.
- * It should be called with passed_id, ent_id and mailbox options in
- * GET request. passed_ent_id and view_unsafe_images options are
- * optional. User must be authenticated ($key in cookie. $username and
+ * It should be called with passed_id, ent_id and mailbox options in
+ * GET request. passed_ent_id and view_unsafe_images options are
+ * optional. User must be authenticated ($key in cookie. $username and
* $onetimepad in session).
- *
+ *
* Copyright (c) 1999-2005 The SquirrelMail Project Team
* This file is part of SquirrelMail webmail interface.
- *
+ *
* SquirrelMail is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
$output = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Frameset//EN\">\n".
"<html><head>\n" .
- "<meta name=\"robots\" content=\"noindex,nofollow\">\n" .
+ "<meta name=\"robots\" content=\"noindex,nofollow\">\n" .
"<title>$org_title</title>\n".
"</head>";
echo $output;
?>
</frameset>
-</html>
+</html>
\ No newline at end of file
if (!$sFlags) { $sFlags = ' '; }
return $sFlags;
}
-?>
+?>
\ No newline at end of file