- global $optpage_data, $username, $key, $imapServerAddress, $imapPort;
+ global $optpage_data, $imapServerAddress, $imapPort;
+
+ if ( (float)substr(PHP_VERSION,0,3) < 4.1 ) {
+ global $_SESSION, $_COOKIE;
+ }
+ $username = $_SESSION['username'];
+ $key = $_COOKIE['key'];