Beispiel #1
0
        }
        if ($server === false) {
            $OP->ser();
        } else {
            if (Opth::authorized()) {
                $status = Opth::authorize($scope, $_GET['token']);
                if ($status == "true") {
                    $OP->redirect($redirect_url . "?opth_redirect=1&token={$_GET['token']}");
                }
            }
            $server_name = "<strong><a target='_blank' href='{$server['url']}'> {$server['title']}</a></strong>";
            if (isset($_POST['deny'])) {
                $OP->redirect($redirect_url . "?status=error&error=denied");
            } else {
                if (isset($_POST['authorize'])) {
                    Opth::authorize($scope, $_GET['token'], true);
                    $OP->redirect($redirect_url . "?opth_redirect=1&token={$_GET['token']}");
                }
            }
        }
    } else {
        $OP->ser();
    }
} else {
    $OP->ser();
}
?>
<!DOCTYPE html>
<html>
  <head>
    <?php