summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitattributes4
-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
5 files changed, 0 insertions, 50 deletions
diff --git a/.gitattributes b/.gitattributes
index 5a0b8dfe..5b653b41 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -2,12 +2,8 @@
demos/personal/index.php -text
demos/personal/protected/Data/application.xml -text
demos/personal/protected/Modules/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
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>
-