b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (Version 1.9) [ class tree: conf ] [ index: conf ] [ all elements ]

Source for file _admin.php

Documentation is available at _admin.php

  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 'edit';
  18.  
  19.  
  20. /**
  21.  * Controller mappings.
  22.  *
  23.  * For each controller name, we associate a controller file to be found in /inc/CONTROLLERS/ .
  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.php',
  36.         'browse'       => 'items/b2browse.php',
  37.         'chapters'     => 'collections/categories.php',
  38.         'collections'  => 'collections/blogs.php',
  39.         'crontab'      => 'cron/crontab.php',
  40.         'edit'         => 'items/b2edit.php',
  41.         'editactions'  => 'items/edit_actions.php',
  42.         'features'     => 'settings/features.php',
  43.         'files'        => 'files/files.php',
  44.         'fileset'      => 'files/fileset.php',
  45.         'filetypes'    => 'files/filetypes.php',
  46.         'itemstatuses' => 'items/statuses.php',
  47.         'itemtypes'    => 'items/types.php',
  48.         'locales'      => 'settings/locales.php',
  49.         'mtimport'     => 'imports/import-mt.php',
  50.         'plugins'      => 'settings/plugins.php',
  51.         'settings'     => 'settings/settings.php',
  52.         'set_antispam' => 'settings/antispam.php',
  53.         'stats'        => 'sessions/stats.php',
  54.         'templates'    => 'skins/b2template.php',
  55.         'tools'        => '_misc/tools.php',
  56.         'users'        => 'users/b2users.php',
  57.     );
  58.  
  59.  
  60. /**
  61.  * Cross posting
  62.  *
  63.  * Possible values:
  64.  *   - -1 if you don't want to use categories at all
  65.  *   - 0 if you want users to post to a single category only
  66.  *   - 1 if you want to be able to cross-post among multiple categories
  67.  *   - 2 if you want to be able to cross-post among multiple blogs/categories
  68.  *   - 3 if you want to be able to change main cat among blogs (which will move the
  69.  *       posts from one blog to another; use with caution)
  70.  *
  71.  * @global int $allow_cross_posting 
  72.  */
  73. $allow_cross_posting 1;
  74.  
  75.  
  76. /**
  77.  * Moving chapters between blogs?
  78.  *
  79.  * Special value: NULL and we won't even talk about moving
  80.  *
  81.  * @global bool|NULL$allow_moving_chapters 
  82.  */
  83. $allow_moving_chapters false;
  84.  
  85.  
  86. /**
  87.  * Default status for new posts:
  88.  *
  89.  * Possible values: 'published', 'deprecated', 'protected', 'private', 'draft'
  90.  *
  91.  * @global string $default_post_status 
  92.  */
  93. $default_post_status 'published';
  94.  
  95.  
  96. /**
  97.  * set this to 1 if you want to use the 'preview' function
  98.  * @global boolean $use_preview 
  99.  */
  100. $use_preview 1;
  101.  
  102.  
  103. /**
  104.  * Do you want to be able to link each post to an URL ?
  105.  * @global boolean $use_post_url 
  106.  */
  107. $use_post_url 1;  // 1 to enable, 0 to disable
  108.  
  109.  
  110. /**
  111.  * When banning, do you want to be able to report abuse to the
  112.  * centralized ban list at b2evolution.net?
  113.  *
  114.  * @global boolean $report_abuse 
  115.  */
  116. $report_abuse 1;
  117.  
  118.  
  119. // ** Image upload ** {{{ @deprecated moved to admin interface, but used for upgrading to 1.6
  120. /**
  121.  * Set this to 0 to disable file upload, or 1 to enable it
  122.  * @global boolean $use_fileupload 
  123.  * @deprecated 1.6: this is only used for creating the defaults when upgrading
  124.  *  This is still used by MMS and XMLRPC though.
  125.  */
  126. $use_fileupload 1;
  127.  
  128. /**
  129.  * Enter the real path of the directory where you'll upload the pictures.
  130.  *
  131.  * If you're unsure about what your real path is, please ask your host's support staff.
  132.  * Note that the  directory must be writable by the webserver (ChMod 766).
  133.  * Note for windows-servers users: use forwardslashes instead of backslashes.
  134.  * Example: $fileupload_realpath = '/home/example/public_html/media/';    # WITH traling slash!
  135.  * Alternatively you may want to use a path relative to $basepath.
  136.  *
  137.  * @global string $fileupload_realpath 
  138.  * @deprecated 1.6: the user uploads to his own media folder (or somewhere else with write permissions)
  139.  *  This is still used by MMS and XMLRPC though.
  140.  */
  141. $fileupload_realpath $basepath.'media/';    # WARNING: slashes moved!
  142.  
  143. /**
  144.  * Enter the URL of that directory
  145.  *
  146.  * This is used to generate the links to the pictures
  147.  * Example: $fileupload_url = 'http://example.com/media/';    # WITH traling slash!
  148.  * Alternatively you may want to use an URL relatibe to $baseurl
  149.  *
  150.  * @global string $fileupload_url 
  151.  * @deprecated 1.6: the user uploads to his own media folder (or somewhere else with write permissions)
  152.  *  This is still used by MMS and the MT importer though.
  153.  */
  154. $fileupload_url $baseurl.'media/';                # WARNING: slashes moved!
  155.  
  156. // }}}
  157.  
  158.  
  159. /**
  160.  * max length for blog_urlname and blog_stub values
  161.  *
  162.  * (this gets checked when editing/creating blogs).
  163.  *
  164.  * @global int $maxlength_urlname_stub 
  165.  */
  166. $maxlength_urlname_stub 30;
  167. ?>

Documentation generated on Tue, 18 Dec 2007 19:09:56 +0100 by phpDocumentor 1.4.0