61 lines
2.1 KiB
PHP
61 lines
2.1 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->untrusted_warning) {
|
||
|
?>
|
||
|
<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->testing_warning) {
|
||
|
?>
|
||
|
<div class="alert alert-warning">
|
||
|
<h4 class="alert-heading">Testing!</h4>
|
||
|
<p class="mb-0">This is a testing Application.</p>
|
||
|
</div>
|
||
|
<?php
|
||
|
}
|
||
|
?>
|
||
|
|
||
|
<hr>
|
||
|
<?php if(!empty($msg)) { ?>
|
||
|
<div class="alert alert-warning">
|
||
|
<p class="mb-0"><?php echo $msg; ?></p>
|
||
|
</div>
|
||
|
<?php } ?>
|
||
|
<form method="post">
|
||
|
<?php
|
||
|
if(is_null($user)) {
|
||
|
?>
|
||
|
<b>Username</b>
|
||
|
<input name="username" class="form-control">
|
||
|
<b>Password</b>
|
||
|
<input name="password" type="password" class="form-control">
|
||
|
<?php
|
||
|
}
|
||
|
?>
|
||
|
<input type="submit" class="btn btn-success" value="Login to <?php echo $app->name; ?>" 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"); ?>
|