}
+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();
+
?>