summaryrefslogtreecommitdiff
path: root/demos/controls/protected/pages/private
diff options
context:
space:
mode:
authorxue <>2005-12-23 03:34:36 +0000
committerxue <>2005-12-23 03:34:36 +0000
commit5227e60e5c3a3a7ecee5c1f5693dd2dfe3667168 (patch)
tree69e7b5dce4444956d850c61c6072996b42d622d4 /demos/controls/protected/pages/private
parent925c51d0b63b61340ef89462e32e5fb784165428 (diff)
Diffstat (limited to 'demos/controls/protected/pages/private')
-rw-r--r--demos/controls/protected/pages/private/MemberPage.php12
-rw-r--r--demos/controls/protected/pages/private/MemberPage.tpl13
-rw-r--r--demos/controls/protected/pages/private/config.xml10
3 files changed, 0 insertions, 35 deletions
diff --git a/demos/controls/protected/pages/private/MemberPage.php b/demos/controls/protected/pages/private/MemberPage.php
deleted file mode 100644
index ecec9e4d..00000000
--- a/demos/controls/protected/pages/private/MemberPage.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-
-class MemberPage extends TPage
-{
- public function logout($sender,$param)
- {
- $this->Application->getModule('auth')->logout();
- $this->Application->Response->redirect($this->Application->Service->constructUrl('home'));
- }
-}
-
-?> \ No newline at end of file
diff --git a/demos/controls/protected/pages/private/MemberPage.tpl b/demos/controls/protected/pages/private/MemberPage.tpl
deleted file mode 100644
index 6582aec6..00000000
--- a/demos/controls/protected/pages/private/MemberPage.tpl
+++ /dev/null
@@ -1,13 +0,0 @@
-<%@ MasterClass="Pages.master.MasterPage" %>
-<com:TContent id="body" >
-<com:TForm>
-<div>
-Congratulations, <com:TLabel Text=<%=$this->User->Name%> />!<br/>
-<%=
- $this->Application->User->Name;
-%>
-You have reached this member-only area.
-<com:TButton Text="Logout" Click="logout" />
-</div>
-</com:TForm>
-</com:TContent> \ No newline at end of file
diff --git a/demos/controls/protected/pages/private/config.xml b/demos/controls/protected/pages/private/config.xml
deleted file mode 100644
index 775590cd..00000000
--- a/demos/controls/protected/pages/private/config.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-<configuration>
- <authorization>
- <deny pages="member" users="?" />
- </authorization>
- <pages>
- <page id="member" class="MemberPage" />
- </pages>
-</configuration> \ No newline at end of file