summaryrefslogtreecommitdiff
path: root/framework/Wsat/pages/layout/TWsatLayout.php
diff options
context:
space:
mode:
authorDaniel <darthdaniel85@gmail.com>2013-11-30 02:58:02 -0500
committerDaniel <darthdaniel85@gmail.com>2013-11-30 02:58:02 -0500
commit22276c273cc158cf12fd7b63e581b08cdae7b6f1 (patch)
tree560010fd44ef36d686a0d16313d983b1da6d9acc /framework/Wsat/pages/layout/TWsatLayout.php
parent96957c384a549a5cf7ad9c0e330307cc362a1c09 (diff)
Adding Many To Many relationships support!
Diffstat (limited to 'framework/Wsat/pages/layout/TWsatLayout.php')
-rw-r--r--framework/Wsat/pages/layout/TWsatLayout.php68
1 files changed, 37 insertions, 31 deletions
diff --git a/framework/Wsat/pages/layout/TWsatLayout.php b/framework/Wsat/pages/layout/TWsatLayout.php
index e799125b..4a7c578c 100644
--- a/framework/Wsat/pages/layout/TWsatLayout.php
+++ b/framework/Wsat/pages/layout/TWsatLayout.php
@@ -1,32 +1,38 @@
-<?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);
- }
-
-}
-
+<?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