summaryrefslogtreecommitdiff
path: root/docs/application.xml
blob: 2cc01143ffc826799b5b1aedaea4bef9b09bb9da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?xml version="1.0" encoding="utf-8"?>

<application id="controls" mode="Debug">
  <paths>
    <alias id="Demo" path="." />
    <alias id="Pages" path="pages" />

  </paths>

  <!-- modules configured and loaded for all services -->
  <modules>
    <module id="cache" type="System.Caching.TSqliteCache" DbFile="Demo.cache"/>
    <module id="session" type="THttpSession" />
  </modules>

  <services>
    <!-- page service, BasePath is required -->
    <service id="page" BasePath="Demo.pages" DefaultPage="home">
      <!-- modules configured and loaded when page service is requested -->
      <modules>
        <!-- user manager module -->
        <module id="users" type="System.Security.TUserManager" PasswordMode="Clear">
          <user name="demo" password="work" />
          <user name="demo2" password="work2" />
        </module>
        <!-- auth manager module -->
        <module id="auth" type="System.Security.TAuthManager" UserManager="users" LoginPage="login" />
      </modules>
    </service>
  </services>
</application>

application.xml::::
<application id [mode]>
	<paths>
		<alias id path/>
		<using namespace/>
	</paths>

	<modules>
		<module id type /> other params get stored as an array.
		<!-- user manager module -->
		<module id="users" type="System.Security.TUserManager" PasswordMode="Clear|MD5|SHA1">
        	<user name password />
        	<user name password />
        </module>
        <!-- auth manager module -->
        <module id="auth" type="System.Security.TAuthManager" UserManager="users" LoginPage="login" />


	</modules>

	<services>
		<service id type /> extra params get stored as an array.
	</services>

	<parameters>
		<parameter id [type] /> extra params get stored as an array.
	</parameters>
</application>


config.xml
<configuration>
  <authorization>
    <deny pages="home" users="?" verb="post" />
  </authorization>
  <pages Theme="BlueTheme">
    <page id="home" type="HomePage" />
    <page id="login" type="LoginPage" />
    <page id="plain" type="TPage" TemplateFile="Demo.pages.PlainPage" />
  </pages>
</configuration>




config.xml:::::
<configuration>
	<paths>
		<alias id path/>
		<using namespace/>
	</paths>

	<modules>
		<module id type /> other params get stored as an array.
	</modules>

	<parameters>
		<parameter id [type] /> extra params get stored as an array.
	</parameters>

	<authorization>
		<allow|deny [pages=",delimited"] [users=",delimited *|?|username"] [roles=",delimited"] verb="get|post" />
	</authorization>

	<pages [MasterClass]>
		<page id type  [MasterClass] [TemplateFile]/>
	</pages>
</configuration>

MasterClass: Refrences the Masterpage for this <Pages> or <Page> element.
TemplateFile: Refrences the template file for the <Page> element

TUserManager::

All elements that are derivied from TWebControl can access the following Style elements like this:
Style.BackColor="#FF00FF"
or
Style.Font.Size="12px"

TStyle::
BackColor
BorderColor
BorderStyle
BorderWidth
CssClass
ForeColor
Height
Style
Width
Font :: TFont
	Bold
	Italic
	Overline
	Strikeout
	Underline
	Size
	Name