ponepaste/theme/bulma/errors.php
2021-08-22 22:05:26 -04:00

30 lines
No EOL
1.5 KiB
PHP

<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)) { ?>
<h1 class="subtitle is-4"><?php echo $notfound; ?></h1>
<a href="./" class="btn btn-default">New Paste</a>
<?php } else { ?>
<h1 class="title is-5"><?php echo $lang['pwdprotected']; ?>
<h1>
<?php if (isset($error)) { ?>
<p class="help is-danger subtitle is-6"><?php echo $error; ?></p>
<?php } ?>
<form action="" method="post">
<div class="field has-addons">
<div class="control">
<input type="hidden" name="id" value="<?php echo $paste_id; ?>"/>
<input type="password" class="input" name="mypass"
placeholder="<?php echo $lang['enterpwd']; ?>"/>
</div>
</div>
<button type="submit" name="submit" class="button is-info">Submit</button>
</form>
<?php } ?>
</div>
<?php require_once('theme/' . $default_theme . '/sidebar.php'); ?>
</div>
</div>
</main>