| 1 | <?xml version="1.0" encoding="utf-8"?> |
|---|
| 2 | |
|---|
| 3 | <application id="controls" mode="Debug"> |
|---|
| 4 | <paths> |
|---|
| 5 | <alias id="Demo" path="." /> |
|---|
| 6 | <alias id="Pages" path="pages" /> |
|---|
| 7 | |
|---|
| 8 | </paths> |
|---|
| 9 | |
|---|
| 10 | <!-- modules configured and loaded for all services --> |
|---|
| 11 | <modules> |
|---|
| 12 | <module id="cache" type="System.Caching.TSqliteCache" DbFile="Demo.cache"/> |
|---|
| 13 | <module id="session" type="THttpSession" /> |
|---|
| 14 | </modules> |
|---|
| 15 | |
|---|
| 16 | <services> |
|---|
| 17 | <!-- page service, BasePath is required --> |
|---|
| 18 | <service id="page" BasePath="Demo.pages" DefaultPage="home"> |
|---|
| 19 | <!-- modules configured and loaded when page service is requested --> |
|---|
| 20 | <modules> |
|---|
| 21 | <!-- user manager module --> |
|---|
| 22 | <module id="users" type="System.Security.TUserManager" PasswordMode="Clear"> |
|---|
| 23 | <user name="demo" password="work" /> |
|---|
| 24 | <user name="demo2" password="work2" /> |
|---|
| 25 | </module> |
|---|
| 26 | <!-- auth manager module --> |
|---|
| 27 | <module id="auth" type="System.Security.TAuthManager" UserManager="users" LoginPage="login" /> |
|---|
| 28 | </modules> |
|---|
| 29 | </service> |
|---|
| 30 | </services> |
|---|
| 31 | </application> |
|---|
| 32 | |
|---|
| 33 | application.xml:::: |
|---|
| 34 | <application id [mode]> |
|---|
| 35 | <paths> |
|---|
| 36 | <alias id path/> |
|---|
| 37 | <using namespace/> |
|---|
| 38 | </paths> |
|---|
| 39 | |
|---|
| 40 | <modules> |
|---|
| 41 | <module id type /> other params get stored as an array. |
|---|
| 42 | <!-- user manager module --> |
|---|
| 43 | <module id="users" type="System.Security.TUserManager" PasswordMode="Clear|MD5|SHA1"> |
|---|
| 44 | <user name password /> |
|---|
| 45 | <user name password /> |
|---|
| 46 | </module> |
|---|
| 47 | <!-- auth manager module --> |
|---|
| 48 | <module id="auth" type="System.Security.TAuthManager" UserManager="users" LoginPage="login" /> |
|---|
| 49 | |
|---|
| 50 | |
|---|
| 51 | </modules> |
|---|
| 52 | |
|---|
| 53 | <services> |
|---|
| 54 | <service id type /> extra params get stored as an array. |
|---|
| 55 | </services> |
|---|
| 56 | |
|---|
| 57 | <parameters> |
|---|
| 58 | <parameter id [type] /> extra params get stored as an array. |
|---|
| 59 | </parameters> |
|---|
| 60 | </application> |
|---|
| 61 | |
|---|
| 62 | |
|---|
| 63 | config.xml |
|---|
| 64 | <configuration> |
|---|
| 65 | <authorization> |
|---|
| 66 | <deny pages="home" users="?" verb="post" /> |
|---|
| 67 | </authorization> |
|---|
| 68 | <pages Theme="BlueTheme"> |
|---|
| 69 | <page id="home" type="HomePage" /> |
|---|
| 70 | <page id="login" type="LoginPage" /> |
|---|
| 71 | <page id="plain" type="TPage" TemplateFile="Demo.pages.PlainPage" /> |
|---|
| 72 | </pages> |
|---|
| 73 | </configuration> |
|---|
| 74 | |
|---|
| 75 | |
|---|
| 76 | |
|---|
| 77 | |
|---|
| 78 | config.xml::::: |
|---|
| 79 | <configuration> |
|---|
| 80 | <paths> |
|---|
| 81 | <alias id path/> |
|---|
| 82 | <using namespace/> |
|---|
| 83 | </paths> |
|---|
| 84 | |
|---|
| 85 | <modules> |
|---|
| 86 | <module id type /> other params get stored as an array. |
|---|
| 87 | </modules> |
|---|
| 88 | |
|---|
| 89 | <parameters> |
|---|
| 90 | <parameter id [type] /> extra params get stored as an array. |
|---|
| 91 | </parameters> |
|---|
| 92 | |
|---|
| 93 | <authorization> |
|---|
| 94 | <allow|deny [pages=",delimited"] [users=",delimited *|?|username"] [roles=",delimited"] verb="get|post" /> |
|---|
| 95 | </authorization> |
|---|
| 96 | |
|---|
| 97 | <pages [MasterClass]> |
|---|
| 98 | <page id type [MasterClass] [TemplateFile]/> |
|---|
| 99 | </pages> |
|---|
| 100 | </configuration> |
|---|
| 101 | |
|---|
| 102 | MasterClass: Refrences the Masterpage for this <Pages> or <Page> element. |
|---|
| 103 | TemplateFile: Refrences the template file for the <Page> element |
|---|
| 104 | |
|---|
| 105 | TUserManager:: |
|---|
| 106 | |
|---|
| 107 | All elements that are derivied from TWebControl can access the following Style elements like this: |
|---|
| 108 | Style.BackColor="#FF00FF" |
|---|
| 109 | or |
|---|
| 110 | Style.Font.Size="12px" |
|---|
| 111 | |
|---|
| 112 | TStyle:: |
|---|
| 113 | BackColor |
|---|
| 114 | BorderColor |
|---|
| 115 | BorderStyle |
|---|
| 116 | BorderWidth |
|---|
| 117 | CssClass |
|---|
| 118 | ForeColor |
|---|
| 119 | Height |
|---|
| 120 | Style |
|---|
| 121 | Width |
|---|
| 122 | Font :: TFont |
|---|
| 123 | Bold |
|---|
| 124 | Italic |
|---|
| 125 | Overline |
|---|
| 126 | Strikeout |
|---|
| 127 | Underline |
|---|
| 128 | Size |
|---|
| 129 | Name |
|---|