b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (0.9.x) [ class tree: conf ] [ index: conf ] [ all elements ]

Source for file _admin.php

Documentation is available at _admin.php

  1. <?php
  2. /**
  3.  * This is b2evolution's admin config file
  4.  *
  5.  * This sets how the back-office works
  6.  * Last significant changes to this file: version 0.9.0.10
  7.  *
  8.  * b2evolution - {@link http://b2evolution.net/}
  9.  * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
  10.  * @copyright (c)2003-2005 by Francois PLANQUE - {@link http://fplanque.net/}
  11.  *
  12.  * @package conf
  13.  */
  14. if!defined('DB_USER') ) die'Please, do not access this page directly.' );
  15.  
  16.  
  17. /**
  18.  * Cross posting
  19.  *
  20.  * Possible values:
  21.  *   - 0 if you want users to post to a single category only
  22.  *   - 1 if you want to be able to cross-post among multiple categories
  23.  *   - 2 if you want to be able to cross-post among multiple blogs/categories
  24.  *   - 3 if you want to be able to change main cat among blogs (which will move the
  25.  *       posts from one blog to another; use with caution)
  26.  *
  27.  * @global int $allow_cross_posting 
  28.  */
  29. $allow_cross_posting 1;
  30.  
  31.  
  32. /**
  33.  * Moving chapters between blogs?
  34.  *
  35.  * @global bool $allow_moving_chapters 
  36.  */
  37. $allow_moving_chapters false;
  38.  
  39.  
  40. /**
  41.  * Default status for new posts:
  42.  *
  43.  * Possible values: 'published', 'deprecated', 'protected', 'private', 'draft'
  44.  *
  45.  * @global string $default_post_status 
  46.  */
  47. $default_post_status 'published';
  48.  
  49.  
  50. /**
  51.  * set this to 1 if you want to use the 'preview' function
  52.  * @global boolean $use_preview 
  53.  */
  54. $use_preview 1;
  55.  
  56.  
  57. /**
  58.  * set this to 0 to disable the spell checker, or 1 to enable it
  59.  * @global boolean $use_spellchecker 
  60.  */
  61. $use_spellchecker 1;
  62.  
  63.  
  64. /**
  65.  * Do you want to be able to link each post to an URL ?
  66.  * @global boolean $use_post_url 
  67.  */
  68. $use_post_url 1;  // 1 to enable, 0 to disable
  69.  
  70.  
  71. /**
  72.  * When banning referrers/comment URLs, do you want to remove
  73.  * any referrers and comments containing the banned domain?
  74.  *
  75.  * (you will be asked to confirm the ban if you enable this)
  76.  *
  77.  * @global boolean $deluxe_ban 
  78.  */
  79. $deluxe_ban 1;  // 1 to enable, 0 to disable
  80.  
  81. /**
  82.  * When banning, do you want to report abuse to the
  83.  * centralized ban list at b2evolution.net?
  84.  *
  85.  * @global boolean $report_abuse 
  86.  */
  87. $report_abuse 1;
  88.  
  89.  
  90. // ** Image upload **
  91.  
  92. /**
  93.  * Set this to 0 to disable file upload, or 1 to enable it
  94.  * @global boolean $use_fileupload 
  95.  */
  96. $use_fileupload 1;
  97.  
  98. /**
  99.  * Enter the real path of the directory where you'll upload the pictures.
  100.  *
  101.  * If you're unsure about what your real path is, please ask your host's support staff.
  102.  * Note that the  directory must be writable by the webserver (ChMod 766).
  103.  * Note for windows-servers users: use forwardslashes instead of backslashes.
  104.  * Example: $fileupload_realpath = '/home/example/public_html/media';
  105.  * Alternatively you may want to use a path relative to $basepath.
  106.  *
  107.  * @global string $fileupload_realpath 
  108.  */
  109. $fileupload_realpath $basepath.'/media';
  110.  
  111. /**
  112.  * Enter the URL of that directory
  113.  *
  114.  * This is used to generate the links to the pictures
  115.  * Example: $fileupload_url = 'http://example.com/media';
  116.  * Alternatively you may want to use an URL relatibe to $baseurl
  117.  *
  118.  * @global string $fileupload_url 
  119.  */
  120. $fileupload_url $baseurl.'/media';
  121.  
  122. /**
  123.  * Accepted file types, you can add to that list if you want.
  124.  *
  125.  * Note: add a space before and after each file type.
  126.  * Example: $fileupload_allowedtypes = ' jpg gif png ';
  127.  *
  128.  * @global string $fileupload_allowedtypes 
  129.  */
  130. $fileupload_allowedtypes ' jpg gif png ';
  131.  
  132. /**
  133.  * by default, most servers limit the size of uploads to 2048 KB
  134.  * if you want to set it to a lower value, here it is (you cannot set a higher value)
  135.  *
  136.  * @global int $fileupload_maxk 
  137.  */
  138. $fileupload_maxk '96'// in kilo bytes
  139.  
  140. /**
  141.  * you may not want all users to upload pictures/files, so you can set a minimum level for this
  142.  * @global int $fileupload_minlevel 
  143.  */
  144. $fileupload_minlevel 1;
  145.  
  146. /**
  147.  * You may want to authorize only some users to upload. Enter their logins here, separated by space.
  148.  *
  149.  * if you leave that variable blank, all users who have the minimum level are authorized to upload.
  150.  * note: add a space before and after each login name.
  151.  * example: $fileupload_allowedusers = ' barbara anne ';
  152.  *
  153.  * @global string $fileupload_allowedusers 
  154.  */
  155. $fileupload_allowedusers '';
  156.  
  157. ?>

Documentation generated on Tue, 20 May 2008 01:52:12 +0200 by phpDocumentor 1.4.2