* $Id$
*/
+include_once('../functions/strings.php');
+
define('PG_SEL_MAX', 10); /* Default value for page_selector_max. */
function printMessageInfo($imapConnection, $t, $i, $key, $mailbox, $sort, $start_msg, $where, $what) {
*/
function MagicHTML( $body, $id ) {
- global $message, $PHP_SELF, $HTTP_SERVER_VARS,
+ global $message, $HTTP_SERVER_VARS,
$attachment_common_show_images;
$attachment_common_show_images =
* $Id$
*/
+include_once('../functions/strings.php');
+
// Always set up the language before calling these functions
function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE ) {
"</TABLE>\n\n";
}
-?>
\ No newline at end of file
+?>
}
+function php_self () {
+ global $PHP_SELF, $HTTP_SERVER_VARS;
+
+ if (isset($PHP_SELF) && !empty($PHP_SELF)) {
+ return $PHP_SELF;
+ } else if (isset($HTTP_SERVER_VARS['PHP_SELF']) &&
+ !empty($HTTP_SERVER_VARS['PHP_SELF'])) {
+ return $HTTP_SERVER_VARS['PHP_SELF'];
+ } else {
+ return '';
+ }
+}
+
+
/**
* This determines the location to forward to relative to your server.
* If this doesnt work correctly for you (although it should), you can
}
}
+$PHP_SELF = php_self();
+
?>
require_once('../functions/display_messages.php');
require_once('../functions/addressbook.php');
require_once('../functions/plugin.php');
+include_once('../functions/strings.php');
/* Insert hidden data */
function addr_insert_hidden() {
require_once('../functions/array.php');
require_once('../functions/display_messages.php');
require_once('../functions/addressbook.php');
+include_once('../functions/strings.php');
/* Make an input field */
function adressbook_inp_field($label, $field, $name, $size, $values, $add) {
require_once('../functions/imap.php');
require_once('../functions/array.php');
require_once('../functions/options.php');
+include_once('../functions/strings.php');
/* Set the base uri. */
ereg ("(^.*/)[^/]+/[^/]+$", $PHP_SELF, $regs);
require_once('../functions/imap.php');
require_once('../functions/array.php');
require_once('../functions/plugin.php');
+include_once('../functions/strings.php');
function oh_opt( $val, $sel, $tit ) {
echo "<option value=\"$val\"";
require_once('../functions/imap.php');
require_once('../functions/imap_search.php');
require_once('../functions/array.php');
+include_once('../functions/strings.php');
function s_opt( $val, $sel, $tit ) {
echo " <option value=\"$val\"";
echo '</body></html>';
-?>
\ No newline at end of file
+?>
require_once('../src/validate.php');
require_once('../functions/prefs.php');
require_once('../functions/plugin.php');
+include_once('../functions/strings.php');
// Erase any lingering attachments
if (! isset($attachments)) {
**/
+
+include_once('../functions/strings.php');
+
// Note: The text distance is actually pre-squared
// Background range is from 24-64, all three colors are the same
// Text range is from 196 to 255