[ Index ]

PHP Cross Reference of Textpattern 4.0.8

title

Body

[close]

/textpattern/lib/ -> admin_config.php (source)

   1  <?php
   2  /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
   3  
   4                  (M O S T L Y)  D E P R E C A T E D  AS  OF  1.0RC4
   5  
   6   *    IMPORTANT:  Most settings in this file  (all that is in  $txpac)  have moved
   7      into the  Database. This file remains here  mainly for  not breaking updates
   8   *    for people that are coming from older revisions (up to and including 1.0RC3)!
   9      If you would like to change any of these settings, you can do so in Advanced
  10   *    Preferences    of your Textpattern admin panel.
  11  
  12   *    Only the Permission-Settings at the bottom this file are still actively used,
  13      and these will be moved to the db before the next release
  14  
  15  $HeadURL: https://textpattern.googlecode.com/svn/releases/4.0.8/source/textpattern/lib/admin_config.php $
  16  $LastChangedRevision: 2812 $
  17  
  18   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  19  
  20  
  21  // Textpattern admin options
  22  // unless stated otherwise, 0 = false, 1 = true
  23  $txpac = array(
  24  // -------------------------------------------------------------
  25  // bypass the Txp CSS editor entirely
  26  
  27      'edit_raw_css_by_default'     => 1,
  28  
  29  
  30  // -------------------------------------------------------------
  31  // php scripts on page templates will be parsed
  32  
  33      'allow_page_php_scripting'    => 1,
  34  
  35  // -------------------------------------------------------------
  36  // php scripts in article bodies will be parsed
  37  
  38      'allow_article_php_scripting' => 1,
  39  
  40  // -------------------------------------------------------------
  41  // use Textile on link titles and descriptions
  42  
  43      'textile_links'               => 0,
  44  
  45  
  46  // -------------------------------------------------------------
  47  // in the article categories listing in the organise tab
  48  
  49      'show_article_category_count' => 1,
  50  
  51  
  52  // -------------------------------------------------------------
  53  // xml feeds display comment count as part of article title
  54  
  55      'show_comment_count_in_feed'  => 1,
  56  
  57  
  58  // -------------------------------------------------------------
  59  // include articles or full excerpts in feeds
  60  // 0 = full article body
  61  // 1 = excerpt
  62  
  63      'syndicate_body_or_excerpt'   => 1,
  64  
  65  
  66  // -------------------------------------------------------------
  67  // include (encoded) author email in atom feeds
  68  
  69      'include_email_atom'          => 1,
  70  
  71  
  72  // -------------------------------------------------------------
  73  // each comment received updates the site Last-Modified header
  74  
  75      'comment_means_site_updated'  => 1,
  76  
  77  
  78  // -------------------------------------------------------------
  79  // comment email addresses are encoded to hide from spambots
  80  // but if you never want to see them at all, set this to 1
  81  
  82      'never_display_email'         => 0,
  83  
  84  
  85  // -------------------------------------------------------------
  86  // comments must enter name and/or email address
  87  
  88      'comments_require_name'       => 1,
  89      'comments_require_email'      => 1,
  90  
  91  
  92  // -------------------------------------------------------------
  93  // show 'excerpt' pane in write tab
  94  
  95      'articles_use_excerpts'       => 1,
  96  
  97  
  98  // -------------------------------------------------------------
  99  // show form overrides on article-by-article basis
 100  
 101      'allow_form_override'         => 1,
 102  
 103  
 104  // -------------------------------------------------------------
 105  // whether or not to attach article titles to permalinks
 106  // e.g., /article/313/IAteACheeseSandwich
 107  
 108      'attach_titles_to_permalinks' => 1,
 109  
 110  
 111  // -------------------------------------------------------------
 112  // if attaching titles to permalinks, which format?
 113  // 0 = SuperStudlyCaps
 114  // 1 = hyphenated-lower-case
 115  
 116      'permalink_title_format'      => 1,
 117  
 118  
 119  // -------------------------------------------------------------
 120  // number of days after which logfiles are purged
 121  
 122      'expire_logs_after'           => 7,
 123  
 124  
 125  // -------------------------------------------------------------
 126  // plugins on or off
 127  
 128      'use_plugins'                 => 1,
 129  
 130  // -------------------------------------------------------------
 131  // use custom fields for articles - must be in 'quotes', and
 132  // must contain no spaces
 133  
 134      'custom_1_set'                => 'custom1',
 135      'custom_2_set'                => 'custom2',
 136      'custom_3_set'                => '',
 137      'custom_4_set'                => '',
 138      'custom_5_set'                => '',
 139      'custom_6_set'                => '',
 140      'custom_7_set'                => '',
 141      'custom_8_set'                => '',
 142      'custom_9_set'                => '',
 143      'custom_10_set'               => '',
 144  
 145  // -------------------------------------------------------------
 146  // ping textpattern.com when an article is published
 147  
 148      'ping_textpattern_com'        => 1,
 149  
 150  // -------------------------------------------------------------
 151  // use DNS lookups in referrer log
 152  
 153      'use_dns'        => 1,
 154  
 155  // -------------------------------------------------------------
 156  // load plugins in the admin interface
 157  
 158      'admin_side_plugins'        => 1,
 159  
 160  // -------------------------------------------------------------
 161  // use rel="nofollow" on comment links
 162  
 163      'comment_nofollow'        => 1,
 164  
 165  // -------------------------------------------------------------
 166  // use encoded email on atom feeds id, instead of domain name
 167  // (if you plan to move this install to another domain, you should use this)
 168  
 169      'use_mail_on_feeds_id'       =>0,
 170  
 171  // -------------------------------------------------------------
 172  // maximum url length before it should be considered malicious
 173  
 174      'max_url_len'               => 200,
 175  
 176  // -------------------------------------------------------------
 177  // Spam DNS RBLs
 178  
 179      'spam_blacklists'          => 'sbl.spamhaus.org',
 180  
 181  );
 182  
 183  // -------------------------------------------------------------
 184  
 185  $txp_permissions = array(
 186      'admin'                       => '1,2,3,4,5,6',
 187      'admin.edit'                => '1',
 188      'admin.list'                  => '1,2,3',
 189      'article.delete.own'          => '1,2,3,4',
 190      'article.delete'              => '1,2',
 191      'article.edit'                => '1,2,3',
 192      'article.edit.published'      => '1,2,3',
 193      'article.edit.own'            => '1,2,3,4,5,6',
 194      'article.edit.own.published'  => '1,2,3,4',
 195      'article.publish'             => '1,2,3,4',
 196      'article.php'                 => '1,2',
 197      'article'                     => '1,2,3,4,5,6',
 198      'list'                        => '1,2,3,4,5,6', //likely the same as for article.
 199      'category'                    => '1,2,3',
 200      'css'                         => '1,2,6',
 201      'diag'                        => '1,2',
 202      'discuss'                     => '1,2,3',
 203      'file'                        => '1,2,3,4,6',
 204      'form'                        => '1,2,3,6',
 205      'image'                       => '1,2,3,4,6',
 206      'import'                      => '1,2',
 207      'link'                        => '1,2,3',
 208      'log'                         => '1,2,3', // more?
 209      'page'                        => '1,2,3,6',
 210      'plugin'                      => '1,2',
 211      'prefs'                       => '1,2',
 212      'section'                     => '1,2,3,6',
 213      'tab.admin'                   => '1,2,3,4,5,6',
 214      'tab.content'                 => '1,2,3,4,5,6',
 215      'tab.extensions'              => '1,2',
 216      'tab.presentation'            => '1,2,3,6',
 217      'tag'                         => '1,2,3,4,5,6',
 218  );
 219  
 220  ?>


Generated: Thu May 21 23:03:01 2009 Cross-referenced by PHPXref 0.7