-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathee-info-ee1.html
216 lines (200 loc) · 6.08 KB
/
ee-info-ee1.html
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
{if member_group != "1"}
{!-- Redirect to homepage if they're not a logged-in super admin --}
{redirect="{site_url}"}
{/if}<!DOCTYPE html>
<html lang="en-US">
<head>
<!-- META -->
<meta charset="UTF-8">
<!-- TITLE -->
<title>{site_name} - ExpressionEngine Info</title>
<!-- CSS -->
<style>
* {
margin: 0;
padding: 0;
}
body {
background: #FFF;
color: #333;
font: 13px/1.5 Helvetica;
margin: 0 auto;
padding: 40px 0;
width: 90%;
}
a {
color: blue;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
h1 {
font-weight: normal;
}
h2 {
padding: 20px 0 0;
}
h1, h2, h3, p, ul {
margin-bottom: 20px;
}
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
}
table {
border: 1px solid #DDD;
border-spacing: 0;
width: 100%;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
}
thead {
background-color: #DDD;
}
th {
text-align: left;
}
th, td {
padding: 3px 12px;
}
tr:nth-of-type(even) {
background-color: #F6F6F6;
}
</style>
</head>
<body>
<h1>{site_name} - ExpressionEngine Info</h1>
<h2>Templates</h2>
<table>
<thead>
<tr>
<th>Template Group</th>
<th>Template</th>
</tr>
</thead>
<tbody>
{exp:query
sql="SELECT group_name, template_name FROM exp_template_groups, exp_templates WHERE exp_template_groups.group_id = exp_templates.group_id GROUP BY group_order, template_name"
}
<tr>
<td>{group_name}</td>
<td>{template_name}</td>
</tr>
{/exp:query}
</tbody>
</table>
<h2>Weblogs</h2>
<table>
<thead>
<tr>
<th>Channel Title</th>
<th>Channel Name</th>
<th>Total Entries</th>
</tr>
</thead>
<tbody>
{exp:query sql="SELECT blog_title, blog_name, total_entries FROM exp_weblogs GROUP BY blog_name"}
<tr>
<td>{blog_title}</td>
<td>{blog_name}</td>
<td>{total_entries}</td>
</tr>
{/exp:query}
</tbody>
</table>
<h2>Custom Fields</h2>
<table>
<thead>
<tr>
<th>Field Group</th>
<th>Field Name</th>
<th>Channel Title</th>
<th>Channel Name</th>
</tr>
</thead>
<tbody>
{exp:query sql="SELECT group_name, exp_field_groups.group_id, field_name, blog_title, blog_name FROM exp_field_groups, exp_weblog_fields, exp_weblogs WHERE exp_field_groups.group_id = exp_weblog_fields.group_id AND exp_field_groups.group_id = exp_weblogs.field_group"}
<tr>
<td>{group_name}</td>
<td>{field_name}</td>
<td>{blog_title}</td>
<td>{blog_name}</td>
</tr>
{/exp:query}
</tbody>
</table>
<h2>Installed Modules</h2>
<table>
<thead>
<tr>
<th>Name</th>
<th>Version Number</th>
</tr>
</thead>
<tbody>
{exp:query sql="SELECT module_name, module_version FROM exp_modules"}
<tr>
<td>{module_name}</td>
<td><code>{module_version}</code></td>
</tr>
{/exp:query}
</tbody>
</table>
<h2>File Upload Folders</h2>
<table>
<thead>
<tr>
<th>Name</th>
<th>Server Path</th>
<th>URL</th>
<th>Allowed File Types</th>
</tr>
</thead>
<tbody>
{exp:query sql="SELECT name, server_path, url, allowed_types FROM exp_upload_prefs"}
<tr>
<td>{name}</td>
<td><code>{server_path}</code></td>
<td><code>{url}</code></td>
<td>{allowed_types}</td>
</tr>
{/exp:query}
</tbody>
</table>
<h2>Members</h2>
<table>
<thead>
<tr>
<th>Member Group</th>
<th>Screen Name</th>
<th>Username</th>
<th>Email</th>
</tr>
<tbody>
{exp:query sql="SELECT username, screen_name, email, group_title FROM exp_members, exp_member_groups WHERE exp_members.group_id = exp_member_groups.group_id GROUP BY group_title"}
<tr>
<td>{group_title}</td>
<td>{screen_name}</td>
<td>{username}</td>
<td><a href="mailto:{email}">{email}</a></td>
</tr>
{/exp:query}
</tbody>
</thead>
</table>
</body>
</html>