You are here

function assert_logged_in in Lingotek Translation 7.4

Same name and namespace in other branches
  1. 7.7 lib/oauth-php/example/server/core/init.php \assert_logged_in()
  2. 7.2 lib/oauth-php/example/server/core/init.php \assert_logged_in()
  3. 7.3 lib/oauth-php/example/server/core/init.php \assert_logged_in()
  4. 7.5 lib/oauth-php/example/server/core/init.php \assert_logged_in()
  5. 7.6 lib/oauth-php/example/server/core/init.php \assert_logged_in()
2 calls to assert_logged_in()
oauth.php in lib/oauth-php/example/server/www/oauth.php
register.php in lib/oauth-php/example/server/www/register.php

File

lib/oauth-php/example/server/core/init.php, line 89

Code

function assert_logged_in() {
  if (empty($_SESSION['authorized'])) {
    $uri = $_SERVER['REQUEST_URI'];
    header('Location: /logon?goto=' . urlencode($uri));
    exit;
  }
}