function get_self() { if (empty($_SERVER['PHP_SELF'])) { if (empty($_SERVER['SCRIPT_NAME'])) { if (empty($_SERVER['REQUEST_URI'])) { return failsafe_get_self(); } else { return $_SERVER['REQUEST_URI']; } } else { return $_SERVER['SCRIPT_NAME']; } } else { return $_SERVER['PHP_SELF']; } }
function get_self() { $page = ''; if (empty($_SERVER['PHP_SELF'])) { if (empty($_SERVER['SCRIPT_NAME'])) { if (empty($_SERVER['REQUEST_URI'])) { $page = failsafe_get_self(); } else { $page = filter_server_input('REQUEST_URI'); } } else { $page = filter_server_input('SCRIPT_NAME'); } } else { $page = filter_server_input('PHP_SELF'); } return $page; }