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/class/Page.php | |
parent | 55fc826f9827dd86427534c11594c0d9c4f0b8d1 (diff) | |
download | wcms-19d16efebc3fb5c0b2aede29aa91d31000ffd124.tar.gz wcms-19d16efebc3fb5c0b2aede29aa91d31000ffd124.zip |
add page specific password protection close #118
Diffstat (limited to 'app/class/Page.php')
-rw-r--r-- | app/class/Page.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/class/Page.php b/app/class/Page.php index a369aed..e5b84ac 100644 --- a/app/class/Page.php +++ b/app/class/Page.php @@ -45,6 +45,7 @@ class Page extends Dbitem protected $sleep; protected $redirection; protected $refresh; + protected $password; public const LEN = 255; @@ -109,6 +110,7 @@ class Page extends Dbitem $this->setsleep(0); $this->setredirection(''); $this->setrefresh(0); + $this->setpassword(''); } // _____________________________________________________ G E T ____________________________________________________ @@ -361,6 +363,11 @@ class Page extends Dbitem return $this->refresh; } + public function password($type = 'string') + { + return $this->password; + } + @@ -701,6 +708,13 @@ class Page extends Dbitem $this->refresh = $refresh; } + public function setpassword($password) + { + if (is_string($password) && strlen($password) > 0 && strlen($password) < 64) { + $this->password = $password; + } + } + // __________________________________ C O U N T E R S ______________________________ |