From 749dec2fcae7b8cdd86ecc923b1af3abfadbcde2 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 16 Nov 2005 13:33:17 +0000 Subject: --- demos/personal/protected/pages/HomePage.php | 21 +++++++++++++++++++++ demos/personal/protected/pages/HomePage.tpl | 3 +++ demos/personal/protected/pages/Layout.php | 7 +++++++ demos/personal/protected/pages/Layout.tpl | 27 +++++++++++++++++++++++++++ demos/personal/protected/pages/LoginPage.php | 15 +++++++++++++++ demos/personal/protected/pages/LoginPage.tpl | 7 +++++++ demos/personal/protected/pages/config.xml | 8 ++++++++ 7 files changed, 88 insertions(+) create mode 100644 demos/personal/protected/pages/HomePage.php create mode 100644 demos/personal/protected/pages/HomePage.tpl create mode 100644 demos/personal/protected/pages/Layout.php create mode 100644 demos/personal/protected/pages/Layout.tpl create mode 100644 demos/personal/protected/pages/LoginPage.php create mode 100644 demos/personal/protected/pages/LoginPage.tpl create mode 100644 demos/personal/protected/pages/config.xml (limited to 'demos/personal/protected/pages') diff --git a/demos/personal/protected/pages/HomePage.php b/demos/personal/protected/pages/HomePage.php new file mode 100644 index 00000000..6c69e44b --- /dev/null +++ b/demos/personal/protected/pages/HomePage.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/HomePage.tpl b/demos/personal/protected/pages/HomePage.tpl new file mode 100644 index 00000000..9471a9b9 --- /dev/null +++ b/demos/personal/protected/pages/HomePage.tpl @@ -0,0 +1,3 @@ + +main content + \ No newline at end of file diff --git a/demos/personal/protected/pages/Layout.php b/demos/personal/protected/pages/Layout.php new file mode 100644 index 00000000..ba96038b --- /dev/null +++ b/demos/personal/protected/pages/Layout.php @@ -0,0 +1,7 @@ + \ No newline at end of file diff --git a/demos/personal/protected/pages/Layout.tpl b/demos/personal/protected/pages/Layout.tpl new file mode 100644 index 00000000..500abf3b --- /dev/null +++ b/demos/personal/protected/pages/Layout.tpl @@ -0,0 +1,27 @@ + + + + +My Personal Website + + + +
+

Your Name Here

+

My Personal Site

+ +
+ + +
+ + \ No newline at end of file diff --git a/demos/personal/protected/pages/LoginPage.php b/demos/personal/protected/pages/LoginPage.php new file mode 100644 index 00000000..3a3b8432 --- /dev/null +++ b/demos/personal/protected/pages/LoginPage.php @@ -0,0 +1,15 @@ +Application->AuthManager; + 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/LoginPage.tpl b/demos/personal/protected/pages/LoginPage.tpl new file mode 100644 index 00000000..588b8f6a --- /dev/null +++ b/demos/personal/protected/pages/LoginPage.tpl @@ -0,0 +1,7 @@ + +Username:
+Password:
+ + +
+ diff --git a/demos/personal/protected/pages/config.xml b/demos/personal/protected/pages/config.xml new file mode 100644 index 00000000..b3d6b036 --- /dev/null +++ b/demos/personal/protected/pages/config.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file -- cgit v1.2.3