keksAccount/resources/views/oAuth/authorize.php

55 lines
1.9 KiB
PHP

<?php include(__DIR__."/../layout/top.php"); ?>
<div class="row">
<div class="col-md-12">
</div>
</div>
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6">
<div class="login">
<h3>Login to App <?php echo $app->name; ?></h3>
<p><?php echo $app->description; ?></p>
<hr>
<?php
if($app->trustLevel == "untrustet") {
?>
<div class="alert alert-danger">
<h4 class="alert-heading">Warning!</h4>
<p class="mb-0">You login to an untrusted App.</p>
</div>
<?php
}
?>
<?php
if($app->owner == "user" && $app->trustLevel != "full-trustet") {
?>
<div class="alert alert-info">
<h4 class="alert-heading">Information!</h4>
<p class="mb-0">You login to an Application from another User, this Application will see your user Information.</p>
</div>
<?php
}
?>
<?php
if($app->status == "testing") {
?>
<div class="alert alert-warning">
<h4 class="alert-heading">Testing!</h4>
<p class="mb-0">This is a testing Application.</p>
</div>
<?php
}
?>
<form method="post">
<input type="submit" class="btn btn-success" value="Login to TEST" style="width: 100%;margin-top: 10px;">
</form>
<br>
<a href="<?php echo $app->url; ?>">Zur Webseite der App</a>
</div>
</div>
</div>
<?php include(__DIR__."/../layout/bottom.php"); ?>