summaryrefslogtreecommitdiff
path: root/demos/providers
diff options
context:
space:
mode:
authorxue <>2007-05-14 11:40:22 +0000
committerxue <>2007-05-14 11:40:22 +0000
commit82621f4f0a7e47314222fa3b21a0745425e1248b (patch)
tree9569f0c1aa7f6a4d52743c4f568bc5c2665d5067 /demos/providers
parent7429863609d6c5708b4414d3619bdf152de2ea16 (diff)
moving unfinished files to dev branch.
Diffstat (limited to 'demos/providers')
-rw-r--r--demos/providers/index.php20
-rw-r--r--demos/providers/protected/.htaccess1
-rw-r--r--demos/providers/protected/application.xml47
-rw-r--r--demos/providers/protected/pages/Home.page55
-rw-r--r--demos/providers/protected/pages/Home.php27
5 files changed, 0 insertions, 150 deletions
diff --git a/demos/providers/index.php b/demos/providers/index.php
deleted file mode 100644
index 59c29c50..00000000
--- a/demos/providers/index.php
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-
-$basePath=dirname(__FILE__);
-$frameworkPath=dirname(__FILE__).'/../../framework/prado.php';
-$assetsPath=$basePath."/assets";
-$runtimePath=$basePath."/protected/runtime";
-
-if(!is_file($frameworkPath))
- die("Unable to find prado framework path $frameworkPath.");
-if(!is_writable($assetsPath))
- die("Please make sure that the directory $assetsPath is writable by Web server process.");
-if(!is_writable($runtimePath))
- die("Please make sure that the directory $runtimePath is writable by Web server process.");
-
-require_once($frameworkPath);
-
-$application=new TApplication;
-$application->run();
-
-?> \ No newline at end of file
diff --git a/demos/providers/protected/.htaccess b/demos/providers/protected/.htaccess
deleted file mode 100644
index 3418e55a..00000000
--- a/demos/providers/protected/.htaccess
+++ /dev/null
@@ -1 +0,0 @@
-deny from all \ No newline at end of file
diff --git a/demos/providers/protected/application.xml b/demos/providers/protected/application.xml
deleted file mode 100644
index 4763b2a6..00000000
--- a/demos/providers/protected/application.xml
+++ /dev/null
@@ -1,47 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-<application id="Providers" mode="Debug">
-
- <modules>
- <module id="FormsAuthentication"
- class="System.Web.Security.TFormsAuthenticationModule"
- defaultProvider="MembershipProvider"/>
-
- <module id="MembershipProvider"
- class="System.Configuration.TProtectedConfiguration"
- defaultProvider="SqlMembershipProvider" >
- <provider
- id="SqlMembershipProvider"
- Description="Our SQL Membership provider"
- class="System.Web.Security.TSqlMembershipProvider"
- ConnectionStringName="SqlMembershipProvider"
- Enabled="true"
- EnablePasswordReset="True"
- EnablePasswordRetrieval="True"
- MaxInvalidPasswordAttempts="5"
- MinRequiredNonAlphanumericCharacters="5"
- MinRequiredPasswordLength="5"
- PasswordAttemptWindow="5"
- PasswordStrengthRegularExpression=""
- RequiresQuestionAndAnswer="True"
- RequiresUniqueEmail="True"/>
- </module>
-
- <module id="RoleProvider"
- class="System.Configuration.TProtectedConfiguration"
- defaultProvider="SqlRoleProvider">
- <provider
- id="SqlRoleProvider"
- class="System.Web.Security.TSqlRoleProvider"
- ConnectionStringName="SqlRoleProvider"
- ApplicationName="SampleApplication"
- Enabled="true"
- CacheRolesInCookie="True"
- CookieName="PRADO"
- CookieTimeout="30"
- CookiePath="/"
- CookieRequireSSL="False"
- CookieSlidingExpiration="True"/>
- </module>
- </modules>
-</application> \ No newline at end of file
diff --git a/demos/providers/protected/pages/Home.page b/demos/providers/protected/pages/Home.page
deleted file mode 100644
index 5fb47aa3..00000000
--- a/demos/providers/protected/pages/Home.page
+++ /dev/null
@@ -1,55 +0,0 @@
-<h1>Provider Demo</h1>
-<com:TForm>
-<fieldset>
-<legend>Vertical - TextOnLeft</legend>
- <com:TValidationSummary
- HeaderText="Login Failed Because:"
- Display="None"
- ValidationGroup="LoginCtrlVerticalTextOnLeft"/>
- <com:TLogin
- ID="LoginCtrlVerticalTextOnLeft"
- Orientation="Vertical"
- TextLayout="TextOnLeft"
- MembershipProvider="SqlMembershipProvider"/>
-</fieldset>
-
-<fieldset>
-<legend>Vertical - TextOnTop</legend>
- <com:TValidationSummary
- HeaderText="Login Failed Because:"
- Display="None"
- ValidationGroup="LoginCtrlVerticalTextOnTop"/>
- <com:TLogin
- ID="LoginCtrlVerticalTextOnTop"
- Orientation="Vertical"
- TextLayout="TextOnTop"
- MembershipProvider="SqlMembershipProvider"/>
-</fieldset>
-
-<fieldset>
-<legend>Horizontal - TextOnLeft</legend>
- <com:TValidationSummary
- HeaderText="Login Failed Because:"
- Display="None"
- ValidationGroup="LoginCtrlHorizontalTextOnLeft"/>
- <com:TLogin
- ID="LoginCtrlHorizontalTextOnLeft"
- Orientation="Horizontal"
- TextLayout="TextOnLeft"
- MembershipProvider="SqlMembershipProvider"/>
-</fieldset>
-
-<fieldset>
-<legend>Horizontal - TextOnTop</legend>
- <com:TValidationSummary
- HeaderText="Login Failed Because:"
- Display="None"
- ValidationGroup="LoginCtrlHorizontalTextOnTop"/>
- <com:TLogin
- ID="LoginCtrlHorizontalTextOnTop"
- Orientation="Horizontal"
- TextLayout="TextOnTop"
- MembershipProvider="SqlMembershipProvider"/>
-</fieldset>
-
-</com:TForm> \ No newline at end of file
diff --git a/demos/providers/protected/pages/Home.php b/demos/providers/protected/pages/Home.php
deleted file mode 100644
index 0c6320e4..00000000
--- a/demos/providers/protected/pages/Home.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-class Home extends TPage
-{
- public function OnLoad($param)
- {
- Prado::using('System.Util.TVarDumper');
- Prado::using('System.Web.Security.TSqlMembershipProvider');
- Prado::using('System.Configuration.TProtectedConfiguration');
-
- // Access by provider id
- // $MembershipProvider = $this->Application->getModule('MembershipProvider')->getProvider('SqlMembershipProvider');
-
-
- /* @VAR $MembershipProvider TSqlMembershipProvider */
- // $MembershipProvider = $this->Application->getModule('MembershipProvider')->Provider;
- // echo TVarDumper::dump($MembershipProvider,10,true);
-
- /* @VAR $RoleProvider TSqlRoleProvider */
- // $RoleProvider = $this->Application->getModule('RoleProvider')->Provider;
- // echo TVarDumper::dump($RoleProvider,10,true);
-
- /* @VAR $FormsAuthentication TFormsAuthenticationModule */
- $FormsAuthentication = $this->Application->getModule('FormsAuthentication');
- // echo TVarDumper::dump($FormsAuthentication,10,true);
- }
-}
-?> \ No newline at end of file