b2evolution PHP Cross Reference Blogging Systems

Source: /conf/_admin.php - 78 lines - 1882 bytes - Text - Print

Description: This is the admin config file This sets how the back-office/admin interface works

   1  <?php
   2  /**
   3   * This is the admin config file
   4   *
   5   * This sets how the back-office/admin interface works
   6   *
   7   * @package conf
   8   */
   9  if( !defined('EVO_CONFIG_LOADED') ) die( 'Please, do not access this page directly.' );
  10  
  11  
  12  /**
  13   * Reserved post type IDs.
  14   *
  15   * These post types are reserved for future use and can't be edited or
  16   * deleted in the post type editor. It also is not possible to select
  17   * them when creating a new post.
  18   * Do not remove any IDs from this array.
  19   *
  20   * @todo fp>get rid of this and just delete 5000 from the database during upgrade
  21   *
  22   * @global array $posttypes_reserved_IDs
  23   */
  24  $posttypes_reserved_IDs = array( 5000 );
  25  
  26  /**
  27   * Post types that can be restricted on a per-blog basis using the blog
  28   * user/group permissions.
  29   *
  30   * The key of each array element is the part of the corresponding permission
  31   * name without the "blog_" prefix (e. g. a value of 'page' means the
  32   * permission 'blog_page').
  33   * The value of each array element is an array containing the post type
  34   * IDs whose usage is controlled by the respective permission.
  35   *
  36   * @see check_perm_posttype()
  37   * @see ItemTypeCache::get_option_list_usable_only()
  38   *
  39   * @global array $posttypes_perms
  40   */
  41  $posttypes_perms = array(
  42      'page' => array(
  43          1000,
  44      ),
  45      'intro' => array(
  46          1500,
  47          1520,
  48          1530,
  49          1570,
  50          1600,
  51      ),
  52      'podcast' => array(
  53          2000,
  54      ),
  55      'sidebar' => array(
  56          3000,    // Sidebar link
  57          4000, // (Sidebar) Advertisement
  58      ),
  59  );
  60  
  61  
  62  /**
  63   * Post types that should not appear in the normal post stream
  64   */
  65  $posttypes_specialtypes = array_merge( $posttypes_perms['page'], $posttypes_perms['intro'], $posttypes_perms['sidebar'] );
  66  
  67  /**
  68   * Post types that should not have a permanent URL
  69   */
  70  $posttypes_nopermanentURL = $posttypes_perms['sidebar'];
  71  
  72  /**
  73   * Post types that should have a permanent URL as url of their main chapter
  74   */
  75  $posttypes_catpermanentURL = $posttypes_perms['intro'];
  76  
  77  
  78  ?>

title

Description

title

Description

title

Description

title

title

Body