ponepaste/theme/bulma/errors.php

29 lines
1.4 KiB
PHP
Raw Normal View History

2021-07-10 19:18:17 +01:00
<main class="bd-main">
<div class="bd-side-background"></div>
<div class="bd-main-container container">
<div class="bd-duo">
<div class="bd-lead">
<?php if (isset($notfound)) { ?>
2021-09-03 08:00:22 -04:00
<h1 class="subtitle is-4"><?= pp_html_escape($notfound) ?></h1>
<a href="./" class="btn btn-default">New Paste</a>
<?php } else { ?>
2021-08-26 05:35:21 -04:00
<h1 class="title is-5">This paste is password-protected.
<h1>
<?php if (isset($error)) { ?>
2021-09-03 08:00:22 -04:00
<p class="help is-danger subtitle is-6"><?= pp_html_escape($error) ?></p>
<?php } ?>
2021-08-20 16:41:08 -04:00
<form action="" method="post">
<div class="field has-addons">
<div class="control">
2021-08-22 22:05:26 -04:00
<input type="hidden" name="id" value="<?php echo $paste_id; ?>"/>
<input type="password" class="input" name="mypass"
2021-09-03 08:00:22 -04:00
placeholder="Password" />
</div>
</div>
<button type="submit" name="submit" class="button is-info">Submit</button>
</form>
<?php } ?>
</div>
</div>
</div>
2021-07-10 19:18:17 +01:00
</main>