<?php
-/**
+/**
* strings.php
*
* Copyright (c) 1999-2002 The SquirrelMail Project Team
* SquirrelMail version number -- DO NOT CHANGE
*/
global $version;
-$version = '1.2.2';
+$version = '1.2.3 [cvs]';
/**
* If $haystack is a full mailbox name and $needle is the mailbox
}
+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
$host = $HTTP_HOST;
} else if (isset($SERVER_NAME) && !empty($SERVER_NAME)) {
$host = $SERVER_NAME;
+ } else if (isset($HTTP_SERVER_VARS['SERVER_NAME']) &&
+ !empty($HTTP_SERVER_VARS['SERVER_NAME'])) {
+ $host = $HTTP_SERVER_VARS['SERVER_NAME'];
}
+
$port = '';
if (! strstr($host, ':')) {
}
}
+$PHP_SELF = php_self();
+
?>