should always set "optpage" as a POST or GET variable with a string that
uniquely identifies your plugin:
- <input type="hidden" name="optpage" value="plugin_demo">
+ <input type="hidden" name="optpage" value="plugin_demo" />
Now in your demo_save_options_do() function, do something like this:
So, even in the HTML segments of your plugin files, you need to do this:
- <input type="submit" value="<?php echo _("Submit") ?>">
+ <input type="submit" value="<?php echo _("Submit"); ?>" />
You can put any text you want inside of the quotes (you MUST use double
quotes!), including HTML tags, etc. What you should think carefully
$r = $abook->add_backend('ldap_server', $param);
if (!$r && $showerr) {
printf( ' ' . _("Error initializing LDAP server %s:") .
- "<BR>\n", $param['host']);
+ "<br />\n", $param['host']);
echo ' ' . $abook->error;
exit;
}
if (is_array($res)) {
$ret = array_merge($ret, $res);
} else {
- $this->error .= "<br>\n" . $backend->error;
+ $this->error .= "<br />\n" . $backend->error;
$failed++;
}
}
$ret = $this->backends[$bnum]->search($expression);
if (!is_array($ret)) {
- $this->error .= "<br>\n" . $this->backends[$bnum]->error;
+ $this->error .= "<br />\n" . $this->backends[$bnum]->error;
$ret = FALSE;
}
}
/* Otherwise, report an error. */
$errTitle = sprintf( _("Error opening %s"), $default_pref );
if (!is_readable($default_pref)) {
- $errString = $errTitle . "<br>\n" .
- _("Default preference file not found or not readable!") . "<br>\n" .
- _("Please contact your system administrator and report this error.") . "<br>\n";
+ $errString = $errTitle . "<br />\n" .
+ _("Default preference file not found or not readable!") . "<br />\n" .
+ _("Please contact your system administrator and report this error.") . "<br />\n";
logout_error( $errString, $errTitle );
exit;
} else if (!@copy($default_pref, $filename)) {
$user_data = posix_getpwuid(posix_getuid());
$uid = $user_data['name'];
}
- $errString = $errTitle . '<br>' .
- _("Could not create initial preference file!") . "<br>\n" .
+ $errString = $errTitle . '<br />' .
+ _("Could not create initial preference file!") . "<br />\n" .
sprintf( _("%s should be writable by user %s"), $data_dir, $uid ) .
- "<br>\n" . _("Please contact your system administrator and report this error.") . "<br>\n";
+ "<br />\n" . _("Please contact your system administrator and report this error.") . "<br />\n";
logout_error( $errString, $errTitle );
exit;
}
}
// vim: et ts=4
+?>
\ No newline at end of file
else { //Straight copy of 1.5 imap_general.php:sqimap_error_box(). Can be removed at a later time
global $color;
require_once(SM_PATH . 'functions/display_messages.php');
- $string = "<font color=$color[2]><b>\n" . $title . "</b><br>\n";
+ $string = "<font color=\"$color[2]\"><b>\n" . $title . "</b><br />\n";
if ($query != '')
- $string .= _("Query:") . ' ' . htmlspecialchars($query) . '<br>';
+ $string .= _("Query:") . ' ' . htmlspecialchars($query) . '<br />';
if ($message_title != '')
$string .= $message_title;
if ($message != '')
$string .= htmlspecialchars($message);
if ($link != '')
$string .= $link;
- $string .= "</font><br>\n";
+ $string .= "</font><br />\n";
error_box($string,$color);
}
}
return ($mbox_search);
}
-?>
+?>
\ No newline at end of file
global $squirrelmail_language, $color;
set_up_language($squirrelmail_language);
require_once(SM_PATH . 'functions/display_messages.php');
- $string = "<b><font color=$color[2]>\n" .
+ $string = "<b><font color=\"$color[2]\">\n" .
_("ERROR : No available imapstream.") .
"</b></font>\n";
error_box($string,$color);
global $squirrelmail_language, $color;
set_up_language($squirrelmail_language);
require_once(SM_PATH . 'functions/display_messages.php');
- $string = "<b><font color=$color[2]>\n" .
+ $string = "<b><font color=\"$color[2]\">\n" .
_("ERROR : No available imapstream.") .
"</b></font>\n";
error_box($string,$color);
global $color, $squirrelmail_language;
set_up_language($squirrelmail_language);
require_once(SM_PATH . 'functions/display_messages.php');
- $string = "<b><font color=$color[2]>\n" .
+ $string = "<b><font color=\"$color[2]\">\n" .
_("ERROR : Bad function call.") .
- "</b><br>\n" .
+ "</b><br />\n" .
_("Reason:") . ' '.
- 'There is a plugin installed which make use of the <br>' .
- 'SquirrelMail internal function sqimap_read_data_list.<br>'.
- 'Please adapt the installed plugin and let it use<br>'.
- 'sqimap_run_command or sqimap_run_command_list instead<br><br>'.
- 'The following query was issued:<br>'.
- htmlspecialchars($query) . '<br>' . "</font><br>\n";
+ 'There is a plugin installed which make use of the <br />' .
+ 'SquirrelMail internal function sqimap_read_data_list.<br />'.
+ 'Please adapt the installed plugin and let it use<br />'.
+ 'sqimap_run_command or sqimap_run_command_list instead<br /><br />'.
+ 'The following query was issued:<br />'.
+ htmlspecialchars($query) . '<br />' . "</font><br />\n";
error_box($string,$color);
echo '</body></html>';
exit;
set_up_language($squirrelmail_language);
require_once(SM_PATH . 'functions/display_messages.php');
- $string = "<font color=$color[2]><b>\n" . $title . "</b><br>\n";
+ $string = "<font color=\"$color[2]\"><b>\n" . $title . "</b><br />\n";
$cmd = explode(' ',$query);
$cmd= strtolower($cmd[0]);
if ($query != '' && $cmd != 'login')
- $string .= _("Query:") . ' ' . htmlspecialchars($query) . '<br>';
+ $string .= _("Query:") . ' ' . htmlspecialchars($query) . '<br />';
if ($message_title != '')
$string .= $message_title;
if ($message != '')
$string .= htmlspecialchars($message);
- $string .= "</font><br>\n";
+ $string .= "</font><br />\n";
if ($link != '')
$string .= $link;
error_box($string,$color);
$server = 'tls://' . $server;
} else {
require_once(SM_PATH . 'functions/display_messages.php');
- $string = "Unable to connect to IMAP server!<br>TLS is enabled, but this " .
+ $string = "Unable to connect to IMAP server!<br />TLS is enabled, but this " .
"version of PHP does not support TLS sockets, or is missing the openssl " .
- "extension.<br><br>Please contact your system administrator.";
+ "extension.<br /><br />Please contact your system administrator.";
logout_error($string,$color);
}
}
set_up_language($squirrelmail_language, true);
require_once(SM_PATH . 'functions/display_messages.php');
$string = sprintf (_("Error connecting to IMAP server: %s.") .
- "<br>\r\n", $server) .
- "$error_number : $error_string<br>\r\n";
+ "<br />\r\n", $server) .
+ "$error_number : $error_string<br />\r\n";
logout_error($string,$color);
exit;
}
set_up_language($squirrelmail_language, true);
require_once(SM_PATH . 'functions/display_messages.php');
if ($response == 'BAD') {
- $string = sprintf (_("Bad request: %s")."<br>\r\n", $message);
+ $string = sprintf (_("Bad request: %s")."<br />\r\n", $message);
} else {
- $string = sprintf (_("Unknown error: %s") . "<br>\n", $message);
+ $string = sprintf (_("Unknown error: %s") . "<br />\n", $message);
}
if (isset($read) && is_array($read)) {
- $string .= '<br>' . _("Read data:") . "<br>\n";
+ $string .= '<br />' . _("Read data:") . "<br />\n";
foreach ($read as $line) {
- $string .= htmlspecialchars($line) . "<br>\n";
+ $string .= htmlspecialchars($line) . "<br />\n";
}
}
error_box($string,$color);
require_once(SM_PATH . 'functions/display_messages.php');
$reason = $regs[3];
if ($regs[2] == 'NO') {
- $string = "<b><font color=$color[2]>\n" .
+ $string = "<b><font color=\"$color[2]\">\n" .
_("ERROR : Could not append message to") ." $folder." .
- "</b><br>\n" .
+ "</b><br />\n" .
_("Server responded: ") .
- $reason . "<br>\n";
+ $reason . "<br />\n";
if (preg_match("/(.*)(quota)(.*)$/i", $reason, $regs)) {
$string .= _("Solution: ") .
_("Remove unneccessary messages from your folder and start with your Trash folder.")
- ."<br>\n";
+ ."<br />\n";
}
$string .= "</font>\n";
error_box($string,$color);
} else {
- $string = "<b><font color=$color[2]>\n" .
+ $string = "<b><font color=\"$color[2]\">\n" .
_("ERROR : Bad or malformed request.") .
- "</b><br>\n" .
+ "</b><br />\n" .
_("Server responded: ") .
- $tmp . "</font><br>\n";
+ $tmp . "</font><br />\n";
error_box($string,$color);
exit;
}
return chop(substr($yp, strlen($username)+1));
}
-?>
+?>
\ No newline at end of file
/**
* Returns list of options (to be echoed into select statement
* based on available mailboxes and separators
- * Caller should surround options with <SELECT..> </SELECT> and
+ * Caller should surround options with <select ...> </select> and
* any formatting.
* $imap_stream - $imapConnection to query for mailboxes
* $show_selected - array containing list of mailboxes to pre-select (0 if none)
function OptionSubmit( $name ) {
echo html_tag( 'tr',
- html_tag( 'td', '<input type="submit" value="' . _("Submit") . '" name="' . $name . '"> ', 'right', '', 'colspan="2"' )
+ html_tag( 'td', '<input type="submit" value="' . _("Submit") . '" name="' . $name . '" /> ', 'right', '', 'colspan="2"' )
) . "\n";
}
// vim: et ts=4
-?>
+?>
\ No newline at end of file
$real_hash_dir .= '/' . $hash_dirs[$h];
if (!@is_dir($real_hash_dir)) {
if (!@mkdir($real_hash_dir, 0770)) {
- echo sprintf(_("Error creating directory %s."), $real_hash_dir) . '<br>' .
- _("Could not create hashed directory structure!") . "<br>\n" .
- _("Please contact your system administrator and report this error.") . "<br>\n";
+ echo sprintf(_("Error creating directory %s."), $real_hash_dir) . '<br />' .
+ _("Could not create hashed directory structure!") . "<br />\n" .
+ _("Please contact your system administrator and report this error.") . "<br />\n";
exit;
}
}
for ($j = 0; $j < count($tree[$index]['subNodes']); $j++) {
simpleWalkTreePre($tree[$index]['subNodes'][$j], $tree);
}
- echo $tree[$index]['value'] . '<br>';
+ echo $tree[$index]['value'] . '<br />';
} else {
- echo $tree[$index]['value'] . '<br>';
+ echo $tree[$index]['value'] . '<br />';
}
}
?>
\ No newline at end of file
<p>
Yes. The address book search will display all matches for the
search criteria entered in the search box. If 10 names are displayed
- any combination may be selected for either the <B>To:</B> or <B>CC:</B>
+ any combination may be selected for either the <b>To:</b> or <b>CC:</b>
fields. All selected addresses will be inserted into the proper
field when the Use Address button is pressed.
</p>
<description>
<p>
SquirrelMail uses the IMAP protocol, info on it can be found
- <A HREF="http://imap.org"/>here</A>. The program also uses
+ <a href="http://imap.org"/>here</a>. The program also uses
its own IMAP functions, not those built in to PHP4. This won't
matter to anybody except those responsible for installing it,
but trust us when we say they appreciate it.
stored and made available. If configured to use the universities
LDAP server, SquirrelMail would then be able to list all campus email
address (along with the other address book fields if available).
- SquirrelMail's LDAP use is truly powerful in that it <I>combines</I>
+ SquirrelMail's LDAP use is truly powerful in that it <i>combines</i>
your local address book and the LDAP address server information to
present all of the information as if it was a single address book.
</p><p>
</summary>
<description>
<p>
- So what exactly is <A HREF="http://www.squirrelmail.org/index.php3?from=1">SquirrelMail</A>?
- It's a web interface to email that's written in <A HREF="http://www.php.net">PHP4</A>.
+ So what exactly is <a href="http://www.squirrelmail.org/index.php3?from=1">SquirrelMail</a>?
+ It's a web interface to email that's written in <a href="http://www.php.net">PHP4</a>.
It was designed to allow email access through your server from
anywhere in the world via the Web. More information about exactly
- how it does this and the IMAP protocol can be found <A HREF="http://imap.org">here</A>.
+ how it does this and the IMAP protocol can be found <a href="http://imap.org">here</a>.
</p>
</description>
</chapter>
From
</title>
<description>
- <p>The <B>From:</B> field will only be displayed if you have enabled multiple
+ <p>The <b>From:</b> field will only be displayed if you have enabled multiple
identities (through the Options, Personal Preferences menu). If you've done
so you can choose which identity you want to use, i.e. which name and
email address appear as the From-line of your message.
</title>
<description>
<p>
- Next is the <B>To:</B> field. In this field you should
+ Next is the <b>To:</b> field. In this field you should
enter the email address of the person or persons you are sending a
message to. You may enter as many addresses as you like, separating
them with a comma. One may also press the "Addresses" button to fill
</title>
<description>
<p>
- Next is the <B>CC:</B> field. CC is an abbreviation for <B>C</B>arbon
- <B>C</B>opy. If you wish to send someone else a copy of the message
+ Next is the <b>CC:</b> field. CC is an abbreviation for <b>C</b>arbon
+ <b>C</b>opy. If you wish to send someone else a copy of the message
here is where you would do that. Think of this in the same way a memo
- is laid out. You can have as many people as you like in the <B>To:</B>,
- <B>CC:</B>, and <B>BCC:</B> fields. Only the people to whom the message
- has direct impact would be in the <B>To:</B> field while recipients to
- whom this is possibly only informative would be in the <B>CC:</B> and
- <B>BCC:</B> fields.
+ is laid out. You can have as many people as you like in the <b>To:</b>,
+ <b>CC:</b>, and <b>BCC:</b> fields. Only the people to whom the message
+ has direct impact would be in the <b>To:</b> field while recipients to
+ whom this is possibly only informative would be in the <b>CC:</b> and
+ <b>BCC:</b> fields.
</p>
</description>
</section>
</title>
<description>
<p>
- BCC is an abbreviation for <B>B</B>lind <B>C</B>arbon <B>C</B>opy.
- Use this to send someone a copy of the email <I>without</I> the
- recipients in the <B>To:</B> or <B>CC:</B> fields knowing about it.
+ BCC is an abbreviation for <b>B</b>lind <b>C</b>arbon <b>C</b>opy.
+ Use this to send someone a copy of the email <i>without</i> the
+ recipients in the <b>To:</b> or <b>CC:</b> fields knowing about it.
</p>
</description>
</section>
<p>
Located at the bottom of the Compose page, this feature allows you to
include a file with your email. The file must be located on your
- <I>local</I> machine or network to be attached. A browse button is
+ <i>local</i> machine or network to be attached. A browse button is
present so you may search through your directory structure and click
on the file to include. Alternatively you may type directly into the
attach field if you know the full path and exact file name. Simply
</p><p>
The first folder listed contains received mail. To the
right of the first folder is a number in parentheses
- "( )" reflecting the count of <I>unread</I> emails.
+ "( )" reflecting the count of <i>unread</i> emails.
This number is likely to vary from the total number
of emails displayed in the right frame. Under the main
folder are likely to be other folders or subfolders.
<description>
<p>
You may delete any folder displayed in the drop down list box to
- the left of the Delete button. Notice that this list may <B>not</B>
+ the left of the Delete button. Notice that this list may <b>not</b>
include all the folders displayed. The special folders such as
your sent or your trash folder cannot be deleted, and of course,
you cannot delete INBOX.
<description>
<p>
You may rename any folder displayed in the drop down list box to the
- left of the Rename button. Notice that this list may <B>not</B>
+ left of the Rename button. Notice that this list may <b>not</b>
include all the folders displayed in the left frame. For obvious
reasons, you cannot rename the sent, trash, or INBOX folders.
</p>
Unsubscribe and Subscribe
</title>
<description>
- Definitions:<br>
+ Definitions:<br />
<i>Subscribe</i>: To register a folder with the mail server, allowing
- you to view it in the folder listings.<br>
+ you to view it in the folder listings.<br />
<i>Unsubscribe</i>: The opposite of subscribing. This unregisters a
- folder with the mail server.<br>
- <br><p>
+ folder with the mail server.<br />
+ <br /><p>
You may choose as many folders as you wish from either the subscribe
or the unsubscribe box, then click the button under the box to make
the action take effect. You will notice that the folders move to the
menu choice is a line which informs you which mails you are viewing
numerically and how many total you have.
</p><p>
- For example: Viewing messages <B>20</B> to <B>30</B> (45 total).
+ For example: Viewing messages <b>20</b> to <b>30</b> (45 total).
</p><p>
Notice that the total message count might be different from the unread
mail count which is to the right of the main mail folder.
message, and if you see the "!", then the message was marked as urgent!
</p><p>
What remains is the actual message table. You will notice that unread
- messages are <B>bold</B> while viewed messages are in normal text.
+ messages are <b>bold</b> while viewed messages are in normal text.
Four fields form this table. On the far left is a select box. When
selected, the message on the same line is subject to the actions previously
discussed (moving, marking (un)read and deletion).
The Toggle All link at the top of the list allows you to check all
- select boxes at once.<BR>
+ select boxes at once.<br />
Under the From header is listed whom
the message is from. Surprising, we know. But hey, you don't have to read
this. The date is listed next, and finally the subject.
Personal Information
</title>
<description>
- <b>Full Name</b><br>
+ <b>Full Name</b><br />
You should put your entire name here. For example, "John Doe". This is what is
shown to people that you send the message to. They will see that it is from
"John Doe". If you don't fill this in, they will see it is from your email address,
"jdoe@mydomain.org".
- <br><br>
+ <br /><br />
- <b>E-Mail Address</b><br>
+ <b>E-Mail Address</b><br />
<i>Optional</i> - If your email address is different than what is automatically
assigned, you can change it here.
- <br><br>
+ <br /><br />
- <b>Reply To</b><br>
+ <b>Reply To</b><br />
<i>Optional</i> - This is the email address that people will reply to when they
reply to your message. If this is different than the email address you are sending
from, you can enter it here. This is useful if you want people to reply to your
Yahoo account rather than your office address.
- <br><br>
+ <br /><br />
- <b>Multiple Identities</b><BR>
+ <b>Multiple Identities</b><br />
Click this link to edit multiple identities. This is useful if you want to
choose between different From-lines for different messages (for example
containing your work or your home emailaddress. On the page that appears,
you can add as many identities as you like. You will be offered a choice
- of these when composing a message.<br><br>
+ of these when composing a message.<br /><br />
- <b>Reply Citation</b><BR>
+ <b>Reply Citation</b><br />
If you press Reply on a message, you will be presented with the Compose
form with the original message quoted. Before this quoted message, a text
- like <TT>John Doe wrote:</TT> might be prepended (if the message you're replying
+ like <tt>John Doe wrote:</tt> might be prepended (if the message you're replying
to originated from John Doe). This is called the citation line. Here you
- can choose how this line looks.<BR>
- <UL>
- <LI><B>No Citation</B><br>
- Prepends no citation line whatsoever.<br><br>
- <LI><B>Author Said</B><br>
- This produces the line: <TT>John Doe Said:</TT> where John Doe will be replaced
- by whoever the message you're replying to was from.<br><br>
- <LI><B>Quote Who XML</B><br>
- This produces the line: <TT><quote who="John Doe"></TT>.<br><br>
- <LI><B>User-Defined</B><br>
+ can choose how this line looks.<br />
+ <ul>
+ <li><b>No Citation</b><br />
+ Prepends no citation line whatsoever.<br /><br />
+ <li><b>Author Said</b><br />
+ This produces the line: <tt>John Doe Said:</tt> where John Doe will be replaced
+ by whoever the message you're replying to was from.<br /><br />
+ <li><b>Quote Who XML</b><br />
+ This produces the line: <tt><quote who="John Doe"></tt>.<br /><br />
+ <li><b>User-Defined</b><br />
Enables you to define your own citation line. In the two text boxes below, you
can type in the citation start and end. Between these the author name will be
inserted.
- </UL><br><br>
+ </ul><br /><br />
- <b>Signature</b><br>
+ <b>Signature</b><br />
<i>Optional</i> - Signatures are attached at the bottom of all messages you send
out. If you want a signature, you must make sure that the checkbox beside
"use a signature" is checked, and then fill in what you want your signature to be
in the box below it.
- <br><br>
+ <br /><br />
</description>
</section>
Display Preferences
</title>
<description>
- <b>Theme</b><br>
+ <b>Theme</b><br />
SquirrelMail offers different color themes for your viewing pleasure. You can
choose between the many listed there if you so desire.
- <br><br>
+ <br /><br />
- <b>Custom Stylesheet</b><br>
+ <b>Custom Stylesheet</b><br />
Changing a theme only changes the colors, a stylesheet may change more, for
example the font size used by SquirrelMail.
- <br><br>
+ <br /><br />
- <b>Language</b><br>
+ <b>Language</b><br />
If English isn't your native tongue, you can easily change the language that
most things display in. If your desired language is in the list, you can choose
it and all future SquirrelMail related messages will be in that language. Note
that this doesn't translate incoming email messages or folder names.
- <br><br>
+ <br /><br />
- <b>Use Javascript</b><br>
+ <b>Use Javascript</b><br />
One of our main goals in creating SquirrelMail was to have no Javascript in
any of our pages. However, some of our developers made a very good address
book searching utility that uses Javascript. Some other Javascript functions
give you the option of using
pure HTML or allow Javascript aswell. If
you don't know what this means, you are safest to choose Autodetect.
- <br><br>
+ <br /><br />
- <b>Number of Messages to Index</b><br>
+ <b>Number of Messages to Index</b><br />
This is the number of messages to show at a time in a folder. If there are
more than this number in the folder, you will see a "Previous" and "Next" link
above and below the listing which will take you to the previous or next
messages.
- <br><br>
+ <br /><br />
- <b>Enable Page Selector</b><br>
+ <b>Enable Page Selector</b><br />
Setting this to Yes shows page numbers above and below the message list to
- quickly jump to a specific page of messages. The number <B>Maximum pages to show</B>
+ quickly jump to a specific page of messages. The number <b>Maximum pages to show</b>
can limit how many page numbers will be displayed above and below the
- message list.<br><br>
+ message list.<br /><br />
- <b>Wrap incoming text at</b><br>
+ <b>Wrap incoming text at</b><br />
How many characters should we allow before wrapping the text. This prevents
messages from scrolling way off the screen. 86 is usually a safe thing to
put in here, but you are free to change it to whatever you desire.
- <br><br>
+ <br /><br />
- <b>Size of editor window</b><br>
+ <b>Size of editor window</b><br />
How wide do you want your "Compose" box to be? This is the number of characters
per line that you will be able to type before wrapping in the Compose section.
- <br><br>
+ <br /><br />
- <b>Location of Buttons when Composing</b><br>
- Where are the buttons Addresses, Save Draft and Send located?<br><br>
+ <b>Location of Buttons when Composing</b><br />
+ Where are the buttons Addresses, Save Draft and Send located?<br /><br />
- <b>Addressbook Display Format</B><br>
+ <b>Addressbook Display Format</b><br />
Choose how you want the addressbook to be displayed. If you want maximum
compatibility with all browsers, use HTML. Select Javascript if you
know your browser supports it, it will display a nicer addressbook.
- <br><br>
+ <br /><br />
- <b>Show HTML Version by Default</b><br>
+ <b>Show HTML Version by Default</b><br />
If a message you receive is in both text and HTML format, you can choose
if you want to see the HTML version (Yes) or the text version (No) by
- default.<br><br>
+ default.<br /><br />
- <b>Include Me in CC when I Reply All</b><br>
+ <b>Include Me in CC when I Reply All</b><br />
Reply All sends your reply to all recepients of the original message,
including yourself. To leave your own email address out, set this to No.
- <br><br>
+ <br /><br />
- <b>Enable Mailer Display</b><BR>
+ <b>Enable Mailer Display</b><br />
When viewing a message, this displays which email program the sender used.
- <br><br>
+ <br /><br />
- <b>Display Attached Images with Message</b><br>
+ <b>Display Attached Images with Message</b><br />
If someone sends you a message with one or more images attached and you've
set this to Yes, the images will be displayed right away when you view
the message.
- <br><br>
+ <br /><br />
- <b>Enable Subtle Printer Friendly Link</b><br>
+ <b>Enable Subtle Printer Friendly Link</b><br />
This determines the way the Printable Version-link will be displayed.
- <br><br>
+ <br /><br />
- <b>Enable Printer Friendly Clean Display</b><br>
+ <b>Enable Printer Friendly Clean Display</b><br />
This will clean out the message so the print looks nicer.
- <br><br>
+ <br /><br />
- <b>Other Options</b><br>
+ <b>Other Options</b><br />
Depending on the configuration of your SquirrelMail installation, some more
options might be displayed here. They hopefully should be self-explanatory.
- <br><br>
+ <br /><br />
</description>
</section>
it is very hard to distinguish which messages came from where while reading
through the list of messages. With Message Highlighting, you can have the
background color of all messages from one mailing list different than the
- color of another list.<br><br>
+ color of another list.<br /><br />
Just click on [New] to create a new one, or [Edit] to edit an existing one
- and the options will appear below.<br><br>
+ and the options will appear below.<br /><br />
- <b>Identifying Name</b><br>
+ <b>Identifying Name</b><br />
This is simply the name that you see which describes what it is. For
example, if you are highlighting messages from your mother, you might
set this to "From Mom".
- <br><br>
+ <br /><br />
- <b>Color</b><br>
+ <b>Color</b><br />
This is the actual color that the background will be. You can choose between
a number of pre-defined colors that we have selected for you, or you can enter
the HEX code for the color that you desire (i.e. a6b492). If you choose to
enter your own color, you must also select the radio button in front so that it is
checked.
- <br><br>
+ <br /><br />
- <b>Match</b><br>
+ <b>Match</b><br />
Here you can choose the matching phrase. From the drop-down box, you can
choose which header field to match against (to, from, subject...) and in the
text box, you can enter the phrase to match (mom@yahoo.com).
- <br><br>
+ <br /><br />
</description>
</section>
Folder Preferences
</title>
<description>
- <b>Folder Path</b><br>
+ <b>Folder Path</b><br />
On some systems this will not be displayed. If you don't see this option, just
ignore this. On other systems, this is quite a necessary feature. Usually the
option that is in there is what should be there. This is the folder in your
home directory that holds all your email folders. If you don't understand this,
just leave it what it is.
- <br><br>
+ <br /><br />
- <b>Trash Folder</b><br>
+ <b>Trash Folder</b><br />
You can choose which folder messages will be sent to when you delete them. If
you don't want deleted messages to go to the trash, set this to "Don't use Trash".
- <br><br>
+ <br /><br />
- <b>Sent Folder</b><br>
+ <b>Sent Folder</b><br />
You can choose which folder your sent messages will go to. If you don't want
these, just set it to "Don't use Sent".
- <br><br>
+ <br /><br />
- <b>Draft Folder</b><br>
+ <b>Draft Folder</b><br />
You can choose which folder the messages you save as draft will go to.
If you don't want to use this, just set it to "Don't use Drafts".
- <br><br>
+ <br /><br />
- <b>Location of folder list</b><br>
+ <b>Location of folder list</b><br />
Determines wether you want the list of folders on the left or right of your
window.
- <br><br>
+ <br /><br />
- <b>Width of folder list</b><br>
+ <b>Width of folder list</b><br />
With this option, you can select how wide the list of folders will be.
If you have very long folder names or large fonts, it is good to set this
pretty high. Otherwise, you should set it low so you don't waste screen space.
- <br><br>
+ <br /><br />
- <b>Auto refresh folder list</b><br>
+ <b>Auto refresh folder list</b><br />
SquirrelMail has the functionality to automatically refresh the folder listing
on the left side of your browser window. This will also update the number of
unseen messages that are in each folder. This is a good way to check for unseen
messages in the INBOX without having to click on it every time.
- <br><br>
+ <br /><br />
- <b>Enable Unread Message Notification</b><br>
+ <b>Enable Unread Message Notification</b><br />
This option specifies how to display unseen messages in the folder listing on the
right side of your browser window. If you set this to No Notification, you will
not be notified of unseen messages. If you set it to INBOX, when you have new
to say how many new messages are in it. If you set it to All Folders, this
behavior will happen on all folders. If you notice that loading the folder list
is really slow, you can set this to INBOX or None and that should speed it up.
- <br><br>
+ <br /><br />
- <b>Unseen message notification type</b><br>
+ <b>Unseen message notification type</b><br />
When new messages are in a folder, this option tells
either to only display the number of new messages or also display the
total number of messages in that folder.
- <br><br>
+ <br /><br />
- <b>Enable Collapsable Folders</b><br>
+ <b>Enable Collapsable Folders</b><br />
Collapsable Folders allow you to 'fold' or collapse a folder which contains
subfolders so the subfolders will not be displayed. You can collapse a
folder by clicking the "-" next to it and expand it again with the "+" sign.
Setting this to No disables collapsing.
- <br><br>
+ <br /><br />
- <b>Show Clock on Folders Panel</b><br>
+ <b>Show Clock on Folders Panel</b><br />
Choose if you want a clock to be displayed above the folder list and how
it should look (Y=year, D=day, H=hour, M=minute, S=second). The option
- <B>Hour Format</B> below gives you the choice of a 12- or 24-hour clock.
- <br><br>
+ <b>Hour Format</b> below gives you the choice of a 12- or 24-hour clock.
+ <br /><br />
- <b>Memory Search</b><br>
+ <b>Memory Search</b><br />
If you search a mailbox, the search will be saved for quick access later.
This defines how many mailbox searches will be saved.
- <br><br>
+ <br /><br />
</description>
</section>
This section gives you control over the message list. You can choose how
much information you want in the message list and in what order it should
be displayed.
- <br><br>
+ <br /><br />
Use the Up and Down links to move columns around, Del to remove a column
from the display and Add to add one.
</description>
Click this link to delete the message being currently viewed.
All attachments of deleted mail are deleted as well. You can prevent the
loss of attachments by Downloading them first (explained further in
- this chapter).<BR>
+ this chapter).<br />
In this context, deleting means that the message will be moved to
the folder called Trash. If you wish to keep the message afterall, view
the Trash folder and move the message out.
on the file name will either display the attachment or present a
download dialog depending on the file type. If you wish to download
the file (rather than possibly viewing it), click on the "download"
- link on the right side.<BR>
+ link on the right side.<br />
If your webbrowser supports viewing the attachment file type, another
link, "view" will be displayed which displays the file in your browser.
</p>
);
if ($edit_identity) {
- $identities_link_value = '<A HREF="options_identities.php">'
+ $identities_link_value = '<a href="options_identities.php">'
. _("Edit Advanced Identities")
- . '</A> '
+ . '</a> '
. _("(discards changes made on this form so far)");
$optvals[SMOPT_GRP_CONTACT][] = array(
'name' => 'identities_link',
setSig($data_dir, $username, 'g', $option->new_value);
}
-?>
+?>
\ No newline at end of file
if ( $aday <= $days_in_month && $aday > 0){
echo html_tag( 'td', '', 'left', $color[4], 'height="50" valign="top"' ) ."\n".
html_tag( 'div', '', 'right' );
- echo(($cdate==$todayis) ? "<font size=-1 color=$color[1]>[ " . _("TODAY") . " ] " : "<font size=-1>");
+ echo(($cdate==$todayis) ? '<font size="-1" color="'.$color[1].'">[ ' . _("TODAY") . " ] " : '<font size="-1">');
echo "<a href=day.php?year=$year&month=$month&day=";
echo(($aday<10) ? "0" : "");
echo "$aday>$aday</a></font></div>";
while ($calfoo = each($calendardata[$cdate])) {
$calbar = $calendardata[$cdate][$calfoo['key']];
$title = '['. $calfoo['key']. '] ' .$calbar['message'];
- echo ($calbar['priority']==1) ? "<a href=\"#\" style=\"text-decoration:none; color: $color[1]\" title=\"$title\">$calbar[title]</a><br>\n" : "<a href=\"#\" style=\"text-decoration:none; color: $color[6]\" title=\"$title\">$calbar[title]</a><br>\n";
+ echo ($calbar['priority']==1) ? "<a href=\"#\" style=\"text-decoration:none; color: $color[1]\" title=\"$title\">$calbar[title]</a><br />\n" : "<a href=\"#\" style=\"text-decoration:none; color: $color[6]\" title=\"$title\">$calbar[title]</a><br />\n";
$i=$i+1;
if($i==2){
break;
echo html_tag( 'tr' ) ."\n" .
html_tag( 'td', '', 'left', '', 'colspan="7"' ) ."\n" .
- " <FORM NAME=caljump ACTION=\"calendar.php\" METHOD=POST>\n".
- " <SELECT NAME=\"year\">\n";
+ " <form name=\"caljump\" action=\"calendar.php\" method=\"post\">\n".
+ " <select name=\"year\">\n";
select_option_year($year);
- echo " </SELECT>\n".
- " <SELECT NAME=\"month\">\n";
+ echo " </select>\n".
+ " <select name=\"month\">\n";
select_option_month($month);
- echo " </SELECT>\n".
- ' <INPUT TYPE=SUBMIT VALUE="' . _("Go") . "\">\n".
- " </FORM>\n".
- " </TD></TR>\n".
- "</TABLE></TD></TR></TABLE>\n";
+ echo " </select>\n".
+ ' <input type="submit" value="' . _("Go") . "\" />\n".
+ " </form>\n".
+ " </td></tr>\n".
+ "</table></td></tr></table>\n";
}
function show_event_form() {
global $color, $editor_size, $year, $day, $month, $hour;
- echo "\n<FORM name=eventscreate action=\"event_create.php\" METHOD=POST >\n".
- " <INPUT TYPE=hidden NAME=\"year\" VALUE=\"$year\">\n".
- " <INPUT TYPE=hidden NAME=\"month\" VALUE=\"$month\">\n".
- " <INPUT TYPE=hidden NAME=\"day\" VALUE=\"$day\">\n".
+ echo "\n<form name=\"eventscreate\" action=\"event_create.php\" method=\"post\">\n".
+ " <input type=\"hidden\" name=\"year\" value=\"$year\" />\n".
+ " <input type=\"hidden\" name=\"month\" value=\"$month\" />\n".
+ " <input type=\"hidden\" name=\"day\" value=\"$day\" />\n".
html_tag( 'tr' ) .
html_tag( 'td', _("Start time:"), 'right', $color[4] ) . "\n" .
html_tag( 'td', '', 'left', $color[4] ) . "\n" .
- " <SELECT NAME=\"event_hour\">\n";
+ " <select name=\"event_hour\">\n";
select_option_hour($hour);
- echo " </SELECT>\n" .
+ echo " </select>\n" .
" : \n" .
- " <SELECT NAME=\"event_minute\">\n";
+ " <select name=\"event_minute\">\n";
select_option_minute("00");
- echo " </SELECT>\n".
+ echo " </select>\n".
" </td></tr>\n".
html_tag( 'tr' ) .
html_tag( 'td', _("Length:"), 'right', $color[4] ) . "\n" .
html_tag( 'td', '', 'left', $color[4] ) . "\n" .
- " <SELECT NAME=\"event_length\">\n";
+ " <select name=\"event_length\">\n";
select_option_length("0");
- echo " </SELECT>\n".
+ echo " </select>\n".
" </td></tr>\n".
html_tag( 'tr' ) .
html_tag( 'td', _("Priority:"), 'right', $color[4] ) . "\n" .
html_tag( 'td', '', 'left', $color[4] ) . "\n" .
- " <SELECT NAME=\"event_priority\">\n";
+ " <select name=\"event_priority\">\n";
select_option_priority("0");
- echo " </SELECT>\n".
+ echo " </select>\n".
" </td></tr>\n".
html_tag( 'tr' ) .
html_tag( 'td', _("Title:"), 'right', $color[4] ) . "\n" .
html_tag( 'td', '', 'left', $color[4] ) . "\n" .
- " <INPUT TYPE=text NAME=\"event_title\" VALUE=\"\" SIZE=30 MAXLENGTH=50><BR>\n".
+ " <input type=\"text\" name=\"event_title\" value=\"\" size=\"30\" maxlength=\"50\" /><br />\n".
" </td></tr>\n".
html_tag( 'tr',
html_tag( 'td',
- "<TEXTAREA NAME=\"event_text\" ROWS=5 COLS=\"$editor_size\" WRAP=HARD></TEXTAREA>" ,
+ "<textarea name=\"event_text\" rows=\"5\" cols=\"$editor_size\" wrap=\"hard\"></textarea>" ,
'left', $color[4], 'colspan="2"' )
) ."\n" .
html_tag( 'tr',
html_tag( 'td',
- "<INPUT TYPE=SUBMIT NAME=send VALUE=\"" .
- _("Set Event") . "\">" ,
+ '<input type="submit" name="send" value="' .
+ _("Set Event") . '" />' ,
'left', $color[4], 'colspan="2"' )
) ."\n";
- echo "</FORM>\n";
+ echo "</form>\n";
}
writecalendardata();
echo html_tag( 'table',
html_tag( 'tr',
- html_tag( 'th', _("Event Has been added!") . "<br>\n", '', $color[4], 'colspan="2"' )
+ html_tag( 'th', _("Event Has been added!") . "<br />\n", '', $color[4], 'colspan="2"' )
) .
html_tag( 'tr',
html_tag( 'td', _("Date:"), 'right', $color[4] ) . "\n" .
echo html_tag( 'table',
html_tag( 'tr',
- html_tag( 'th', _("Do you really want to delete this event?") . '<br>', '', $color[4], 'colspan="2"' )
+ html_tag( 'th', _("Do you really want to delete this event?") . '<br />', '', $color[4], 'colspan="2"' )
) .
html_tag( 'tr',
html_tag( 'td', _("Date:"), 'right', $color[4] ) .
) .
html_tag( 'tr',
html_tag( 'td',
- " <FORM NAME=\"delevent\" METHOD=POST ACTION=\"$calself\">\n".
- " <INPUT TYPE=HIDDEN NAME=\"dyear\" VALUE=\"$dyear\">\n".
- " <INPUT TYPE=HIDDEN NAME=\"dmonth\" VALUE=\"$dmonth\">\n".
- " <INPUT TYPE=HIDDEN NAME=\"dday\" VALUE=\"$dday\">\n".
- " <INPUT TYPE=HIDDEN NAME=\"year\" VALUE=\"$year\">\n".
- " <INPUT TYPE=HIDDEN NAME=\"month\" VALUE=\"$month\">\n".
- " <INPUT TYPE=HIDDEN NAME=\"day\" VALUE=\"$day\">\n".
- " <INPUT TYPE=HIDDEN NAME=\"dhour\" VALUE=\"$dhour\">\n".
- " <INPUT TYPE=HIDDEN NAME=\"dminute\" VALUE=\"$dminute\">\n".
- " <INPUT TYPE=HIDDEN NAME=\"confirmed\" VALUE=\"yes\">\n".
- ' <INPUT TYPE=SUBMIT VALUE="' . _("Yes") . "\">\n".
- " </FORM>\n" ,
+ " <form name=\"delevent\" method=\"post\" action=\"$calself\">\n".
+ " <input type=\"hidden\" name=\"dyear\" value=\"$dyear\" />\n".
+ " <input type=\"hidden\" name=\"dmonth\" value=\"$dmonth\" />\n".
+ " <input type=\"hidden\" name=\"dday\" value=\"$dday\" />\n".
+ " <input type=\"hidden\" name=\"year\" value=\"$year\" />\n".
+ " <input type=\"hidden\" name=\"month\" value=\"$month\" />\n".
+ " <input type=\"hidden\" name=\"day\" value=\"$day\" />\n".
+ " <input type=\"hidden\" name=\"dhour\" value=\"$dhour\" />\n".
+ " <input type=\"hidden\" name=\"dminute\" value=\"$dminute\" />\n".
+ " <input type=\"hidden\" name=\"confirmed\" value=\"yes\" />\n".
+ ' <input type="submit" value="' . _("Yes") . "\" />\n".
+ " </form>\n" ,
'right', $color[4] ) .
html_tag( 'td',
- " <FORM NAME=\"nodelevent\" METHOD=POST ACTION=\"day.php\">\n".
- " <INPUT TYPE=HIDDEN NAME=\"year\" VALUE=\"$year\">\n".
- " <INPUT TYPE=HIDDEN NAME=\"month\" VALUE=\"$month\">\n".
- " <INPUT TYPE=HIDDEN NAME=\"day\" VALUE=\"$day\">\n".
- ' <INPUT TYPE=SUBMIT VALUE="' . _("No") . "\">\n".
- " </FORM>\n" ,
+ " <form name=\"nodelevent\" method=\"post\" action=\"day.php\">\n".
+ " <input type=\"hidden\" name=\"year\" value=\"$year\" />\n".
+ " <input type=\"hidden\" name=\"month\" value=\"$month\" />\n".
+ " <input type=\"hidden\" name=\"day\" value=\"$day\" />\n".
+ ' <input type="submit" value="' . _("No") . "\" />\n".
+ " </form>\n" ,
'left', $color[4] )
) ,
'', $color[0], 'border="0" cellpadding="2" cellspacing="1"' );
if (isset($dyear) && isset($dmonth) && isset($dday) && isset($dhour) && isset($dminute)){
if (isset($confirmed)){
delete_event("$dmonth$dday$dyear", "$dhour$dminute");
- echo '<br><br>' . _("Event deleted!") . "<br>\n";
+ echo '<br /><br />' . _("Event deleted!") . "<br />\n";
echo "<a href=\"day.php?year=$year&month=$month&day=$day\">" .
_("Day View") . "</a>\n";
} else {
confirm_deletion();
}
} else {
- echo '<br>' . _("Nothing to delete!");
+ echo '<br />' . _("Nothing to delete!");
}
?>
global $color, $editor_size, $year, $day, $month, $hour, $minute, $calendardata;
$tmparray = $calendardata["$month$day$year"]["$hour$minute"];
- echo "\n<FORM name=eventupdate action=\"event_edit.php\" METHOD=POST >\n".
- " <INPUT TYPE=hidden NAME=\"year\" VALUE=\"$year\">\n".
- " <INPUT TYPE=hidden NAME=\"month\" VALUE=\"$month\">\n".
- " <INPUT TYPE=hidden NAME=\"day\" VALUE=\"$day\">\n".
- " <INPUT TYPE=hidden NAME=\"hour\" VALUE=\"$hour\">\n".
- " <INPUT TYPE=hidden NAME=\"minute\" VALUE=\"$minute\">\n".
- " <INPUT TYPE=hidden NAME=\"updated\" VALUE=\"yes\">\n".
+ echo "\n<form name=\"eventupdate\" action=\"event_edit.php\" method=\"post\">\n".
+ " <input type=\"hidden\" name=\"year\" value=\"$year\" />\n".
+ " <input type=\"hidden\" name=\"month\" value=\"$month\" />\n".
+ " <input type=\"hidden\" name=\"day\" value=\"$day\" />\n".
+ " <input type=\"hidden\" name=\"hour\" value=\"$hour\" />\n".
+ " <input type=\"hidden\" name=\"minute\" value=\"$minute\" />\n".
+ " <input type=\"hidden\" name=\"updated\" value=\"yes\" />\n".
html_tag( 'tr' ) .
html_tag( 'td', _("Date:"), 'right', $color[4] ) . "\n" .
html_tag( 'td', '', 'left', $color[4] ) .
- " <SELECT NAME=\"event_year\">\n";
+ " <select name=\"event_year\">\n";
select_option_year($year);
- echo " </SELECT>\n" .
+ echo " </select>\n" .
" \n" .
- " <SELECT NAME=\"event_month\">\n";
+ " <select name=\"event_month\">\n";
select_option_month($month);
- echo " </SELECT>\n".
+ echo " </select>\n".
" \n".
- " <SELECT NAME=\"event_day\">\n";
+ " <select name=\"event_day\">\n";
select_option_day($day);
- echo " </SELECT>\n".
+ echo " </select>\n".
" </td></tr>\n".
html_tag( 'tr' ) .
html_tag( 'td', _("Time:"), 'right', $color[4] ) . "\n" .
html_tag( 'td', '', 'left', $color[4] ) .
- " <SELECT NAME=\"event_hour\">\n";
+ " <select name=\"event_hour\">\n";
select_option_hour($hour);
- echo " </SELECT>\n".
+ echo " </select>\n".
" : \n".
- " <SELECT NAME=\"event_minute\">\n";
+ " <select name=\"event_minute\">\n";
select_option_minute($minute);
- echo " </SELECT>\n".
+ echo " </select>\n".
" </td></tr>\n".
html_tag( 'tr' ) .
html_tag( 'td', _("Length:"), 'right', $color[4] ) . "\n" .
html_tag( 'td', '', 'left', $color[4] ) .
- " <SELECT NAME=\"event_length\">\n";
+ " <select name=\"event_length\">\n";
select_option_length($tmparray['length']);
- echo " </SELECT>\n".
+ echo " </select>\n".
" </td></tr>\n".
html_tag( 'tr' ) .
html_tag( 'td', _("Priority:"), 'right', $color[4] ) . "\n" .
html_tag( 'td', '', 'left', $color[4] ) .
- " <SELECT NAME=\"event_priority\">\n";
+ " <select name=\"event_priority\">\n";
select_option_priority($tmparray['priority']);
- echo " </SELECT>\n".
+ echo " </select>\n".
" </td></tr>\n".
html_tag( 'tr' ) .
html_tag( 'td', _("Title:"), 'right', $color[4] ) . "\n" .
html_tag( 'td', '', 'left', $color[4] ) .
- " <INPUT TYPE=text NAME=\"event_title\" VALUE=\"$tmparray[title]\" SIZE=30 MAXLENGTH=50><BR>\n".
+ " <input type=\"text\" name=\"event_title\" value=\"$tmparray[title]\" size=\"30\" maxlenght=\"50\" /><br />\n".
" </td></tr>\n".
html_tag( 'td',
- " <TEXTAREA NAME=\"event_text\" ROWS=5 COLS=\"$editor_size\" WRAP=HARD>$tmparray[message]</TEXTAREA>\n" ,
+ " <textarea name=\"event_text\" rows=\"5\" cols=\"$editor_size\" wrap=\"hard\">$tmparray[message]</textarea>\n" ,
'left', $color[4], 'colspan="2"' ) .
'</tr>' . html_tag( 'tr' ) .
html_tag( 'td',
- "<INPUT TYPE=SUBMIT NAME=send VALUE=\"" .
- _("Update Event") . "\">\n" ,
+ '<input type="submit" name="send" value="' .
+ _("Update Event") . "\" />\n" ,
'left', $color[4], 'colspan="2"' ) .
- "</tr></FORM>\n";
+ "</tr></form>\n";
}
// self explenatory
echo html_tag( 'table',
html_tag( 'tr',
- html_tag( 'th', _("Do you really want to change this event from:") . "<br>\n", '', $color[4], 'colspan="2"' ) ."\n"
+ html_tag( 'th', _("Do you really want to change this event from:") . "<br />\n", '', $color[4], 'colspan="2"' ) ."\n"
) .
html_tag( 'tr',
html_tag( 'td', _("Date:") , 'right', $color[4] ) ."\n" .
html_tag( 'td', $tmparray['message'] , 'left', $color[4] ) ."\n"
) .
html_tag( 'tr',
- html_tag( 'th', _("to:") . "<br>\n", '', $color[4], 'colspan="2"' ) ."\n"
+ html_tag( 'th', _("to:") . "<br />\n", '', $color[4], 'colspan="2"' ) ."\n"
) .
html_tag( 'tr',
) .
html_tag( 'tr',
html_tag( 'td',
- " <FORM NAME=\"updateevent\" METHOD=POST ACTION=\"$calself\">\n".
- " <INPUT TYPE=HIDDEN NAME=\"year\" VALUE=\"$year\">\n".
- " <INPUT TYPE=HIDDEN NAME=\"month\" VALUE=\"$month\">\n".
- " <INPUT TYPE=HIDDEN NAME=\"day\" VALUE=\"$day\">\n".
- " <INPUT TYPE=HIDDEN NAME=\"hour\" VALUE=\"$hour\">\n".
- " <INPUT TYPE=HIDDEN NAME=\"minute\" VALUE=\"$minute\">\n".
- " <INPUT TYPE=HIDDEN NAME=\"event_year\" VALUE=\"$event_year\">\n".
- " <INPUT TYPE=HIDDEN NAME=\"event_month\" VALUE=\"$event_month\">\n".
- " <INPUT TYPE=HIDDEN NAME=\"event_day\" VALUE=\"$event_day\">\n".
- " <INPUT TYPE=HIDDEN NAME=\"event_hour\" VALUE=\"$event_hour\">\n".
- " <INPUT TYPE=HIDDEN NAME=\"event_minute\" VALUE=\"$event_minute\">\n".
- " <INPUT TYPE=HIDDEN NAME=\"event_priority\" VALUE=\"$event_priority\">\n".
- " <INPUT TYPE=HIDDEN NAME=\"event_length\" VALUE=\"$event_length\">\n".
- " <INPUT TYPE=HIDDEN NAME=\"event_title\" VALUE=\"$event_title\">\n".
- " <INPUT TYPE=HIDDEN NAME=\"event_text\" VALUE=\"$event_text\">\n".
- " <INPUT TYPE=hidden NAME=\"updated\" VALUE=\"yes\">\n".
- " <INPUT TYPE=HIDDEN NAME=\"confirmed\" VALUE=\"yes\">\n".
- ' <INPUT TYPE=SUBMIT VALUE="' . _("Yes") . "\">\n".
- " </FORM>\n" ,
+ " <form name=\"updateevent\" method=\"post\" action=\"$calself\">\n".
+ " <input type=\"hidden\" name=\"year\" value=\"$year\" />\n".
+ " <input type=\"hidden\" name=\"month\" value=\"$month\" />\n".
+ " <input type=\"hidden\" name=\"day\" value=\"$day\" />\n".
+ " <input type=\"hidden\" name=\"hour\" value=\"$hour\" />\n".
+ " <input type=\"hidden\" name=\"minute\" value=\"$minute\" />\n".
+ " <input type=\"hidden\" name=\"event_year\" value=\"$event_year\" />\n".
+ " <input type=\"hidden\" name=\"event_month\" value=\"$event_month\" />\n".
+ " <input type=\"hidden\" name=\"event_day\" value=\"$event_day\" />\n".
+ " <input type=\"hidden\" name=\"event_hour\" value=\"$event_hour\" />\n".
+ " <input type=\"hidden\" name=\"event_minute\" value=\"$event_minute\" />\n".
+ " <input type=\"hidden\" name=\"event_priority\" value=\"$event_priority\" />\n".
+ " <input type=\"hidden\" name=\"event_length\" value=\"$event_length\" />\n".
+ " <input type=\"hidden\" name=\"event_title\" value=\"$event_title\" />\n".
+ " <input type=\"hidden\" name=\"event_text\" value=\"$event_text\" />\n".
+ " <input type=\"hidden\" name=\"updated\" value=\"yes\" />\n".
+ " <input type=\"hidden\" name=\"confirmed\" value=\"yes\" />\n".
+ ' <input type="submit" value="' . _("Yes") . "\" />\n".
+ " </form>\n" ,
'right', $color[4] ) ."\n" .
html_tag( 'td',
- " <FORM NAME=\"nodelevent\" METHOD=POST ACTION=\"day.php\">\n".
- " <INPUT TYPE=HIDDEN NAME=\"year\" VALUE=\"$year\">\n".
- " <INPUT TYPE=HIDDEN NAME=\"month\" VALUE=\"$month\">\n".
- " <INPUT TYPE=HIDDEN NAME=\"day\" VALUE=\"$day\">\n".
- ' <INPUT TYPE=SUBMIT VALUE="' . _("No") . "\">\n".
- " </FORM>\n" ,
+ " <form name=\"nodelevent\" method=\"post\" action=\"day.php\">\n".
+ " <input type=\"hidden\" name=\"year\" value=\"$year\" />\n".
+ " <input type=\"hidden\" name=\"month\" value=\"$month\" />\n".
+ " <input type=\"hidden\" name=\"day\" value=\"$day\" />\n".
+ ' <input type="submit" value="' . _("No") . "\" />\n".
+ " </form>\n" ,
'left', $color[4] ) ."\n"
) ,
'', $color[0], 'border="0" cellpadding="2" cellspacing="1"' );
while( $bar = each($eventlength)) {
if($selected==$bar['key']){
- echo " <OPTION VALUE=\"".$bar['key']."\" SELECTED>".$bar['value']."</OPTION>\n";
+ echo ' <option value="'.$bar['key'].'" selected="selected">'.$bar['value']."</option>\n";
} else {
- echo " <OPTION VALUE=\"".$bar['key']."\">".$bar['value']."</OPTION>\n";
+ echo ' <option value="'.$bar['key'].'">'.$bar['value']."</option>\n";
}
}
}
while ( $bar = each($eventminute)) {
if ($selected==$bar['key']){
- echo " <OPTION VALUE=\"".$bar['key']."\" SELECTED>".$bar['value']."</OPTION>\n";
+ echo ' <option value="'.$bar['key'].'" selected="selected">'.$bar['value']."</option>\n";
} else {
- echo " <OPTION VALUE=\"".$bar['key']."\">".$bar['value']."</OPTION>\n";
+ echo ' <option value="'.$bar['key'].'">'.$bar['value']."</option>\n";
}
}
}
for ($i=0;$i<24;$i++){
($i<10)? $ih = "0" . $i : $ih = $i;
if ($ih==$selected){
- echo " <OPTION VALUE=\"$ih\" SELECTED>$i</OPTION>\n";
+ echo ' <option value="'.$ih.'" selected="selected">'.$i."</option>\n";
} else {
- echo " <OPTION VALUE=\"$ih\">$i</OPTION>\n";
+ echo ' <option value="'.$ih.'">'.$i."</option>\n";
}
}
}
while( $bar = each($eventpriority)) {
if($selected==$bar['key']){
- echo " <OPTION VALUE=\"".$bar['key']."\" SELECTED>".$bar['value']."</OPTION>\n";
+ echo ' <option value="'.$bar['key'].'" selected="selected">'.$bar['value']."</option>\n";
} else {
- echo " <OPTION VALUE=\"".$bar['key']."\">".$bar['value']."</OPTION>\n";
+ echo ' <option value="'.$bar['key'].'">'.$bar['value']."</option>\n";
}
}
}
for ($i=1902;$i<2038;$i++){
if ($i==$selected){
- echo " <OPTION VALUE=\"$i\" SELECTED>$i</OPTION>\n";
+ echo ' <option value="'.$i.'" selected="selected">'.$i."</option>\n";
} else {
- echo " <OPTION VALUE=\"$i\">$i</OPTION>\n";
+ echo ' <option value="'.$i.'">'.$i."</option>\n";
}
}
}
$im=date('m',mktime(0,0,0,$i,1,1));
$is = getMonthAbrv( date('m',mktime(0,0,0,$i,1,1)) );
if ($im==$selected){
- echo " <OPTION VALUE=\"$im\" SELECTED>$is</OPTION>\n";
+ echo ' <option value="'.$im.'" selected="selected">'.$is."</option>\n";
} else {
- echo " <OPTION VALUE=\"$im\">$is</OPTION>\n";
+ echo ' <option value="'.$im.'">'.$is."</option>\n";
}
}
}
for ($i=1;$i<32;$i++){
($i<10)? $ih="0".$i : $ih=$i;
if ($i==$selected){
- echo " <OPTION VALUE=\"$ih\" SELECTED>$i</OPTION>\n";
+ echo ' <option value="'.$ih.'" selected="selected">'.$i."</option>\n";
} else {
- echo " <OPTION VALUE=\"$ih\">$i</OPTION>\n";
+ echo ' <option value="'.$ih.'">'.$i."</option>\n";
}
}
}
-?>
+?>
\ No newline at end of file
if (!$exist) {
echo "$fortune_location" . _(" not found.");
} else {
- echo "<center><em>" . _("Today's Fortune") . "</em><br></font></center><pre>";
+ echo "<center><em>" . _("Today's Fortune") . "</em><br /></font></center><pre>";
htmlspecialchars(system($fortune_location));
}
}
}
-?>
+?>
\ No newline at end of file
addInput($index, $value, 60);
}
-echo "</td></tr></table></center><br>\n".
+echo "</td></tr></table></center><br />\n".
'<center>'.
addSubmit('submit','submit').
addSubmit('clear','submit').
addSubmit('default','submit').
- "</center><br></form>\n";
+ "</center><br /></form>\n";
$tests = array();
function Mail_Fetch_Select_Server($mailfetch) {
global $PHP_SELF;
- echo '<font size=-5><br></font>' .
- "<form action=\"$PHP_SELF\" method=\"post\" target=\"_self\">" .
+ echo '<font size="-5"><br /></font>' .
+ '<form action="'.$PHP_SELF.'" method="post" target="_self">' .
html_tag( 'table', '', 'center', '', 'width="70%" cols="2"' ) .
html_tag( 'tr' ) .
html_tag( 'td', _("Select Server:") . ' ', 'right' ) .
html_tag( 'td', '', 'left' ) .
'<select name="server_to_fetch" size="1">' .
- '<option value="all" selected>..' . _("All") . "...\n";
+ '<option value="all" selected="selected">..' . _("All") . "...\n";
for ($i = 0;$i < $mailfetch['server_number'];$i++) {
echo "<option value=\"$i\">" .
htmlspecialchars($mailfetch[$i]['alias']) .
htmlspecialchars($mailfetch[$i]['alias']) .
'</b>: ',
'right' ) .
- html_tag( 'td', '<input type="password" name="pass_' . $i . '">', 'left' )
+ html_tag( 'td', '<input type="password" name="pass_' . $i . '" />', 'left' )
);
}
}
echo html_tag( 'tr',
html_tag( 'td', ' ' ) .
- html_tag( 'td', '<input type=submit name=submit_mailfetch value="' . _("Fetch Mail"). '">', 'left' )
+ html_tag( 'td', '<input type="submit" name="submit_mailfetch" value="' . _("Fetch Mail"). '" />', 'left' )
) .
'</table></form>';
}
$mailfetch = Mail_Fetch_Servers();
displayPageHeader($color, 'None');
- echo '<br><center>';
+ echo '<br /><center>';
echo html_tag( 'table',
html_tag( 'tr',
$pop3 = new POP3($mailfetch_server, 60);
- echo '<br>' .
+ echo '<br />' .
html_tag( 'table',
html_tag( 'tr',
html_tag( 'td', '<b>' . _("Fetching from ") .
}
- echo '<br><form method="post" action="'.$PHP_SELF.'">' .
+ echo '<br /><form method="post" action="'.$PHP_SELF.'">' .
html_tag( 'table',
html_tag( 'tr',
html_tag( 'td',
html_tag( 'table',
html_tag( 'tr',
html_tag( 'td',
- _("You should be aware that the encryption used to store your password is not perfectly secure. However, if you are using pop, there is inherently no encryption anyway. Additionally, the encryption that we do to save it on the server can be undone by a hacker reading the source to this file." ) ,
+ _("You should be aware that the encryption used to store your password is not perfectly secure. However, if you are using pop, there is inherently no encryption anyway. Additionally, the encryption that we do to save it on the server can be undone by a hacker reading the source to this file.") ,
'left' )
) .
html_tag( 'tr',
) .
html_tag( 'tr',
html_tag( 'td',
- '<input type=checkbox name=mf_cypher ' .
- (($mailfetch_cypher=='on')?'checked>':'>') .
+ '<input type="checkbox" name="mf_cypher" ' .
+ (($mailfetch_cypher=='on')?'checked="checked" />':' />') .
_("Encrypt passwords (informative only)") ,
'right' )
) ,
html_tag( 'tr' ) .
html_tag( 'td', '', 'center', $color[0] ) .
- "<INPUT TYPE=\"hidden\" NAME=\"mf_sn\" VALUE=\"$mailfetch_server_number\">" .
- '<INPUT TYPE="hidden" NAME="mf_action" VALUE="add">' .
+ "<input type=\"hidden\" name=\"mf_sn\" value=\"$mailfetch_server_number\" />" .
+ '<input type="hidden" name="mf_action" value="add" />' .
html_tag( 'table' ) .
html_tag( 'tr',
html_tag( 'th', _("Server:"), 'right' ) .
- html_tag( 'td', '<input type=text name=mf_server value="" size=40>', 'left' )
+ html_tag( 'td', '<input type="text" name="mf_server" value="" size="40" />', 'left' )
) .
html_tag( 'tr',
html_tag( 'th', _("Port:"), 'right') .
- html_tag( 'td', '<input type=text name=mf_port value="110" size=20>', 'left')
+ html_tag( 'td', '<input type="text" name="mf_port" value="110" size="20" />', 'left')
) .
html_tag( 'tr',
html_tag( 'th', _("Alias:"), 'right' ) .
- html_tag( 'td', '<input type=text name=mf_alias value="" size=20>', 'left' )
+ html_tag( 'td', '<input type="text" name="mf_alias" value="" size="20" />', 'left' )
) .
html_tag( 'tr',
html_tag( 'th', _("Username:"), 'right' ) .
- html_tag( 'td', '<input type=text name=mf_user value="" size=20>', 'left' )
+ html_tag( 'td', '<input type="text" name="mf_user" value="" size="20" />', 'left' )
) .
html_tag( 'tr',
html_tag( 'th', _("Password:"), 'right' ) .
- html_tag( 'td', '<input type=password name=mf_pass value="" size=20>', 'left' )
+ html_tag( 'td', '<input type="password" name="mf_pass" value="" size="20" />', 'left' )
) .
html_tag( 'tr' ) .
html_tag( 'th', _("Store in Folder:"), 'right' ) .
echo '</select></td></tr>' .
html_tag( 'tr',
html_tag( 'th', ' ', 'right' ) .
- html_tag( 'td', '<input type="checkbox" name="mf_lmos" checked>' . _("Leave Mail on Server"), 'left' )
+ html_tag( 'td', '<input type="checkbox" name="mf_lmos" checked="checked" />' . _("Leave Mail on Server"), 'left' )
) .
html_tag( 'tr',
html_tag( 'th', ' ', 'right' ) .
- html_tag( 'td', '<input type="checkbox" name="mf_login">' . _("Check mail during login"), 'left' )
+ html_tag( 'td', '<input type="checkbox" name="mf_login" />' . _("Check mail during login"), 'left' )
) .
html_tag( 'tr',
html_tag( 'th', ' ', 'right' ) .
- html_tag( 'td', '<input type="checkbox" name="mf_fref">' . _("Check mail during folder refresh"), 'left' )
+ html_tag( 'td', '<input type="checkbox" name="mf_fref" />' . _("Check mail during folder refresh"), 'left' )
) .
html_tag( 'tr',
html_tag( 'td',
- '<input type=submit name="submit_mailfetch" value="' . _("Add Server") . '">',
+ '<input type="submit" name="submit_mailfetch" value="' . _("Add Server") . '" />',
'center', '', 'colspan="2"' )
) .
'</table></td></tr></table></form>';
// Modify Server
- echo '<font size=-5><BR></font>' .
+ echo '<font size="-5"><br /></font>' .
html_tag( 'table', '', 'center', '', 'width="70%" cellpadding="5" cellspacing="1"' ) .
html_tag( 'tr',
html_tag( 'td', '<b>' . _("Modify Server") . '</b>', 'center', $color[9] )
htmlspecialchars( (($mailfetch_alias_[$i]=='')?$mailfetch_server_[$i]:$mailfetch_alias_[$i])) . "</option>";
}
echo '</select>'.
- ' <INPUT TYPE=submit name=mf_action_mod value="' . _("Modify") . '">'.
- ' <INPUT TYPE=submit name=mf_action_del value="' . _("Delete") . '">'.
+ ' <input type="submit" name="mf_action_mod" value="' . _("Modify") . '" />'.
+ ' <input type="submit" name="mf_action_del" value="' . _("Delete") . '" />'.
'</form>';
} else {
echo _("No-one server in use. Try to add.");
html_tag( 'td', '<b>' . _("Fetching Servers") . '</b>', 'center', $color[0] )
) ,
'center', '', 'width="95%" cellpadding="5" cellspacing="1"' ) .
- '<br>' .
+ '<br />' .
html_tag( 'table',
html_tag( 'tr',
html_tag( 'td', '<b>' . _("Confirm Deletion of a Server") . '</b>', 'center', $color[9] )
) .
html_tag( 'tr',
html_tag( 'td',
- "<INPUT TYPE=\"hidden\" NAME=\"mf_sn\" VALUE=\"$mf_sn\">" .
- '<INPUT TYPE="hidden" NAME="mf_action" VALUE="confirm_delete">' .
- '<br>' . _("Selected Server:") . " <b>" . htmlspecialchars($mailfetch_server_[$mf_sn]) . "</b><br>" .
- _("Confirm delete of selected server?") . '<br><br>' .
- '<input type=submit name=submit_mailfetch value="' . _("Confirm Delete") . '">' .
- '<br></form>' ,
+ "<input type=\"hidden\" name=\"mf_sn\" value=\"$mf_sn\" />" .
+ '<input type="hidden" name="mf_action" value="confirm_delete" />' .
+ '<br />' . _("Selected Server:") . " <b>" . htmlspecialchars($mailfetch_server_[$mf_sn]) . "</b><br />" .
+ _("Confirm delete of selected server?") . '<br /><br />' .
+ '<input type="submit" name="submit_mailfetch" value="' . _("Confirm Delete") . '" />' .
+ '<br /></form>' ,
'center', $color[9] )
) ,
'center', '', 'width="70%" cellpadding="5" cellspacing="1"' );
html_tag( 'td', '<b>' . _("Fetching Servers") . '</b>', 'center', $color[0] )
) ,
'center', '', 'width="95%" cellpadding="5" cellspacing="1"' ) .
- '<br>' .
+ '<br />' .
html_tag( 'table', '', 'center', '', 'width="70%" cellpadding="5" cellspacing="1"' ) .
html_tag( 'tr',
html_tag( 'td', '<b>' . _("Modify Server") . '</b>', 'center', $color[9] )
html_tag( 'tr' ) .
html_tag( 'td', '', 'center', $color[0] ) .
- "<INPUT TYPE=\"hidden\" NAME=\"mf_sn\" VALUE=\"$mf_sn\">" .
- '<INPUT TYPE="hidden" NAME="mf_action" VALUE="confirm_modify">' .
+ "<input type=\"hidden\" name=\"mf_sn\" value=\"$mf_sn\" />" .
+ '<input type="hidden" name="mf_action" value="confirm_modify" />' .
html_tag( 'table' ) .
html_tag( 'tr',
html_tag( 'th', _("Server:"), 'right' ) .
html_tag( 'td', '<input type="text" name="mf_server" value="' .
- htmlspecialchars($mailfetch_server_[$mf_sn]) . '" size="40">', 'left' )
+ htmlspecialchars($mailfetch_server_[$mf_sn]) . '" size="40" />', 'left' )
) .
html_tag( 'tr',
html_tag( 'th', _("Port:"), 'right' ) .
html_tag( 'td', '<input type="text" name="mf_port" value="' .
- htmlspecialchars($mailfetch_port_[$mf_sn]) . '" size="40">', 'left' )
+ htmlspecialchars($mailfetch_port_[$mf_sn]) . '" size="40" />', 'left' )
) .
html_tag( 'tr',
html_tag( 'th', _("Alias:"), 'right' ) .
html_tag( 'td', '<input type="text" name="mf_alias" value="' .
- htmlspecialchars($mailfetch_alias_[$mf_sn]) . '" size="40">', 'left' )
+ htmlspecialchars($mailfetch_alias_[$mf_sn]) . '" size="40" />', 'left' )
) .
html_tag( 'tr',
html_tag( 'th', _("Username:"), 'right' ) .
html_tag( 'td', '<input type="text" name="mf_user" value="' .
- htmlspecialchars($mailfetch_user_[$mf_sn]) . '" size="20">', 'left' )
+ htmlspecialchars($mailfetch_user_[$mf_sn]) . '" size="20" />', 'left' )
) .
html_tag( 'tr',
html_tag( 'th', _("Password:"), 'right' ) .
html_tag( 'td', '<input type="password" name="mf_pass" value="' .
- htmlspecialchars($mailfetch_pass_[$mf_sn]) . '" size="20">', 'left' )
+ htmlspecialchars($mailfetch_pass_[$mf_sn]) . '" size="20" />', 'left' )
) .
html_tag( 'tr' ) .
html_tag( 'th', _("Store in Folder:"), 'right' ) .
html_tag( 'tr',
html_tag( 'th', ' ', 'right' ) .
html_tag( 'td',
- '<input type=checkbox name=mf_lmos ' . (($mailfetch_lmos_[$mf_sn] == 'on')?'checked':'') .
- '>' . _("Leave Mail on Server") ,
+ '<input type="checkbox" name="mf_lmos" ' . (($mailfetch_lmos_[$mf_sn] == 'on')?'checked="checked"':'') .
+ ' />' . _("Leave Mail on Server") ,
'left' )
) .
html_tag( 'tr',
html_tag( 'th', ' ', 'right' ) .
html_tag( 'td',
- '<input type=checkbox name=mf_login ' . ( ($mailfetch_login_[$mf_sn] == 'on')?'checked':'') .
- '>' . _("Check mail during login"),
+ '<input type="checkbox" name="mf_login" ' . ( ($mailfetch_login_[$mf_sn] == 'on')?'checked="checked"':'') .
+ ' />' . _("Check mail during login"),
'left' )
) .
html_tag( 'tr',
html_tag( 'th', ' ', 'right' ) .
html_tag( 'td',
- '<input type=checkbox name=mf_fref ' . ( ($mailfetch_fref_[$mf_sn] == 'on')?'checked':'') .
- '>' . _("Check mail during folder refresh") ,
+ '<input type="checkbox" name="mf_fref" ' . ( ($mailfetch_fref_[$mf_sn] == 'on')?'checked="checked"':'') .
+ ' />' . _("Check mail during folder refresh") ,
'left' )
) .
html_tag( 'tr',
html_tag( 'td',
- '<input type=submit name="submit_mailfetch" value="' . _("Modify Server") . '">',
+ '<input type="submit" name="submit_mailfetch" value="' . _("Modify Server") . '" />',
'center', '', 'colspan="2"' )
) .
html_tag( 'td', '<b>' . _("Fetching Servers") . '</b>', 'center', $color[0] )
) ,
'center', '', 'width="95%"' ) .
- '<br>' .
+ '<br />' .
html_tag( 'table',
html_tag( 'tr',
html_tag( 'td', '<b>' . _("Undefined Function") . '</b>', 'center', $color[9] ) .
$mailfetch_uidl=$mailfetch_uidl_[$i_loop];
$mailfetch_subfolder=$mailfetch_subfolder_[$i_loop];
- // $outMsg .= "$mailfetch_alias checked<br>";
+ // $outMsg .= "$mailfetch_alias checked<br />";
- // $outMsg .= "$mailfetch_alias_[$i_loop]<br>";
+ // $outMsg .= "$mailfetch_alias_[$i_loop]<br />";
$pop3 = new POP3($mailfetch_server, 60);
}
if( trim( $outMsg ) <> '' ) {
- echo '<br><font size="1">' . _("Mail Fetch Result:") . "<br>$outMsg</font>";
+ echo '<br /><font size="1">' . _("Mail Fetch Result:") . "<br />$outMsg</font>";
}
if( $mailfetch_newlog == 'on' ) {
setPref($data_dir, $username, 'mailfetch_newlog', 'off');
);
}
-?>
+?>
\ No newline at end of file
" }\n" .
"// -->\n" .
"</script>\n" .
- " | <A HREF=\"javascript:MessageSource();\">$print_text</A>\n";
+ " | <a href=\"javascript:MessageSource();\">$print_text</a>\n";
}
echo $result;
}
-?>
+?>
\ No newline at end of file
displayHtmlHeader( _("New Mail"), '', FALSE );
- echo "<body bgcolor=\"$color[4]\" topmargin=0 leftmargin=0 rightmargin=0 marginwidth=0 marginheight=0>\n".
+ echo '<body bgcolor="'.$color[4].'" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">'."\n".
'<center>'. "\n" .
html_tag( 'table', "\n" .
html_tag( 'tr', "\n" .
) .
html_tag( 'tr', "\n" .
html_tag( 'td',
- '<br><big><font color="' . $color[2] . '">' . _("You have").' '.
+ '<br /><big><font color="' . $color[2] . '">' . _("You have").' '.
sprintf( ( $numnew == 1 ?
_("%s new message") :
_("%s new messages") ), $numnew ) .
- '</font><br></big><br>' . "\n" .
+ '</font><br /></big><br />' . "\n" .
'<form name="nm">' . "\n".
- '<input type=button name=bt value="' . _("Close Window") .
- '" onClick="javascript:window.close();">'."\n".
+ '<input type="button" name="bt" value="' . _("Close Window") .
+ '" onClick="javascript:window.close();" />'."\n".
'</form>',
'center' )
) ,
"</script>\n".
"</body></html>\n";
-?>
+?>
\ No newline at end of file
}
if ($totalNew > 0 && $newmail_enable == 'on' && $newmail_media != '' ) {
- echo '<EMBED SRC="'.htmlspecialchars($newmail_media) .
- "\" HIDDEN=\"TRUE\" AUTOSTART=\"TRUE\">\n";
+ echo '<embed src="'.htmlspecialchars($newmail_media) .
+ "\" hidden=\"true\" autostart=\"true\">\n";
}
if ($totalNew > 0 && $newmail_popup == 'on') {
- echo "<SCRIPT LANGUAGE=\"JavaScript\">\n".
+ echo "<script language=\"JavaScript\">\n".
"<!--\n".
"function PopupScriptLoad() {\n".
'window.open("'.sqm_baseuri().'plugins/newmail/newmail.php?numnew='.$totalNew.
}
}
}
-?>
+?>
\ No newline at end of file
displayHtmlHeader( _("Test Sound"), '', FALSE );
-echo '<body bgcolor="'.$color[4].'" topmargin=0 leftmargin=0 rightmargin=0 marginwidth=0 marginheight=0>'."\n";
+echo '<body bgcolor="'.$color[4].'" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">'."\n";
if ( ! sqgetGlobalVar('sound', $sound, SQ_GET) ) {
$sound = 'Click.wav';
} elseif ( $sound == '(none)' ) {
echo '<center><form><br /><br />'.
'<b>' . _("No sound specified") . '</b><br /><br />'.
- '<input type="button" name="close" value="' . _("Close") . '" onClick="window.close()">'.
+ '<input type="button" name="close" value="' . _("Close") . '" onClick="window.close()" />'.
'</form></center>'.
'</body></html>';
return;
echo html_tag( 'table',
html_tag( 'tr',
html_tag( 'td',
- '<embed src="'.htmlspecialchars($sound)."\" hidden=\"true\" autostart=\"true\">\n".
- '<br>'.
- '<b>' . _("Loading the sound...") . '</b><br>'.
+ '<embed src="'.htmlspecialchars($sound).'" hidden="true" autostart="true">'."\n".
+ '<br />'.
+ '<b>' . _("Loading the sound...") . '</b><br />'.
'<form>'.
'<input type="button" name="close" value=" ' .
_("Close") .
- ' " onClick="window.close()">'.
+ ' " onClick="window.close()" />'.
'</form>' ,
'center' )
) ,
$passed_ent_id = 0;
}
- echo "<br>\n";
+ echo "<br />\n";
/*
Catch situation when user use quick_email and does not update
// don't insert javascript if javascript is disabled
if ($spamcop_method == 'web_form' && $javascript_on) {
?><script language="javascript" type="text/javascript">
-document.write('<a href="../plugins/spamcop/spamcop.php?passed_id=<?PHP echo urlencode($passed_id); ?>&js_web=1&mailbox=<?PHP echo urlencode($mailbox); ?>&passed_ent_id=<?PHP echo urlencode($passed_ent_id); ?>" target="_blank">');
-document.write("<?PHP echo _("Report as Spam"); ?>");
+document.write('<a href="../plugins/spamcop/spamcop.php?passed_id=<?php echo urlencode($passed_id); ?>&js_web=1&mailbox=<?php echo urlencode($mailbox); ?>&passed_ent_id=<?php echo urlencode($passed_ent_id); ?>" target="_blank">');
+document.write("<?php echo _("Report as Spam"); ?>");
document.write("</a>");
-</script><?PHP
+</script><?php
} else {
-?><a href="../plugins/spamcop/spamcop.php?passed_id=<?PHP echo urlencode($passed_id); ?>&mailbox=<?PHP echo urlencode($mailbox); ?>&startMessage=<?PHP echo urlencode($startMessage); ?>&passed_ent_id=<?PHP echo urlencode($passed_ent_id); ?>">
-<?PHP echo _("Report as Spam"); ?></a>
-<?PHP
+?><a href="../plugins/spamcop/spamcop.php?passed_id=<?php echo urlencode($passed_id); ?>&mailbox=<?php echo urlencode($mailbox); ?>&startMessage=<?php echo urlencode($startMessage); ?>&passed_ent_id=<?php echo urlencode($passed_ent_id); ?>">
+<?php echo _("Report as Spam"); ?></a>
+<?php
}
}
<table align="center" width="75%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="top">
-<?PHP if (isset($js_web) && $js_web) {
+<?php if (isset($js_web) && $js_web) {
echo '<form method="post" action="javascript:return false">';
echo '<input type="button" value="' . _("Close Window") . "\" onClick=\"window.close(); return true;\" />\n";
} else {
?><form method="post" action="../../src/right_main.php">
- <input type="hidden" name="mailbox" value="<?PHP echo htmlspecialchars($mailbox) ?>" />
- <input type="hidden" name="startMessage" value="<?PHP echo htmlspecialchars($startMessage) ?>" />
-<?PHP
+ <input type="hidden" name="mailbox" value="<?php echo htmlspecialchars($mailbox) ?>" />
+ <input type="hidden" name="startMessage" value="<?php echo htmlspecialchars($startMessage) ?>" />
+<?php
echo '<input type="submit" value="' . _("Cancel / Done") . "\" />";
}
?></form>
</td>
<td align="right" valign="top">
-<?PHP if ($spamcop_method == 'thorough_email' ||
+<?php if ($spamcop_method == 'thorough_email' ||
$spamcop_method == 'quick_email') {
if ($spamcop_method == 'thorough_email')
$report_email = 'submit.' . $spamcop_id . '@spam.spamcop.net';
else
$report_email = 'quick.' . $spamcop_id . '@spam.spamcop.net';
$form_action = SM_PATH . 'src/compose.php';
-?> <form method="post" action="<?PHP echo $form_action?>">
- <input type="hidden" name="mailbox" value="<?PHP echo htmlspecialchars($mailbox) ?>" />
- <input type="hidden" name="spamcop_is_composing" value="<?PHP echo htmlspecialchars($passed_id) ?>" />
- <input type="hidden" name="send_to" value="<?PHP echo htmlspecialchars($report_email)?>" />
+?> <form method="post" action="<?php echo $form_action?>">
+ <input type="hidden" name="mailbox" value="<?php echo htmlspecialchars($mailbox) ?>" />
+ <input type="hidden" name="spamcop_is_composing" value="<?php echo htmlspecialchars($passed_id) ?>" />
+ <input type="hidden" name="send_to" value="<?php echo htmlspecialchars($report_email)?>" />
<input type="hidden" name="subject" value="reply anyway" />
<input type="hidden" name="identity" value="0" />
- <input type="hidden" name="session" value="<?PHP echo $session?>" />
+ <input type="hidden" name="session" value="<?php echo $session?>" />
<?php
echo '<input type="submit" name="send" value="' . _("Send Spam Report") . "\" />\n";
} else {
} ?>
<input type="hidden" name="action" value="submit" />
<input type="hidden" name="oldverbose" value="1" />
- <input type="hidden" name="code" value="<?PHP echo htmlspecialchars($spamcop_id) ?>" />
- <input type="hidden" name="spam" value="<?PHP echo htmlspecialchars($spam_message); ?>" />
+ <input type="hidden" name="code" value="<?php echo htmlspecialchars($spamcop_id) ?>" />
+ <input type="hidden" name="spam" value="<?php echo htmlspecialchars($spam_message); ?>" />
<?php
echo '<input type="submit" name="x1" value="' . _("Send Spam Report") . "\" />\n";
}
echo '<option value="' . $value . '"';
if ($$Var == $value) {
- echo ' selected';
+ echo ' selected="selected"';
}
echo '>' . $Desc . "</option>\n";
}
}
?>
- <table width="95%" align="center" border=0 cellpadding=1 cellspacing=0><tr><td bgcolor="<?php echo $color[0] ?>">
+ <table width="95%" align="center" border="0" cellpadding="1" cellspacing="0"><tr><td bgcolor="<?php echo $color[0]; ?>">
<center><b><?php echo _("Options") . ' - '. _("Translator"); ?></b></center>
</td></tr></table>
<p>
<?php
echo _("You also decide if you want the translation box displayed, and where it will be located.") .
- "<form action=\"$PHP_SELF\" method=post>".
- '<table border=0 cellpadding=0 cellspacing=2>'.
+ '<form action="'.$PHP_SELF.'" method="post">'.
+ '<table border="0" cellpadding="0" cellspacing="2">'.
'<tr><td align="right" nowrap>' .
_("Select your translator:") .
'</td>'.
'<tr>'.html_tag('td',_("When reading:"),'right','','nowrap').
'<td><input type="checkbox" name="translate_translate_show_read"';
if ($translate_show_read)
- echo " checked";
+ echo ' checked="checked"';
echo ' /> - ' . _("Show translation box") .
' <select name="translate_translate_location">';
ShowOption('location', 'left', _("to the left"));
echo '</select><br />'.
'<input type="checkbox" name="translate_translate_same_window"';
if ($translate_same_window)
- echo " checked";
+ echo ' checked="checked"';
echo ' /> - ' . _("Translate inside the SquirrelMail frames").
"</td></tr>\n";
$disable_compose_translate=true;
if (!$disable_compose_translate) {
echo '<tr>'.html_tag('td',_("When composing:"),'right','','nowrap').
- '<td><input type=checkbox name="translate_translate_show_send"';
+ '<td><input type="checkbox" name="translate_translate_show_send"';
if ($translate_show_send)
- echo " checked";
+ echo ' checked="checked"';
echo ' /> - ' . _("Not yet functional, currently does nothing") .
"</td></tr>\n";
}
- echo '<tr><td></td><td>'.
- '<input type="submit" value="' . _("Submit") . '" name="submit_translate">'.
- '</td></tr>'.
- '</table>'.
- '</form>'.
-"</body></html>\n";
-
-?>
\ No newline at end of file
+?>
+<tr><td></td><td>
+<input type="submit" value="<?php echo _("Submit"); ?>" name="submit_translate" />
+</td></tr>
+</table>
+</form>
+</body></html>
$new_body = $body;
$pos = strpos($new_body,
- '">'. _("Download this as a file") . '</A></CENTER><BR></SMALL>');
+ '">'. _("Download this as a file") . '</a></center><br /></small>');
if (is_int($pos)) {
$new_body = substr($new_body, 0, $pos);
}
$ret = ' <option value="' . $value . '"';
if (translate_does_it_match_language($to) && ($translate_dir == 'to')) {
- $ret .= ' SELECTED';
+ $ret .= ' selected="selected"';
}
if (translate_does_it_match_language($from) && ($translate_dir == 'from')) {
- $ret .= ' SELECTED';
+ $ret .= ' selected="selected"';
}
$ret .= '>' . $text . "</option>\n";
function translate_form_babelfish($message) {
translate_new_form('http://babelfish.altavista.com/babelfish/tr');
?>
- <input type="hidden" name="doit" value="done">
- <input type="hidden" name="intl" value="1">
- <input type="hidden" name="tt" value="urltext">
- <input type="hidden" name="urltext" value="<?php echo $message; ?>">
+ <input type="hidden" name="doit" value="done" />
+ <input type="hidden" name="intl" value="1" />
+ <input type="hidden" name="tt" value="urltext" />
+ <input type="hidden" name="urltext" value="<?php echo $message; ?>" />
<select name="lp"><?php
echo translate_lang_opt('en_US', 'zh_CN', 'en_zh',
sprintf( _("%s to %s"),_("English"),_("Chinese"))) .
translate_lang_opt('ru_RU', '', 'ru_en',
sprintf( _("%s to %s"),_("Russian"),_("English")));
echo '</select>'.
- 'Babelfish: <input type="Submit" value="' . _("Translate") . '">';
+ 'Babelfish: <input type="submit" value="' . _("Translate") . '" />';
translate_table_end();
}
function translate_form_go($message) {
translate_new_form('http://translator.go.com/cb/trans_entry');
?>
- <input type=hidden name=input_type value=text>
- <select name=lp><?php
+ <input type="hidden" name="input_type" value="text" />
+ <select name="lp"><?php
echo translate_lang_opt('en_US', 'es_ES', 'en_sp',
sprintf( _("%s to %s"),_("English"),_("Spanish"))) .
translate_lang_opt('en_US', 'fr_FR', 'en_fr',
translate_lang_opt('pt*', '', 'pt_en',
sprintf( _("%s to %s"),_("Portuguese"),_("English")));
echo '</select>'.
- "<input type=\"hidden\" name=\"text\" value=\"$message\">".
- 'Go.com: <input type="Submit" value="' . _("Translate") . '">';
+ '<input type="hidden" name="text" value="'.$message.'" />'.
+ 'Go.com: <input type="submit" value="' . _("Translate") . '" />';
translate_table_end();
}
*/
function translate_form_intertran($message) {
translate_new_form('http://www.tranexp.com:2000/InterTran');
- echo '<INPUT TYPE="hidden" NAME="topframe" VALUE="yes">'.
- '<INPUT TYPE="hidden" NAME="type" VALUE="text">'.
- "<input type=\"hidden\" name=\"text\" value=\"$message\">";
+ echo '<input type="hidden" name="topframe" value="yes" />'.
+ '<input type="hidden" name="type" value="text" />'.
+ '<input type="hidden" name="text" value="'.$message.'" />';
- $left = '<SELECT name="from">' .
+ $left = '<select name="from">' .
translate_lang_opt('pt_BR', '', 'pob', _("Brazilian Portuguese")).
translate_lang_opt('bg_BG', '', 'bul', _("Bulgarian") . ' (CP 1251)').
translate_lang_opt('hr_HR', '', 'cro', _("Croatian") . ' (CP 1250)').
translate_lang_opt('sv_SE', '', 'swe', _("Swedish")).
translate_lang_opt('tr_TR', '', 'tur', _("Turkish") . ' (CP 1254)').
translate_lang_opt('cy_GB', '', 'wel', _("Welsh")).
- '</SELECT>';
+ '</select>';
- $right = '<SELECT name="to">'.
+ $right = '<select name="to">'.
translate_lang_opt('', 'pt_BR', 'pob', _("Brazilian Portuguese")).
translate_lang_opt('', 'bg_BG', 'bul', _("Bulgarian") . ' (CP 1251)').
translate_lang_opt('', 'hr_HR', 'cro', _("Croatian") . ' (CP 1250)').
translate_lang_opt('', 'sv_SE', 'swe', _("Swedish")).
translate_lang_opt('', 'tr_TR', 'tur', _("Turkish") . ' (CP 1254)').
translate_lang_opt('', 'cy_GB', 'wel', _("Welsh")).
- '</SELECT>';
+ '</select>';
printf( _("%s to %s"), $left, $right );
- echo 'InterTran: <input type=submit value="' . _("Translate") . '">';
+ echo 'InterTran: <input type="submit" value="' . _("Translate") . '" />';
translate_table_end();
}
translate_lang_opt('', 'es_ES', 'spanish_dict', _("Spanish")).
'</select>';
echo '<select name="toenglish">';
- echo '<option value="yes" >'. _("to English") . '</option>';
- echo '<option value="no" selected>' . _("from English") . '</option></select>';
- echo "<input type=hidden name=text value=\"$message\">".
- 'GPLTrans: <input type="submit" value="' . _("Translate") . '">';
+ echo '<option value="yes">'. _("to English") . '</option>';
+ echo '<option value="no" selected="selected">' . _("from English") . '</option></select>';
+ echo '<input type="hidden" name="text" value="'.$message.'" />'.
+ 'GPLTrans: <input type="submit" value="' . _("Translate") . '" />';
translate_table_end();
}
translate_new_form('http://dictionary.reference.com/translate/text.html');
list($usec, $sec) = explode(" ",microtime());
$time = $sec . (float)$usec*100000000;
- echo "<input type=hidden name=text value=\"$message\" />".
- "<input type=hidden name=r value=\"$time\" />".
- '<SELECT NAME="lp">'.
+ echo '<input type="hidden" name="text" value="'.$message.'" />'.
+ '<input type="hidden" name="r" value="'.$time.'" />'.
+ '<select name="lp">'.
translate_lang_opt('en_US', 'zh_CN', 'en_zh',
sprintf( _("%s to %s"),_("English"),_("Simplified Chinese"))) .
translate_lang_opt('en_US', 'zh_TW', 'en_zt',
sprintf( _("%s to %s"),_("Russian"),_("English"))) .
translate_lang_opt('es_ES', '', 'es_en',
sprintf( _("%s to %s"),_("Spanish"),_("English"))) .
- '</SELECT>'.
- 'Dictionary.com: <INPUT TYPE="submit" VALUE="'._("Translate").'">';
+ '</select>'.
+ 'Dictionary.com: <input type="submit" value="'._("Translate").'" />';
translate_table_end();
}
function translate_form_otenet($message) {
translate_new_form('http://systran.otenet.gr/cgi-bin/systran.cgi');
?>
- <input type="hidden" name="doit" value="done">
- <INPUT NAME="partner" VALUE="OTEnet-en" type="hidden">
- <input type="hidden" name="urltext" value="<?php echo $message; ?>">
+ <input type="hidden" name="doit" value="done" />
+ <input type="hidden" name="partner" value="OTEnet-en" />
+ <input type="hidden" name="urltext" value="<?php echo $message; ?>" />
<select name="lp" size="1"><?php
echo translate_lang_opt('en_US', 'el_GR', 'en_el',
sprintf( _("%s to %s"),_("English"),_("Greek"))) .
sprintf( _("%s to %s"),_("French"),_("Greek"))) .
translate_lang_opt('el_GR', 'fr_FR', 'el_fr',
sprintf( _("%s to %s"),_("Greek"),_("French"))) .
- translate_lang_opt('#', '', '', "----------------") .
+ translate_lang_opt('#', '', '', '----------------') .
translate_lang_opt('en_US', '', 'en_fr',
sprintf( _("%s to %s"),_("English"),_("French"))) .
translate_lang_opt('fr_FR', '', 'fr_en',
translate_lang_opt('nl_NL', '', 'nl_fr',
sprintf( _("%s to %s"),_("Dutch"),_("French"))) ;
echo '</select>'.
- 'OTEnet: <input type="Submit" value="' . _("Translate") . '">';
+ 'OTEnet: <input type="submit" value="' . _("Translate") . '" />';
translate_table_end();
}
*/
function translate_form_promt($message) {
translate_new_form('http://www.online-translator.com/text.asp#tr_form');
- echo '<input type="hidden" name="status" value="translate">';
- echo "<input type=\"hidden\" name=\"source\" value=\"$message\">";
+ echo '<input type="hidden" name="status" value="translate" />';
+ echo '<input type="hidden" name="source" value="'.$message.'" />';
echo _("Interface language")." : ";
echo "<select size=\"1\" name=\"lang\">\n";
- echo "<option value=\"en\">" . _("English") . "</option>\n";
- echo "<option value=\"ru\">" . _("Russian") . "</option>\n";
- echo "<option value=\"de\">" . _("German") . "</option>\n";
- echo "<option value=\"fr\">" . _("French") . "</option>\n";
- echo "<option value=\"es\">" . _("Spanish") . "</option>\n";
- echo "</select><br>\n";
+ echo '<option value="en">' . _("English") . "</option>\n";
+ echo '<option value="ru">' . _("Russian") . "</option>\n";
+ echo '<option value="de">' . _("German") . "</option>\n";
+ echo '<option value="fr">' . _("French") . "</option>\n";
+ echo '<option value="es">' . _("Spanish") . "</option>\n";
+ echo "</select><br />\n";
echo _("Translation direction")." : ";
echo '<select size="1" id="direction" name="direction">';
echo translate_lang_opt('en_US', 'ru_RU', 'er',
sprintf( _("%s to %s"),_("English"),_("Spanish"))) .
translate_lang_opt('es_ES', '', 'se',
sprintf( _("%s to %s"),_("Spanish"),_("English"))) ;
- echo "</select><br>\n";
- echo "<input type=\"hidden\" name=\"template\" value=\"General\">\n";
- echo 'PROMT: <input type="submit" value="' . _("Translate") . '">';
+ echo "</select><br />\n";
+ echo "<input type=\"hidden\" name=\"template\" value=\"General\" />\n";
+ echo 'PROMT: <input type="submit" value="' . _("Translate") . '" />';
translate_table_end();
}
function translate_form_google($message) {
translate_new_form('http://www.google.com/translate_t');
?>
- <input type="hidden" name="ie" value="Unknown">
- <input type="hidden" name="oe" value="ASCII">
- <input type="hidden" name="hl" value="en">
- <input type="hidden" name="text" value="<?php echo $message; ?>">
+ <input type="hidden" name="ie" value="Unknown" />
+ <input type="hidden" name="oe" value="ASCII" />
+ <input type="hidden" name="hl" value="en" />
+ <input type="hidden" name="text" value="<?php echo $message; ?>" />
<select name="langpair"><?php
echo translate_lang_opt('en_US', 'de_DE', 'en|de',
sprintf( _("%s to %s"),_("English"),_("German"))) .
translate_lang_opt('pt*', '', 'pt|en',
sprintf( _("%s to %s"),_("Portuguese"),_("English")));
echo '</select>'.
- 'Google: <input type="Submit" value="' . _("Translate") . '">';
+ 'Google: <input type="submit" value="' . _("Translate") . '" />';
translate_table_end();
}
*/
function insert_javascript() {
?>
- <SCRIPT LANGUAGE="Javascript"><!--
+ <script language="Javascript"><!--
function to_and_close($addr) {
to_address($addr);
}
}
-// --></SCRIPT>
+// --></script>
<?php
} /* End of included JavaScript */
}
?>
-</BODY></HTML>
+</body></html>
$line = '';
/* If there are unseen message, bold the line. */
- if ($unseen > 0) { $line .= '<B>'; }
+ if ($unseen > 0) { $line .= '<b>'; }
/* Create the link for this folder. */
if ($status !== false) {
}
/* If there are unseen message, close bolding. */
- if ($unseen > 0) { $line .= "</B>"; }
+ if ($unseen > 0) { $line .= "</b>"; }
/* Print unseen information. */
if ($unseen_string != '') {
function sti_input( $title, $hd, $data, $post, $bg ) {
$return_val = html_tag( 'tr',
html_tag( 'td', $title . ':', 'right', '', 'nowrap' ) .
- html_tag( 'td', '<input size="50" type="text" value="' . htmlspecialchars($data) . '" name="' . $hd . $post . '">' , 'left' ) ,
+ html_tag( 'td', '<input size="50" type="text" value="' . htmlspecialchars($data) . '" name="' . $hd . $post . '" />' , 'left' ) ,
'', $bg );
return ($return_val);
}
$return_val .= html_tag( 'tr', '', '', $OtherBG);
$return_val .= html_tag( 'td', ' ', 'left' );
$return_val .= html_tag( 'td', '', 'left' );
- $return_val .= '<input type="hidden" name="form_for_'. $post .'" value="1">';
- $return_val .= '<input type="submit" name="update" value="' . _("Save / Update") . '">';
+ $return_val .= '<input type="hidden" name="form_for_'. $post .'" value="1" />';
+ $return_val .= '<input type="submit" name="update" value="' . _("Save / Update") . '" />';
if (! $isEmptySection && $post != '') {
$return_val .= '<input type="submit" name="make_default_' . $post . '" value="'.
- _("Make Default") . '">'.
+ _("Make Default") . '" />'.
'<input type="submit" name="delete_' . $post . '" value="'.
- _("Delete") . '">';
+ _("Delete") . '" />';
}
if (! $isEmptySection && $post != '' && $post > 1) {
- $return_val .= '<input type=submit name="promote_' . $post . '" value="'.
- _("Move Up") . '">';
+ $return_val .= '<input type="submit" name="promote_' . $post . '" value="'.
+ _("Move Up") . '" />';
}
$return_val .= concat_hook_function('options_identities_buttons', array($isEmptySection, $post));
$return_val .= '</td></tr>'.
}
setTimeout('DarknessTremble()', 10000);
</script>
-<?PHP
+<?php
}
global $squirrelmail_plugin_hooks;
**/
-?>
+?>
\ No newline at end of file