summaryrefslogtreecommitdiff
path: root/demos/personal
diff options
context:
space:
mode:
Diffstat (limited to 'demos/personal')
-rw-r--r--demos/personal/protected/Pages/HomePage.php21
-rw-r--r--demos/personal/protected/Pages/HomePage.tpl3
-rw-r--r--demos/personal/protected/Pages/LoginPage.php15
-rw-r--r--demos/personal/protected/Pages/LoginPage.tpl7
4 files changed, 0 insertions, 46 deletions
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 @@
-<?php
-
-class HomePage extends TPage
-{
- public function onPreInit($param)
- {
- parent::onPreInit($param);
- if(!$this->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 @@
-<com:TContent ID="main" >
-main content
-</com:TContent> \ 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 3b5cc3f9..00000000
--- a/demos/personal/protected/Pages/LoginPage.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-
-class LoginPage extends TPage
-{
- public function login($sender,$param)
- {
- $manager=$this->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/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 @@
-<com:TContent ID="main" >
-Username: <com:TTextBox ID="username" /><br/>
-Password: <com:TTextBox ID="password" TextMode="Password" /><br/>
-<com:TButton Text="Login" Click="login" />
-<com:TLabel ID="error" />
-</com:TContent>
-