aboutsummaryrefslogtreecommitdiff
path: root/app/class/controller.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-11-12 13:55:40 +0100
committervincent-peugnet <v.peugnet@free.fr>2018-11-12 13:55:40 +0100
commite4768cd0647d934eff424f73bfd9f5c8f6223c94 (patch)
treeb36029a8152d79108e0dd57aacd73f80b7232b33 /app/class/controller.php
parent0f44c6d918a2932b68019c02de5bc55e7057600a (diff)
downloadwcms-e4768cd0647d934eff424f73bfd9f5c8f6223c94.tar.gz
wcms-e4768cd0647d934eff424f73bfd9f5c8f6223c94.zip
link+log
Diffstat (limited to 'app/class/controller.php')
-rw-r--r--app/class/controller.php29
1 files changed, 0 insertions, 29 deletions
diff --git a/app/class/controller.php b/app/class/controller.php
index f7a3bd6..c722b1a 100644
--- a/app/class/controller.php
+++ b/app/class/controller.php
@@ -59,30 +59,6 @@ class Controller
return $commonsparams;
}
- public function login($redirect = 'home')
- {
- if(isset($_POST['pass'])) {
- $this->user = $this->usermanager->login($_POST['pass']);
- $this->usermanager->writesession($this->user);
- }
- if($redirect == 'art') {
- $this->redirect('?id=' . $this->art->id());
- } else {
- $this->redirect('?aff=' . $redirect);
- }
- }
-
- public function logout($redirect = 'home')
- {
- $this->user = $this->usermanager->logout();
- $this->usermanager->writesession($this->user);
- if($redirect == 'art') {
- $this->redirect('?id=' . $this->art->id());
- } else {
- $this->redirect('?aff=' . $redirect);
- }
- }
-
@@ -96,11 +72,6 @@ class Controller
$this->redirect($this->router->generate($route, $vars));
}
- public function uart($id)
- {
- return $this->router->generate('artread/', ['art' => $id]);
- }
-
}