From 2e3ff4ed70c3f06feb06b66dafd9b9ba7e47a191 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 24 Dec 2005 23:12:57 +0000 Subject: --- .gitattributes | 4 ++++ demos/personal/protected/Pages/Home.page | 3 +++ demos/personal/protected/Pages/Home.php | 21 +++++++++++++++++++++ demos/personal/protected/Pages/Layout.tpl | 10 +++++----- demos/personal/protected/Pages/UserLogin.page | 7 +++++++ demos/personal/protected/Pages/UserLogin.php | 15 +++++++++++++++ demos/personal/protected/Pages/config.xml | 5 +---- 7 files changed, 56 insertions(+), 9 deletions(-) create mode 100644 demos/personal/protected/Pages/Home.page create mode 100644 demos/personal/protected/Pages/Home.php create mode 100644 demos/personal/protected/Pages/UserLogin.page create mode 100644 demos/personal/protected/Pages/UserLogin.php diff --git a/.gitattributes b/.gitattributes index 5b653b41..193ee48d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,8 +2,12 @@ demos/personal/index.php -text demos/personal/protected/Data/application.xml -text demos/personal/protected/Modules/DataModule.php -text +demos/personal/protected/Pages/Home.page -text +demos/personal/protected/Pages/Home.php -text demos/personal/protected/Pages/Layout.php -text demos/personal/protected/Pages/Layout.tpl -text +demos/personal/protected/Pages/UserLogin.page -text +demos/personal/protected/Pages/UserLogin.php -text demos/personal/protected/Pages/config.xml -text demos/personal/themes/BlueTheme/buttons.skin -text demos/personal/themes/BlueTheme/icon_profile.gif -text diff --git a/demos/personal/protected/Pages/Home.page b/demos/personal/protected/Pages/Home.page new file mode 100644 index 00000000..9471a9b9 --- /dev/null +++ b/demos/personal/protected/Pages/Home.page @@ -0,0 +1,3 @@ + +main content + \ No newline at end of file diff --git a/demos/personal/protected/Pages/Home.php b/demos/personal/protected/Pages/Home.php new file mode 100644 index 00000000..cca7d57b --- /dev/null +++ b/demos/personal/protected/Pages/Home.php @@ -0,0 +1,21 @@ +getUser()->getIsGuest()) + $this->setTheme(''); + } + + public function testClick($sender,$param) + { + if($sender->BackColor==='') + $sender->BackColor='blue'; + else + $sender->BackColor=''; + } +} + +?> \ No newline at end of file diff --git a/demos/personal/protected/Pages/Layout.tpl b/demos/personal/protected/Pages/Layout.tpl index bf3cd7ac..db6dd242 100644 --- a/demos/personal/protected/Pages/Layout.tpl +++ b/demos/personal/protected/Pages/Layout.tpl @@ -10,11 +10,11 @@

Your Name Here

My Personal Site

diff --git a/demos/personal/protected/Pages/UserLogin.page b/demos/personal/protected/Pages/UserLogin.page new file mode 100644 index 00000000..588b8f6a --- /dev/null +++ b/demos/personal/protected/Pages/UserLogin.page @@ -0,0 +1,7 @@ + +Username:
+Password:
+ + +
+ diff --git a/demos/personal/protected/Pages/UserLogin.php b/demos/personal/protected/Pages/UserLogin.php new file mode 100644 index 00000000..70cbc986 --- /dev/null +++ b/demos/personal/protected/Pages/UserLogin.php @@ -0,0 +1,15 @@ +Application->getModule('auth'); + if($manager->login($this->username->Text,$this->password->Text)) + $this->Application->Response->redirect($this->Application->Request->Items['ReturnUrl']); + else + $this->error->Text='login failed'; + } +} + +?> \ No newline at end of file diff --git a/demos/personal/protected/Pages/config.xml b/demos/personal/protected/Pages/config.xml index 2a0108c0..ca63c17b 100644 --- a/demos/personal/protected/Pages/config.xml +++ b/demos/personal/protected/Pages/config.xml @@ -1,8 +1,5 @@ - - - - + \ No newline at end of file -- cgit v1.2.3