Textpattern PHP Cross Reference Content Management Systems

Source: /textpattern/lib/admin_config.php - 135 lines - 4603 bytes - Text - Print

Description: Collection of user configuration options.

   1  <?php
   2  
   3  /*
   4   * Textpattern Content Management System
   5   * https://textpattern.com/
   6   *
   7   * Copyright (C) 2020 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 <https://www.gnu.org/licenses/>.
  22   */
  23  
  24  /**
  25   * Collection of user configuration options.
  26   *
  27   * @package User
  28   */
  29  
  30  /**
  31   * Sets permissions.
  32   *
  33   * @global array $txp_permissions
  34   */
  35  
  36  $txp_permissions = array(
  37      'admin'                      => '1,2,3,4,5,6',
  38      'admin.edit'                 => '1',
  39      'admin.edit.own'             => '1,2,3,4,5,6',
  40      'admin.list'                 => '1,2,3',
  41      'article.delete.own'         => '1,2,3,4,5',
  42      'article.delete'             => '1,2',
  43      'article.edit'               => '1,2,3',
  44      'article.edit.published'     => '1,2,3',
  45      'article.edit.own'           => '1,2,3,4,5,6',
  46      'article.edit.own.published' => '1,2,3,4',
  47      'article.preview'            => '1,2,3,4',
  48      'article.publish'            => '1,2,3,4',
  49      'article.php'                => '1,2',
  50      'article.set_markup'         => '1,2,3,    6',
  51      'article'                    => '1,2,3,4,5,6',
  52      'list'                       => '1,2,3,4,5,6', // Likely the same as for article.
  53      'category'                   => '1,2,3',
  54      'css'                        => '1,2,      6',
  55      'debug.verbose'              => '1,2',
  56      'debug.backtrace'            => '1',
  57      'diag'                       => '1,2',
  58      'discuss'                    => '1,2,3',
  59      'file'                       => '1,2,3,4',
  60      'file.edit'                  => '1,2',
  61      'file.edit.own'              => '1,2,3,4',
  62      'file.delete'                => '1,2',
  63      'file.delete.own'            => '1,2,3,4',
  64      'file.publish'               => '1,2,3,4',
  65      'form'                       => '1,2,3,    6',
  66      'image'                      => '1,2,3,4,5,6',
  67      'image.create.trusted'       => '', // Deprecated in 4.7.0
  68      'image.edit'                 => '1,2,3,    6',
  69      'image.edit.own'             => '1,2,3,4,5,6',
  70      'image.delete'               => '1,2',
  71      'image.delete.own'           => '1,2,3,4,5,6',
  72      'lang'                       => '1,2,3,4,5,6',
  73      'lang.edit'                  => '1,2',
  74      'link'                       => '1,2,3',
  75      'link.edit'                  => '1,2,3',
  76      'link.edit.own'              => '1,2,3',
  77      'link.delete'                => '1,2',
  78      'link.delete.own'            => '1,2,3',
  79      'log'                        => '1,2,3', // More?
  80      'page'                       => '1,2,3,    6',
  81      'pane'                       => '1,2,3,4,5,6',
  82      'plugin'                     => '1,2',
  83      'prefs'                      => '1,2,3,4,5,6',
  84      'prefs.edit'                 => '1,2',
  85      'prefs.site'                 => '1,2',
  86      'prefs.admin'                => '1,2',
  87      'prefs.publish'              => '1,2',
  88      'prefs.feeds'                => '1,2',
  89      'prefs.custom'               => '1,2',
  90  //    'prefs.comments'             => '1,2',
  91  //    'prefs.advanced_options'     => '1,2',
  92      'section'                    => '1,2,      6',
  93      'section.edit'               => '1,2,      6',
  94      'skin'                       => '1,2,      6',
  95      'skin.edit'                  => '1,2,      6',
  96      'tab.admin'                  => '1,2,3,4,5,6',
  97      'tab.content'                => '1,2,3,4,5,6',
  98      'tab.extensions'             => '1,2',
  99      'tab.presentation'           => '1,2,3,    6',
 100      'tag'                        => '1,2,3,4,5,6',
 101      'help'                       => '1,2,3,4,5,6',
 102  );
 103  
 104  /**
 105   * List of user groups.
 106   *
 107   * @global array $txp_groups
 108   */
 109  
 110  $txp_groups = array(
 111      1 => 'publisher',
 112      2 => 'managing_editor',
 113      3 => 'copy_editor',
 114      4 => 'staff_writer',
 115      5 => 'freelancer',
 116      6 => 'designer',
 117      0 => 'privs_none',
 118  );
 119  
 120  /**
 121   * List of pluggable options.
 122   *
 123   * @global array $txp_options
 124   */
 125  
 126  $txp_options = array(
 127      'advanced_options' => '1,2',
 128      'use_comments' => array(
 129          'prefs.comments' => '1,2'
 130      ),
 131      'enable_dev_preview' => array(
 132          0 => '1,2,      6',
 133          'skin.preview' => true
 134      )
 135  );

title

Description

title

Description

title

Description

title

title

Body