Textpattern | PHP Cross Reference | Content Management Systems |
Description: Collection of user configuration options.
1 <?php 2 3 /* 4 * Textpattern Content Management System 5 * http://textpattern.com 6 * 7 * Copyright (C) 2016 The Textpattern Development Team 8 * 9 * This file is part of Textpattern. 10 * 11 * Textpattern is free software; you can redistribute it and/or 12 * modify it under the terms of the GNU General Public License 13 * as published by the Free Software Foundation, version 2. 14 * 15 * Textpattern is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU General Public License for more details. 19 * 20 * You should have received a copy of the GNU General Public License 21 * along with Textpattern. If not, see <http://www.gnu.org/licenses/>. 22 */ 23 24 /** 25 * Collection of user configuration options. 26 * 27 * @package User 28 */ 29 30 /** 31 * Textpattern admin options. 32 * 33 * These have been moved to the database. 34 * 35 * @global array $txpac 36 * @deprecated in 1.0.0 37 */ 38 39 $txpac = array( 40 // ------------------------------------------------------------- 41 42 // Bypass the Txp CSS editor entirely. 43 'edit_raw_css_by_default' => 1, 44 45 // ------------------------------------------------------------- 46 47 // PHP scripts on page templates will be parsed. 48 'allow_page_php_scripting' => 1, 49 50 // ------------------------------------------------------------- 51 52 // PHP scripts in article bodies will be parsed. 53 'allow_article_php_scripting' => 1, 54 55 // ------------------------------------------------------------- 56 57 // Use Textile on link titles and descriptions. 58 'textile_links' => 0, 59 60 // ------------------------------------------------------------- 61 // In the article categories listing in the organise tab. 62 63 'show_article_category_count' => 1, 64 65 // ------------------------------------------------------------- 66 67 // XML feeds display comment count as part of article title. 68 'show_comment_count_in_feed' => 1, 69 70 // ------------------------------------------------------------- 71 72 // Include articles or full excerpts in feeds: 73 // 0 = full article body. 74 // 1 = excerpt. 75 'syndicate_body_or_excerpt' => 1, 76 77 // ------------------------------------------------------------- 78 79 // Include (encoded) author email in Atom feeds. 80 'include_email_atom' => 1, 81 82 // ------------------------------------------------------------- 83 84 // Each comment received updates the site Last-Modified header. 85 'comment_means_site_updated' => 1, 86 87 // ------------------------------------------------------------- 88 89 // Comment email addresses are encoded to hide from spambots, 90 // but if you never want to see them at all, set this to 1. 91 'never_display_email' => 0, 92 93 // ------------------------------------------------------------- 94 95 // Comments must enter name and/or email address 96 'comments_require_name' => 1, 97 'comments_require_email' => 1, 98 99 // ------------------------------------------------------------- 100 101 // Show 'excerpt' pane in write tab. 102 'articles_use_excerpts' => 1, 103 104 // ------------------------------------------------------------- 105 106 // Show form overrides on article-by-article basis. 107 'allow_form_override' => 1, 108 109 // ------------------------------------------------------------- 110 111 // Whether or not to attach article titles to permalinks. 112 // e.g., /article/313/IAteACheeseSandwich. 113 'attach_titles_to_permalinks' => 1, 114 115 // ------------------------------------------------------------- 116 117 // If attaching titles to permalinks, which format? 118 // 0 = SuperStudlyCaps. 119 // 1 = hyphenated-lower-case. 120 'permalink_title_format' => 1, 121 122 // ------------------------------------------------------------- 123 124 // Number of days after which logfiles are purged. 125 'expire_logs_after' => 7, 126 127 // ------------------------------------------------------------- 128 129 // Plugins on or off. 130 'use_plugins' => 1, 131 132 // ------------------------------------------------------------- 133 134 // Use custom fields for articles - must be in 'quotes', 135 // and must contain no spaces. 136 'custom_1_set' => 'custom1', 137 'custom_2_set' => 'custom2', 138 'custom_3_set' => '', 139 'custom_4_set' => '', 140 'custom_5_set' => '', 141 'custom_6_set' => '', 142 'custom_7_set' => '', 143 'custom_8_set' => '', 144 'custom_9_set' => '', 145 'custom_10_set' => '', 146 147 // ------------------------------------------------------------- 148 149 // Ping textpattern.com when an article is published. 150 'ping_textpattern_com' => 1, 151 152 // ------------------------------------------------------------- 153 154 // Use DNS lookups in referrer log. 155 'use_dns' => 1, 156 157 // ------------------------------------------------------------- 158 159 // Load plugins in the admin interface. 160 'admin_side_plugins' => 1, 161 162 // ------------------------------------------------------------- 163 164 // Use rel="nofollow" on comment links. 165 'comment_nofollow' => 1, 166 167 // ------------------------------------------------------------- 168 169 // Use encoded email on Atom feeds id, instead of domain name 170 // (if you plan to move this install to another domain, you should use this). 171 'use_mail_on_feeds_id' => 0, 172 173 // ------------------------------------------------------------- 174 175 // Maximum URL length before it should be considered malicious. 176 'max_url_len' => 200, 177 178 // ------------------------------------------------------------- 179 180 // Spam DNS RBLs. 181 'spam_blacklists' => 'sbl.spamhaus.org', 182 ); 183 184 /** 185 * Sets permissions. 186 * 187 * @global array $txp_permissions 188 */ 189 190 $txp_permissions = array( 191 'admin' => '1,2,3,4,5,6', 192 'admin.edit' => '1', 193 'admin.list' => '1,2,3', 194 'article.delete.own' => '1,2,3,4', 195 'article.delete' => '1,2', 196 'article.edit' => '1,2,3', 197 'article.edit.published' => '1,2,3', 198 'article.edit.own' => '1,2,3,4,5,6', 199 'article.edit.own.published' => '1,2,3,4', 200 'article.preview' => '1,2,3,4', 201 'article.publish' => '1,2,3,4', 202 'article.php' => '1,2', 203 'article.set_markup' => '1,2,3, 6', 204 'article' => '1,2,3,4,5,6', 205 'list' => '1,2,3,4,5,6', // Likely the same as for article. 206 'category' => '1,2,3', 207 'css' => '1,2, 6', 208 'debug.verbose' => '1,2', 209 'debug.backtrace' => '1', 210 'diag' => '1,2', 211 'discuss' => '1,2,3', 212 'file' => '1,2,3,4', 213 'file.edit' => '1,2', 214 'file.edit.own' => '1,2,3,4', 215 'file.delete' => '1,2', 216 'file.delete.own' => '1,2,3,4', 217 'file.publish' => '1,2,3,4', 218 'form' => '1,2,3, 6', 219 'image' => '1,2,3,4, 6', 220 'image.create.trusted' => '1,2,3, 6', 221 'image.edit' => '1,2,3, 6', 222 'image.edit.own' => '1,2,3,4, 6', 223 'image.delete' => '1,2', 224 'image.delete.own' => '1,2,3,4, 6', 225 'lang' => '1,2', // More? 226 'link' => '1,2,3', 227 'link.edit' => '1,2,3', 228 'link.edit.own' => '1,2,3', 229 'link.delete' => '1,2', 230 'link.delete.own' => '1,2,3', 231 'log' => '1,2,3', // More? 232 'page' => '1,2,3, 6', 233 'pane' => '1,2,3,4,5,6', 234 'plugin' => '1,2', 235 'prefs' => '1,2,3,4,5,6', 236 'prefs.edit' => '1,2', 237 'prefs.site' => '1,2', 238 'prefs.admin' => '1,2', 239 'prefs.publish' => '1,2', 240 'prefs.feeds' => '1,2', 241 'prefs.custom' => '1,2', 242 'prefs.comments' => '1,2', 243 'section' => '1,2, 6', 244 'section.edit' => '1,2, 6', 245 'tab.admin' => '1,2,3,4,5,6', 246 'tab.content' => '1,2,3,4,5,6', 247 'tab.extensions' => '1,2', 248 'tab.presentation' => '1,2,3, 6', 249 'tag' => '1,2,3,4,5,6', 250 ); 251 252 /** 253 * List of user groups. 254 * 255 * @global array $txp_groups 256 */ 257 258 $txp_groups = array( 259 1 => 'publisher', 260 2 => 'managing_editor', 261 3 => 'copy_editor', 262 4 => 'staff_writer', 263 5 => 'freelancer', 264 6 => 'designer', 265 0 => 'privs_none', 266 );
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
title