summaryrefslogtreecommitdiff
path: root/demos/controls/protected/pages/private
diff options
context:
space:
mode:
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