[ Index ]
 

Code source de b2evolution 2.1.0-beta

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/blogs/conf/ -> _admin.php (source)

   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   * Default controller to use.

  14   *

  15   * This determines the default page when you access the admin.

  16   */
  17  $default_ctrl = 'dashboard';
  18  
  19  
  20  /**

  21   * Controller mappings.

  22   *

  23   * For each controller name, we associate a controller file to be found in /inc/ .

  24   * The advantage of this indirection is that it is easy to reorganize the controllers into

  25   * subdirectories by modules. It is also easy to deactivate some controllers if you don't

  26   * want to provide this functionality on a given installation.

  27   *

  28   * Note: while the controller mappings might more or less follow the menu structure, we do not merge

  29   * the two tables since we could, at any time, decide to make a skin with a different menu structure.

  30   * The controllers however would most likely remain the same.

  31   *

  32   * @global array

  33   */
  34  $ctrl_mappings = array(
  35          'antispam'     => 'antispam/antispam_list.ctrl.php',
  36          'chapters'     => 'chapters/chapters.ctrl.php',
  37          'collections'  => 'collections/collections.ctrl.php',
  38          'coll_settings'=> 'collections/coll_settings.ctrl.php',
  39          'comments'     => 'comments/_comments.ctrl.php',
  40          'crontab'      => 'cron/cronjobs.ctrl.php',
  41          'dashboard'    => 'dashboard/dashboard.ctrl.php',
  42          'features'     => 'settings/features.ctrl.php',
  43          'files'        => 'files/files.ctrl.php',
  44          'fileset'      => 'files/file_settings.ctrl.php',
  45          'filetypes'    => 'files/file_types.ctrl.php',
  46          'items'        => 'items/items.ctrl.php',
  47          'itemstatuses' => 'items/item_statuses.ctrl.php',
  48          'itemtypes'    => 'items/item_types.ctrl.php',
  49          'locales'      => 'locales/locales.ctrl.php',
  50          'mtimport'     => 'tools/mtimport.ctrl.php',
  51          'plugins'      => 'plugins/plugins.ctrl.php',
  52          'settings'     => 'settings/settings.ctrl.php',
  53          'set_antispam' => 'antispam/antispam_settings.ctrl.php',
  54          'skins'        => 'skins/skins.ctrl.php',
  55          'stats'        => 'sessions/stats.ctrl.php',
  56          'system'       => 'tools/system.ctrl.php',
  57          'tools'        => 'tools/tools.ctrl.php',
  58          'users'        => 'users/users.ctrl.php',
  59          'upload'       => 'files/upload.ctrl.php',
  60          'widgets'      => 'widgets/widgets.ctrl.php',
  61          'wpimport'     => 'tools/wpimport.ctrl.php',
  62      );
  63  
  64  
  65  /**

  66   * Cross posting

  67   *

  68   * Possible values:

  69   *   - -1 if you don't want to use categories at all

  70   *   - 0 if you want users to post to a single category only

  71   *   - 1 if you want to be able to cross-post among multiple categories

  72   *   - 2 if you want to be able to cross-post among multiple blogs/categories

  73   *   - 3 if you want to be able to change main cat among blogs (which will move the

  74   *       posts from one blog to another; use with caution)

  75   *

  76   * @todo fp>This should be moved to the backoffice.

  77   * In the BO, this should actually be split into:

  78   * App Settings:

  79   *  checkbox         [] allow cross posting

  80   *  another checkbox [] allow moving posting between different blogs

  81   * Each blog's settings: radio between:

  82   *    o One category per post

  83   *    o Multiple categories per post (requires transparent handling of main cat)

  84   *    o Main cat + extra cats

  85   *    o Don't use categories  (this requires to transparently manage a default category)

  86   *

  87   * @global int $allow_cross_posting

  88   */
  89  $allow_cross_posting = 1;
  90  
  91  
  92  /**

  93   * Default status for new posts:

  94   *

  95   * Possible values: 'published', 'deprecated', 'protected', 'private', 'draft', 'redirected'

  96   *

  97   * @todo fp>This should be moved to the backoffice. Select list for each blog.

  98   *

  99   * @global string $default_post_status

 100   */
 101  $default_post_status = 'published';
 102  
 103  
 104  /**

 105   * set this to 1 if you want to use the 'preview' function

 106   *

 107   * @todo fp>This should be moved to the backoffice. Checbox for each blog (features). Useful when a blog has no public skin. (Tracker)

 108   *

 109   * @global boolean $use_preview

 110   */
 111  $use_preview = 1;
 112  
 113  
 114  /**

 115   * Do you want to be able to link each post to an URL ?

 116   *

 117   * @todo fp>This should be moved to the backoffice. Checbox for each blog (features).

 118   *

 119   * @global boolean $use_post_url

 120   */
 121  $use_post_url = 1;  // 1 to enable, 0 to disable

 122  
 123  
 124  /**

 125   * When banning, do you want to be able to report abuse to the

 126   * centralized ban list at b2evolution.net?

 127   *

 128   * @global boolean $report_abuse

 129   */
 130  $report_abuse = 1;
 131  
 132  ?>


Généré le : Thu Nov 29 23:58:50 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics