b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (CVS HEAD) [ class tree: conf ] [ index: conf ] [ all elements ]

Source for file _upgrade.php

Documentation is available at _upgrade.php

  1. <?php
  2. /**
  3.  * This file includes upgrade settings for b2evolution.
  4.  *
  5.  * b2evolution - {@link http://b2evolution.net/}
  6.  * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
  7.  * @copyright (c)2003-2010 by Francois PLANQUE - {@link http://fplanque.net/}
  8.  *
  9.  * @package conf
  10.  */
  11. if!defined('EVO_CONFIG_LOADED') ) die'Please, do not access this page directly.' );
  12.  
  13.  
  14. /**#@+
  15.  * Old b2 tables used exclusively by the cafelog upgrade mode of the install script.
  16.  *
  17.  * @global string
  18.  */
  19. $oldtableposts      'b2posts';
  20. $oldtableusers      'b2users';
  21. $oldtablesettings   'b2settings';
  22. $oldtablecategories 'b2categories';
  23. $oldtablecomments   'b2comments';
  24. /**#@-*/
  25.  
  26.  
  27. /**
  28.  * Variables to be used to upgrade from previous versions on b2evolution.
  29.  *
  30.  * These are variables that were previously located in /conf/
  31.  * If you want to preserve those settings copy your values over here
  32.  * before running the upgrade script.
  33.  */
  34.  
  35. // Moved from /blogs/conf/_advanced.php:
  36.  
  37. /**
  38.  * Set this to 0 to disable file upload, or 1 to enable it
  39.  * @global boolean $use_fileupload 
  40.  * @deprecated since 1.6: this is only used for creating the defaults when upgrading
  41.  *              This has been used until EVO_NEW_VERSION by XMLRPC though.
  42.  */
  43. $use_fileupload 1;
  44.  
  45. /**
  46.  * Enter the real path of the directory where you'll upload the pictures.
  47.  *
  48.  * If you're unsure about what your real path is, please ask your host's support staff.
  49.  * Note that the  directory must be writable by the webserver (ChMod 766).
  50.  * Note for windows-servers users: use forwardslashes instead of backslashes.
  51.  * Example: $fileupload_realpath = '/home/example/public_html/media/';    # WITH traling slash!
  52.  * Alternatively you may want to use a path relative to $basepath.
  53.  *
  54.  * @global string $fileupload_realpath 
  55.  * @deprecated 1.6: the user uploads to his own media folder (or somewhere else with write permissions)
  56.  *              This has been used until EVO_NEW_VERSION by XMLRPC/MMS though.
  57.  */
  58. $fileupload_realpath $basepath.'media/';    # WARNING: slashes moved!
  59.  
  60. /**
  61.  * Enter the URL of that directory
  62.  *
  63.  * This is used to generate the links to the pictures
  64.  * Example: $fileupload_url = 'http://example.com/media/';    # WITH traling slash!
  65.  * Alternatively you may want to use an URL relatibe to $baseurl
  66.  *
  67.  * @global string $fileupload_url 
  68.  * @deprecated 1.6: the user uploads to his own media folder (or somewhere else with write permissions)
  69.  *              This has been used until EVO_NEW_VERSION by XMLRPC/MMS though.
  70.  */
  71. $fileupload_url $baseurl.'media/';                # WARNING: slashes moved!
  72.  
  73.  
  74. // Moved from /blogs/conf/_advanced.php:
  75.  
  76. /**
  77.  * Accepted file types, you can add to that list if you want.
  78.  *
  79.  * Note: add a space before and after each file type.
  80.  * Example: $fileupload_allowedtypes = ' jpg gif png ';
  81.  *
  82.  * @global string $fileupload_allowedtypes 
  83.  * @deprecated 1.6: this is only used for creating the defaults when upgrading
  84.  */
  85. $fileupload_allowedtypes ' jpg gif png txt ';
  86.  
  87.  
  88. /**
  89.  * by default, most servers limit the size of uploads to 2048 KB
  90.  * if you want to set it to a lower value, here it is (you cannot set a higher value)
  91.  *
  92.  * @global int $fileupload_maxk 
  93.  * @deprecated 1.6: this is only used for creating the defaults when upgrading
  94.  */
  95. $fileupload_maxk '96'// in kilo bytes
  96.  
  97.  
  98. // Moved from /blogs/conf/_stats.php:
  99.  
  100. /**
  101.  * How many days of stats do you want to keep before auto pruning them?
  102.  *
  103.  * Set to 0 to disable auto pruning
  104.  *
  105.  * @global int $stats_autoprune 
  106.  * @deprecated 1.6: this is only used for creating the defaults when upgrading
  107.  */
  108. $stats_autoprune 30// Default: 30 days
  109.  
  110. ?>

Documentation generated on Sat, 06 Mar 2010 04:25:51 +0100 by phpDocumentor 1.4.2. This site is hosted and maintained by Daniel HAHLER (Contact).