diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2020-05-25 19:48:15 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2020-05-25 19:48:15 +0200 |
commit | 19d16efebc3fb5c0b2aede29aa91d31000ffd124 (patch) | |
tree | 48e55d1dc335efe5ce306c0a984300de9d4998b4 /app/view/templates/pagepassword.php | |
parent | 55fc826f9827dd86427534c11594c0d9c4f0b8d1 (diff) | |
download | wcms-19d16efebc3fb5c0b2aede29aa91d31000ffd124.tar.gz wcms-19d16efebc3fb5c0b2aede29aa91d31000ffd124.zip |
add page specific password protection close #118
Diffstat (limited to 'app/view/templates/pagepassword.php')
-rw-r--r-- | app/view/templates/pagepassword.php | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/app/view/templates/pagepassword.php b/app/view/templates/pagepassword.php new file mode 100644 index 0000000..509c7ee --- /dev/null +++ b/app/view/templates/pagepassword.php @@ -0,0 +1,39 @@ +<?php + +$this->layout('readerlayout') ?> + +<?php +$this->start('head'); +?> + +<head> + <?= Wcms\Config::alertcss() ? '<link href="' . Wcms\Model::dirtopath(Wcms\Model::ASSETS_CSS_DIR) . 'global.css" rel="stylesheet" />' : '' ?> +</head> + + +<?php +$this->stop(); +?> + + + +<?php $this->start('page') ?> + +<body class="alert"> + +<main class="alert"> + + +<h1>This page is password protected</h1> + +<form action="<?= $this->url('pageread/post', ['page' => $pageid]) ?>" method="post"> +<label for="pagepassword">Page password</label> +<input type="password" name="pagepassword" id="pagepassword" autofocus required> +</form> + +</main> + + +</body> + +<?php $this->stop() ?>
\ No newline at end of file |