summaryrefslogtreecommitdiff
path: root/framework/Wsat/pages/layout/TWsatLayout.php
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2013-11-26 11:34:52 +0100
committerFabio Bas <ctrlaltca@gmail.com>2013-11-26 11:34:52 +0100
commit5632770c86d30361fe0c3eefc7d327786b478702 (patch)
tree0b5f2c00cf4c09719a9b8c076208b592218116bd /framework/Wsat/pages/layout/TWsatLayout.php
parenta6dbcf68802645bbe16b4b927367c42fde127944 (diff)
Removed Wsat, will live in its own branch
Diffstat (limited to 'framework/Wsat/pages/layout/TWsatLayout.php')
-rw-r--r--framework/Wsat/pages/layout/TWsatLayout.php32
1 files changed, 0 insertions, 32 deletions
diff --git a/framework/Wsat/pages/layout/TWsatLayout.php b/framework/Wsat/pages/layout/TWsatLayout.php
deleted file mode 100644
index ce337265..00000000
--- a/framework/Wsat/pages/layout/TWsatLayout.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-
-/**
- * Description of MainLayout
- *
- * @author daniels
- */
-class TWsatLayout extends TTemplateControl {
-
- public function onLoad($param) {
- parent::onLoad($param);
- $this->validateSecurity();
- }
-
- private function validateSecurity() {
- if ($this->Session["wsat_password"] !== $this->getService()->getPassword()) {
- if (!$this->getPage() instanceof TWsatLogin) {
- $url = $this->Service->constructUrl('TWsatLogin');
- $this->Response->redirect($url);
- }
- }
- }
-
- public function logout() {
- $this->Session["wsat_password"] = "";
- $url = $this->Service->constructUrl('TWsatLogin');
- $this->Response->redirect($url);
- }
-
-}
-
-?> \ No newline at end of file