From 5a401d1c37b7242942bfdc581a5b5f2d91850ef0 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Sat, 23 Nov 2013 14:51:29 +0100 Subject: Git decided to fix line endings.. --- framework/Wsat/pages/TWsatLogin.php | 58 ++++++++-------- framework/Wsat/pages/TWsatScaffolding.php | 28 ++++---- framework/Wsat/pages/layout/TWsatLayout.php | 62 ++++++++--------- framework/Wsat/pages/layout/TWsatLayout.tpl | 104 ++++++++++++++-------------- 4 files changed, 126 insertions(+), 126 deletions(-) (limited to 'framework/Wsat/pages') diff --git a/framework/Wsat/pages/TWsatLogin.php b/framework/Wsat/pages/TWsatLogin.php index 7435d75d..69f8cc39 100644 --- a/framework/Wsat/pages/TWsatLogin.php +++ b/framework/Wsat/pages/TWsatLogin.php @@ -1,30 +1,30 @@ -getService()->getPassword(); - $user_pass = $this->password->Text; - - if ($user_pass === $config_pass) { - $this->Session["wsat_password"] = $config_pass; - - $authManager = $this->Application->getModule('auth'); - $url = $authManager->ReturnUrl; - if (empty($url)) { - $url = $this->Service->constructUrl('TWsatHome'); - } - $this->Response->redirect($url); - } else { - echo "user or pass wrong"; - } - } - -} - +getService()->getPassword(); + $user_pass = $this->password->Text; + + if ($user_pass === $config_pass) { + $this->Session["wsat_password"] = $config_pass; + + $authManager = $this->Application->getModule('auth'); + $url = $authManager->ReturnUrl; + if (empty($url)) { + $url = $this->Service->constructUrl('TWsatHome'); + } + $this->Response->redirect($url); + } else { + echo "user or pass wrong"; + } + } + +} + ?> \ No newline at end of file diff --git a/framework/Wsat/pages/TWsatScaffolding.php b/framework/Wsat/pages/TWsatScaffolding.php index afa00273..ce5860d3 100644 --- a/framework/Wsat/pages/TWsatScaffolding.php +++ b/framework/Wsat/pages/TWsatScaffolding.php @@ -1,15 +1,15 @@ - \ No newline at end of file diff --git a/framework/Wsat/pages/layout/TWsatLayout.php b/framework/Wsat/pages/layout/TWsatLayout.php index e799125b..ce337265 100644 --- a/framework/Wsat/pages/layout/TWsatLayout.php +++ b/framework/Wsat/pages/layout/TWsatLayout.php @@ -1,32 +1,32 @@ -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); - } - -} - +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 diff --git a/framework/Wsat/pages/layout/TWsatLayout.tpl b/framework/Wsat/pages/layout/TWsatLayout.tpl index 37cf4183..d91ff333 100644 --- a/framework/Wsat/pages/layout/TWsatLayout.tpl +++ b/framework/Wsat/pages/layout/TWsatLayout.tpl @@ -1,53 +1,53 @@ - - - - - - - - - - - - - - -
-
-
-
Code Generation
-
    -
  • -
  • -
-
-
- -
- -
- -
-
- - -
- + + + + + + + + + + + + + + +
+
+
+
Code Generation
+
    +
  • +
  • +
+
+
+ +
+ +
+ +
+
+ + +
+ \ No newline at end of file -- cgit v1.2.3