From fdd0a3ad7b2f9f942b94fde84277529ecae2a3b3 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 16 Nov 2005 18:41:59 +0000 Subject: --- .gitattributes | 14 +++++++------- demos/personal/protected/a/HomePage.php | 21 ++++++++++++++++++++ demos/personal/protected/a/HomePage.tpl | 3 +++ demos/personal/protected/a/Layout.php | 7 +++++++ demos/personal/protected/a/Layout.tpl | 29 ++++++++++++++++++++++++++++ demos/personal/protected/a/LoginPage.php | 15 ++++++++++++++ demos/personal/protected/a/LoginPage.tpl | 7 +++++++ demos/personal/protected/a/config.xml | 8 ++++++++ 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 | 29 ---------------------------- demos/personal/protected/pages/LoginPage.php | 15 -------------- demos/personal/protected/pages/LoginPage.tpl | 7 ------- demos/personal/protected/pages/config.xml | 8 -------- 15 files changed, 97 insertions(+), 97 deletions(-) create mode 100644 demos/personal/protected/a/HomePage.php create mode 100644 demos/personal/protected/a/HomePage.tpl create mode 100644 demos/personal/protected/a/Layout.php create mode 100644 demos/personal/protected/a/Layout.tpl create mode 100644 demos/personal/protected/a/LoginPage.php create mode 100644 demos/personal/protected/a/LoginPage.tpl create mode 100644 demos/personal/protected/a/config.xml delete mode 100644 demos/personal/protected/pages/HomePage.php delete mode 100644 demos/personal/protected/pages/HomePage.tpl delete mode 100644 demos/personal/protected/pages/Layout.php delete mode 100644 demos/personal/protected/pages/Layout.tpl delete mode 100644 demos/personal/protected/pages/LoginPage.php delete mode 100644 demos/personal/protected/pages/LoginPage.tpl delete mode 100644 demos/personal/protected/pages/config.xml diff --git a/.gitattributes b/.gitattributes index 1e89aa16..1b47e45d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -17,15 +17,15 @@ demos/controls/themes/BlueTheme/buttons.skin -text demos/controls/themes/BlueTheme/icon_profile.gif -text demos/controls/themes/BlueTheme/labels.skin -text demos/personal/index.php -text +demos/personal/protected/a/HomePage.php -text +demos/personal/protected/a/HomePage.tpl -text +demos/personal/protected/a/Layout.php -text +demos/personal/protected/a/Layout.tpl -text +demos/personal/protected/a/LoginPage.php -text +demos/personal/protected/a/LoginPage.tpl -text +demos/personal/protected/a/config.xml -text demos/personal/protected/application.xml -text demos/personal/protected/data/DataModule.php -text -demos/personal/protected/pages/HomePage.php -text -demos/personal/protected/pages/HomePage.tpl -text -demos/personal/protected/pages/Layout.php -text -demos/personal/protected/pages/Layout.tpl -text -demos/personal/protected/pages/LoginPage.php -text -demos/personal/protected/pages/LoginPage.tpl -text -demos/personal/protected/pages/config.xml -text demos/personal/themes/BlueTheme/buttons.skin -text demos/personal/themes/BlueTheme/icon_profile.gif -text demos/personal/themes/BlueTheme/labels.skin -text diff --git a/demos/personal/protected/a/HomePage.php b/demos/personal/protected/a/HomePage.php new file mode 100644 index 00000000..6c69e44b --- /dev/null +++ b/demos/personal/protected/a/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/a/HomePage.tpl b/demos/personal/protected/a/HomePage.tpl new file mode 100644 index 00000000..9471a9b9 --- /dev/null +++ b/demos/personal/protected/a/HomePage.tpl @@ -0,0 +1,3 @@ + +main content + \ No newline at end of file diff --git a/demos/personal/protected/a/Layout.php b/demos/personal/protected/a/Layout.php new file mode 100644 index 00000000..ba96038b --- /dev/null +++ b/demos/personal/protected/a/Layout.php @@ -0,0 +1,7 @@ + \ No newline at end of file diff --git a/demos/personal/protected/a/Layout.tpl b/demos/personal/protected/a/Layout.tpl new file mode 100644 index 00000000..bf3cd7ac --- /dev/null +++ b/demos/personal/protected/a/Layout.tpl @@ -0,0 +1,29 @@ + + + + +My Personal Website + + + +
+

Your Name Here

+

My Personal Site

+ +
+
+ +
+ +
+ + \ No newline at end of file diff --git a/demos/personal/protected/a/LoginPage.php b/demos/personal/protected/a/LoginPage.php new file mode 100644 index 00000000..3a3b8432 --- /dev/null +++ b/demos/personal/protected/a/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/a/LoginPage.tpl b/demos/personal/protected/a/LoginPage.tpl new file mode 100644 index 00000000..588b8f6a --- /dev/null +++ b/demos/personal/protected/a/LoginPage.tpl @@ -0,0 +1,7 @@ + +Username:
+Password:
+ + +
+ diff --git a/demos/personal/protected/a/config.xml b/demos/personal/protected/a/config.xml new file mode 100644 index 00000000..b3d6b036 --- /dev/null +++ b/demos/personal/protected/a/config.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/demos/personal/protected/pages/HomePage.php b/demos/personal/protected/pages/HomePage.php deleted file mode 100644 index 6c69e44b..00000000 --- a/demos/personal/protected/pages/HomePage.php +++ /dev/null @@ -1,21 +0,0 @@ -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 deleted file mode 100644 index 9471a9b9..00000000 --- a/demos/personal/protected/pages/HomePage.tpl +++ /dev/null @@ -1,3 +0,0 @@ - -main content - \ No newline at end of file diff --git a/demos/personal/protected/pages/Layout.php b/demos/personal/protected/pages/Layout.php deleted file mode 100644 index ba96038b..00000000 --- a/demos/personal/protected/pages/Layout.php +++ /dev/null @@ -1,7 +0,0 @@ - \ No newline at end of file diff --git a/demos/personal/protected/pages/Layout.tpl b/demos/personal/protected/pages/Layout.tpl deleted file mode 100644 index bf3cd7ac..00000000 --- a/demos/personal/protected/pages/Layout.tpl +++ /dev/null @@ -1,29 +0,0 @@ - - - - -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 deleted file mode 100644 index 3a3b8432..00000000 --- a/demos/personal/protected/pages/LoginPage.php +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 588b8f6a..00000000 --- a/demos/personal/protected/pages/LoginPage.tpl +++ /dev/null @@ -1,7 +0,0 @@ - -Username:
-Password:
- - -
- diff --git a/demos/personal/protected/pages/config.xml b/demos/personal/protected/pages/config.xml deleted file mode 100644 index b3d6b036..00000000 --- a/demos/personal/protected/pages/config.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file -- cgit v1.2.3