You are here

function getPage_name in Drupal OAuth & OpenID Connect Login - OAuth2 Client SSO Login 7

1 call to getPage_name()
mo_saml_visualTour.php in ./mo_saml_visualTour.php

File

./mo_saml_visualTour.php, line 25

Code

function getPage_name() {
  $link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
  $exploded = explode('/', $link);
  $l_url = end($exploded);
  $l_url = multiexplode(array(
    "?",
    "%",
    "#",
    ":",
    "=",
  ), $l_url);
  $f_url = $l_url[0];
  return $f_url;
}