forked from textpattern/textpattern
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin_config.php
More file actions
267 lines (210 loc) · 8.92 KB
/
Copy pathadmin_config.php
File metadata and controls
267 lines (210 loc) · 8.92 KB
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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
<?php
/*
* Textpattern Content Management System
* http://textpattern.com
*
* Copyright (C) 2015 The Textpattern Development Team
*
* This file is part of Textpattern.
*
* Textpattern is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation, version 2.
*
* Textpattern is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Textpattern. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* Collection of user configuration options.
*
* @package User
*/
/**
* Textpattern admin options.
*
* These have been moved to the database.
*
* @global array $txpac
* @deprecated in 1.0.0
*/
$txpac = array(
// -------------------------------------------------------------
// Bypass the Txp CSS editor entirely.
'edit_raw_css_by_default' => 1,
// -------------------------------------------------------------
// PHP scripts on page templates will be parsed.
'allow_page_php_scripting' => 1,
// -------------------------------------------------------------
// PHP scripts in article bodies will be parsed.
'allow_article_php_scripting' => 1,
// -------------------------------------------------------------
// Use Textile on link titles and descriptions.
'textile_links' => 0,
// -------------------------------------------------------------
// In the article categories listing in the organise tab.
'show_article_category_count' => 1,
// -------------------------------------------------------------
// XML feeds display comment count as part of article title.
'show_comment_count_in_feed' => 1,
// -------------------------------------------------------------
// Include articles or full excerpts in feeds:
// 0 = full article body.
// 1 = excerpt.
'syndicate_body_or_excerpt' => 1,
// -------------------------------------------------------------
// Include (encoded) author email in Atom feeds.
'include_email_atom' => 1,
// -------------------------------------------------------------
// Each comment received updates the site Last-Modified header.
'comment_means_site_updated' => 1,
// -------------------------------------------------------------
// Comment email addresses are encoded to hide from spambots,
// but if you never want to see them at all, set this to 1.
'never_display_email' => 0,
// -------------------------------------------------------------
// Comments must enter name and/or email address
'comments_require_name' => 1,
'comments_require_email' => 1,
// -------------------------------------------------------------
// Show 'excerpt' pane in write tab.
'articles_use_excerpts' => 1,
// -------------------------------------------------------------
// Show form overrides on article-by-article basis.
'allow_form_override' => 1,
// -------------------------------------------------------------
// Whether or not to attach article titles to permalinks.
// e.g., /article/313/IAteACheeseSandwich.
'attach_titles_to_permalinks' => 1,
// -------------------------------------------------------------
// If attaching titles to permalinks, which format?
// 0 = SuperStudlyCaps.
// 1 = hyphenated-lower-case.
'permalink_title_format' => 1,
// -------------------------------------------------------------
// Number of days after which logfiles are purged.
'expire_logs_after' => 7,
// -------------------------------------------------------------
// Plugins on or off.
'use_plugins' => 1,
// -------------------------------------------------------------
// Use custom fields for articles - must be in 'quotes',
// and must contain no spaces.
'custom_1_set' => 'custom1',
'custom_2_set' => 'custom2',
'custom_3_set' => '',
'custom_4_set' => '',
'custom_5_set' => '',
'custom_6_set' => '',
'custom_7_set' => '',
'custom_8_set' => '',
'custom_9_set' => '',
'custom_10_set' => '',
// -------------------------------------------------------------
// Ping textpattern.com when an article is published.
'ping_textpattern_com' => 1,
// -------------------------------------------------------------
// Use DNS lookups in referrer log.
'use_dns' => 1,
// -------------------------------------------------------------
// Load plugins in the admin interface.
'admin_side_plugins' => 1,
// -------------------------------------------------------------
// Use rel="nofollow" on comment links.
'comment_nofollow' => 1,
// -------------------------------------------------------------
// Use encoded email on Atom feeds id, instead of domain name
// (if you plan to move this install to another domain, you should use this).
'use_mail_on_feeds_id' => 0,
// -------------------------------------------------------------
// Maximum URL length before it should be considered malicious.
'max_url_len' => 200,
// -------------------------------------------------------------
// Spam DNS RBLs.
'spam_blacklists' => 'sbl.spamhaus.org',
);
/**
* Sets permissions.
*
* @global array $txp_permissions
*/
$txp_permissions = array(
'admin' => '1,2,3,4,5,6',
'admin.edit' => '1',
'admin.list' => '1,2,3',
'article.delete.own' => '1,2,3,4',
'article.delete' => '1,2',
'article.edit' => '1,2,3',
'article.edit.published' => '1,2,3',
'article.edit.own' => '1,2,3,4,5,6',
'article.edit.own.published' => '1,2,3,4',
'article.preview' => '1,2,3,4',
'article.publish' => '1,2,3,4',
'article.php' => '1,2',
'article' => '1,2,3,4,5,6',
'list' => '1,2,3,4,5,6', // Likely the same as for article.
'category' => '1,2,3',
'css' => '1,2, 6',
'debug.verbose' => '1,2',
'debug.backtrace' => '1',
'diag' => '1,2',
'discuss' => '1,2,3',
'file' => '1,2,3,4, 6',
'file.edit' => '1,2, 6',
'file.edit.own' => '1,2,3,4, 6',
'file.delete' => '1,2',
'file.delete.own' => '1,2,3,4, 6',
'file.publish' => '1,2,3,4, 6',
'form' => '1,2,3, 6',
'image' => '1,2,3,4, 6',
'image.create.trusted' => '1,2,3, 6',
'image.edit' => '1,2,3, 6',
'image.edit.own' => '1,2,3,4, 6',
'image.delete' => '1,2',
'image.delete.own' => '1,2,3,4, 6',
'import' => '1,2',
'lang' => '1,2', // More?
'link' => '1,2,3',
'link.edit' => '1,2,3',
'link.edit.own' => '1,2,3',
'link.delete' => '1,2',
'link.delete.own' => '1,2,3',
'log' => '1,2,3', // More?
'meta' => '1,2', // More?
'page' => '1,2,3, 6',
'pane' => '1,2,3,4,5,6',
'plugin' => '1,2',
'prefs' => '1,2,3,4,5,6',
'prefs.edit' => '1,2',
'prefs.site' => '1,2',
'prefs.admin' => '1,2',
'prefs.publish' => '1,2',
'prefs.feeds' => '1,2',
'prefs.custom' => '1,2',
'prefs.comments' => '1,2',
'section' => '1,2,3, 6',
'section.edit' => '1,2,3, 6',
'tab.admin' => '1,2,3,4,5,6',
'tab.content' => '1,2,3,4,5,6',
'tab.extensions' => '1,2',
'tab.presentation' => '1,2,3, 6',
'tag' => '1,2,3,4,5,6',
);
/**
* List of user groups.
*
* @global array $txp_groups
*/
$txp_groups = array(
1 => 'publisher',
2 => 'managing_editor',
3 => 'copy_editor',
4 => 'staff_writer',
5 => 'freelancer',
6 => 'designer',
0 => 'privs_none',
);