b2evolution PHP Cross Reference Blogging Systems

Source: /conf/_advanced.php - 793 lines - 26194 bytes - Summary - Text - Print

Description: This file includes advanced settings for the evoCore framework. Please NOTE: You should not comment variables out to prevent URL overrides.

   1  <?php
   2  /**
   3   * This file includes advanced settings for the evoCore framework.
   4   *
   5   * Please NOTE: You should not comment variables out to prevent
   6   * URL overrides.
   7   *
   8   * @package conf
   9   *
  10   * @version $Id: _advanced.php 5209 2013-11-18 06:02:00Z yura $
  11   */
  12  if( !defined('EVO_CONFIG_LOADED') ) die( 'Please, do not access this page directly.' );
  13  
  14  /**
  15   * Display debugging informations?
  16   *
  17   * 0 = no
  18   * 1 = yes
  19   * 2 = yes and potentially die() to display debug info (needed before redirects, e-g message_send.php)
  20   * 'pwd' = require password
  21   *
  22   * @global integer
  23   */
  24  $debug = 'pwd';
  25  $debug_jslog = 'pwd';
  26  
  27  /**
  28   * When $debug is 'pwd' and you set a /password/ below,
  29   * you can turn on debugging at any time by adding ?debug=YOUR_PASSWORD to your url.
  30   * You can turn off by adding just ?debug
  31   *
  32   * You can ALSO turn on debugging of JavaScript(AJAX Requests) by adding ?jslog=YOUR_PASSWORD to your url.
  33   * You can turn off by adding just ?jslog
  34   *
  35   * @var string
  36   */
  37  $debug_pwd = '';
  38  
  39  
  40  // Most of the time you'll want to see all errors, including notices:
  41  // b2evo should run notice free! (plugins too!)
  42  if( version_compare( phpversion(), '5.3', '>=' ) )
  43  {    // sam2kb> Disable E_STRICT messages on PHP > 5.3, there are numerous E_STRICT warnings displayed throughout the app
  44      error_reporting( E_ALL & ~E_STRICT );
  45  }
  46  else
  47  {
  48      error_reporting( E_ALL );
  49  }
  50  
  51  /**
  52   * Do we want to display errors, even when not in debug mode?
  53   *
  54   * You are welcome to change/override this if you know what you're doing.
  55   * This is turned on by default so that newbies can quote meaningful error messages in the forums.
  56   */
  57  $display_errors_on_production = true;
  58  
  59  // If you get blank pages or missing thumbnail images, PHP may be crashing because it doesn't have enough memory.
  60  // The default is 8 MB (in PHP < 5.2) and 128 MB (in PHP > 5.2)
  61  // Try uncommmenting the following line:
  62  // ini_set( 'memory_limit', '128M' );
  63  
  64  /**
  65   * Log application errors through {@link error_log() PHP's logging facilities}?
  66   *
  67   * This means that they will get logged according to PHP's error_log configuration directive.
  68   *
  69   * Experimental! This may be changed to use regular files instead/optionally.
  70   *
  71   * @todo Provide logging into normal file instead (more useful for backtraces/multiline error messages)
  72   *
  73   * @global integer 0: off; 1: log errors; 2: include function backtraces (Default: 1)
  74   */
  75  $log_app_errors = 1;
  76  
  77  
  78  /**
  79   * Allows to force a timezone if PHP>=5.1
  80   * See: http://b2evolution.net/man/date_default_timezone-forcing-a-timezone
  81   */
  82  $date_default_timezone = '';
  83  
  84  /**
  85   * Thumbnail size definitions.
  86   *
  87   * NOTE: this gets used for general resizing, too. E.g. in the coll_avatar_Widget.
  88   *
  89   * type, width, height, quality, percent of blur effect
  90   */
  91  $thumbnail_sizes = array(
  92              'fit-720x500' => array( 'fit', 720, 500, 90 ),
  93              'fit-640x480' => array( 'fit', 640, 480, 90 ),
  94              'fit-520x390' => array( 'fit', 520, 390, 90 ),
  95              'fit-400x320' => array( 'fit', 400, 320, 85 ),
  96              'fit-320x320' => array( 'fit', 320, 320, 85 ),
  97              'fit-160x160' => array( 'fit', 160, 160, 80 ),
  98              'fit-160x160-blur-13' => array( 'fit', 160, 160, 80, 13 ),
  99              'fit-160x160-blur-18' => array( 'fit', 160, 160, 80, 18 ),
 100              'fit-160x120' => array( 'fit', 160, 120, 80 ),
 101              'fit-80x80' => array( 'fit', 80, 80, 80 ),
 102              'crop-80x80' => array( 'crop', 80, 80, 85 ),
 103              'crop-64x64' => array( 'crop', 64, 64, 85 ),
 104              'crop-48x48' => array( 'crop', 48, 48, 85 ),
 105              'crop-32x32' => array( 'crop', 32, 32, 85 ),
 106              'crop-15x15' => array( 'crop', 15, 15, 85 ),
 107              'crop-top-80x80' => array( 'crop-top', 80, 80, 85 ),
 108              'crop-top-64x64' => array( 'crop-top', 64, 64, 85 ),
 109              'crop-top-48x48' => array( 'crop-top', 48, 48, 85 ),
 110              'crop-top-32x32' => array( 'crop-top', 32, 32, 85 ),
 111              'crop-top-15x15' => array( 'crop-top', 15, 15, 85 ),
 112      );
 113  
 114  
 115  /**
 116   * Demo mode
 117   *  - Do not allow update of files in the file manager
 118   *  - Do not allow changes to the 'demouser' and 'admin' account/group
 119   *  - Blog media directories can only be configured to be inside of {@link $media_path}
 120   * @global boolean Default: false
 121   */
 122  $demo_mode = false;
 123  
 124  /**
 125   * If enabled, this will create more demo contents and enable more features during install.
 126   * This may result in an overloaded/bloated blog.
 127   *
 128   * @global boolean
 129   */
 130  $test_install_all_features = false;
 131  
 132  
 133  /**
 134   * URL of the Home link at the top left.
 135   *
 136   * By default this is the base url. And unless you do a complex installation, there is no need to change this.
 137   */
 138  $home_url = $baseurl;
 139  
 140  
 141  /**
 142   * Comments: Set this to 1 to require e-mail and name, or 0 to allow comments
 143   * without e-mail/name.
 144   * @global boolean $require_name_email
 145   */
 146  $require_name_email = 1;
 147  
 148  /**
 149   * Minimum interval (in seconds) between consecutive comments from same IP.
 150   * @global int $minimum_comment_interval
 151   */
 152  $minimum_comment_interval = 30;
 153  
 154  
 155  /**
 156   * Check antispam blacklist for private messages.
 157   *
 158   * Do you want to check the antispam blocklist when a message form is submitted?
 159   *
 160   * @global boolean $antispam_on_message_form
 161   */
 162  $antispam_on_message_form = 1;
 163  
 164  
 165  /**
 166   * By default images get copied into b2evo cache without resampling if they are smaller
 167   * than requested thumbnails.
 168   *
 169   * Althought, if you want to use the BeforeThumbCreate event (Watermark plugin),
 170   * this should be set to 'true' in order to process smaller images.
 171   *
 172   * @global boolean Default: false
 173   */
 174  $resample_all_images = false;
 175  
 176  
 177  // Get hostname out of baseurl
 178  // YOU SHOULD NOT EDIT THIS unless you know what you're doing
 179  if( preg_match( '#^(https?://(.+?)(:(.+?))?)(/.*)$#', $baseurl, $matches ) )
 180  {
 181      $baseurlroot = $matches[1]; // no ending slash!
 182      // echo "baseurlroot=$baseurlroot <br />";
 183      $basehost = $matches[2];
 184      // echo "basehost=$basehost <br />";
 185      $baseport =  $matches[4];
 186      // echo "baseport=$baseport <br />";
 187      $basesubpath =  $matches[5];
 188      // echo "basesubpath=$basesubpath <br />";
 189  }
 190  else
 191  {
 192      die( 'Your baseurl ('.$baseurl.') set in _basic_config.php seems invalid. You probably missed the "http://" prefix or the trailing slash. Please correct that.' );
 193  }
 194  
 195  
 196  /**
 197   * Base domain of b2evolution.
 198   *
 199   * By default we try to extract it automagically from $basehost (itself extracted from $baseurl)
 200   * But you may need to adjust this manually.
 201   *
 202   * @todo does anyone have a clean way of handling stuff like .co.uk ?
 203   *
 204   * @global string
 205   */
 206  $basedomain = preg_replace( '/^( .* \. )? (.+? \. .+? )$/xi', '$2', $basehost );
 207  
 208  
 209  /**
 210   * Short name of this system (will be used for cookies and notification emails).
 211   *
 212   * Change this only if you install mutliple b2evolutions on the same website.
 213   *
 214   * WARNING: don't play with this or you'll have tons of cookies sent away and your
 215   * readers surely will complain about it!
 216   *
 217   * You can change the notification email address alone a few lines below.
 218   *
 219   * @global string Default: 'b2evo'
 220   */
 221  $instance_name = 'b2evo'; // MUST BE A SINGLE WORD! NO SPACES!!
 222  
 223  
 224  // ** DB options **
 225  
 226  /**
 227   * Show MySQL errors? (default: true)
 228   *
 229   * This is recommended on production environments.
 230   */
 231  $db_config['show_errors'] = true;
 232  
 233  
 234  /**
 235   * Halt on MySQL errors? (default: true)
 236   *
 237   * Setting this to false is not recommended,
 238   */
 239  $db_config['halt_on_error'] = true;
 240  
 241  
 242  /**
 243   * CREATE TABLE options.
 244   *
 245   * DO NOT USE unless you know what you're doing -- For most options, we want to work on a table by table basis.
 246   */
 247  $db_config['table_options'] = '';     // Low ranking MySQL hosting compatibility Default
 248  
 249  
 250  /**
 251   * Use transactions in DB?
 252   *
 253   * You need to use InnoDB in order to enable this.
 254   */
 255  $db_config['use_transactions'] = true;
 256  
 257  
 258  /**
 259   * Display elements that are different on each request (Page processing time, ..)
 260   *
 261   * Set this to true to prevent displaying minor changing elements (like time) in order not to have artificial content changes
 262   *
 263   * @global boolean Default: false
 264   */
 265  $obhandler_debug = false;
 266  
 267  
 268  // ** Cookies **
 269  
 270  /**
 271   * This is the path that will be associated to cookies.
 272   *
 273   * That means cookies set by this b2evo install won't be seen outside of this path on the domain below.
 274   *
 275   * @global string Default: preg_replace( '#https?://[^/]+#', '', $baseurl )
 276   */
 277  $cookie_path = preg_replace( '#https?://[^/]+#', '', $baseurl );
 278  
 279  /**
 280   * Cookie domain.
 281   *
 282   * That means cookies set by this b2evo install won't be seen outside of this domain.
 283   *
 284   * We'll take {@link $basehost} by default (the leading dot includes subdomains), but
 285   * when there's no dot in it, at least Firefox will not set the cookie. The best
 286   * example for having no dot in the host name is 'localhost', but it's the case for
 287   * host names in an intranet also.
 288   *
 289   * Note: ".domain.com" cookies will be sent to sub.domain.com too.
 290   * But, see http://www.faqs.org/rfcs/rfc2965:
 291   *    "If multiple cookies satisfy the criteria above, they are ordered in
 292   *    the Cookie header such that those with more specific Path attributes
 293   *    precede those with less specific.  Ordering with respect to other
 294   *    attributes (e.g., Domain) is unspecified."
 295   *
 296   * @global string Default: ( strpos($basehost, '.') ) ? '.'. $basehost : '';
 297   */
 298  if( strpos($basehost, '.') === false )
 299  {    // localhost or windows machine name:
 300      $cookie_domain = '';
 301  }
 302  elseif( preg_match( '~^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$~i', $basehost ) )
 303  {    // The basehost is an IP address, use the basehost as it is:
 304      $cookie_domain = $basehost;
 305  }
 306  else
 307  {    // Keep the part of the basehost after the www. :
 308      $cookie_domain = preg_replace( '/^(www\. )? (.+)$/xi', '.$2', $basehost );
 309  
 310      // When hosting multiple domains (not just subdomains) on a single instance of b2evo,
 311      // you may want to try this:
 312      // $cookie_domain = '.'.$_SERVER['HTTP_HOST'];
 313      // or this: -- Have a cookie domain of 2 levels only, base on current basehost.
 314      // $cookie_domain = preg_replace( '/^( .* \. )? (.+? \. .+? )$/xi', '.$2', $basehost );
 315      // fp> pb with domains like .co.uk !?
 316  }
 317  
 318  // echo $cookie_domain;
 319  
 320  /**#@+
 321   * Names for cookies.
 322   */
 323  // The following remember the comment meta data for non registered users:
 324  $cookie_name    = 'cookie'.$instance_name.'name';
 325  $cookie_email   = 'cookie'.$instance_name.'email';
 326  $cookie_url     = 'cookie'.$instance_name.'url';
 327  // The following handles the session:
 328  $cookie_session = str_replace( '.', '_', 'session_'.$instance_name.'_'.$cookie_domain );
 329  /**#@-*/
 330  
 331  /**
 332   * Expiration for comment meta data cookies.
 333   *
 334   * Note: user sessions use different settings (config in admin)
 335   *
 336   * Value in seconds, set this to 0 if you wish to use non permanent cookies (erased when browser is closed).
 337   * Default: time() + 31536000 (one year from now)
 338   *
 339   * @global int $cookie_expires
 340   */
 341  $cookie_expires = time() + 31536000;
 342  
 343  /**
 344   * Expired-time used to erase comment meta data cookies.
 345   *
 346   * Note: user sessions use different settings (config in admin)
 347   *
 348   * Default: time() - 86400 (24 hours ago)
 349   *
 350   * @global int $cookie_expired
 351   */
 352  $cookie_expired = time() - 86400;
 353  
 354  /**
 355   * Crumb expiration time
 356   *
 357   * Default: 2 hours
 358   *
 359   * @global int $crumb_expires
 360   */
 361  $crumb_expires = 7200;
 362  
 363  /**
 364   * Page cache expiration time
 365   * How old can a cached object get before we consider it outdated
 366   *
 367   * Default: 15 minutes
 368   *
 369   * @global int $pagecache_max_age
 370   */
 371  $pagecache_max_age = 900;
 372  
 373  
 374  /**
 375   * Dummy field names to obfuscate spamboots
 376   *
 377   * We use funky field names to defeat the most basic spambots in the front office public forms
 378   */
 379  $dummy_fields = array(
 380      'login' => 'x',
 381      'pwd' => 'q',
 382      'pass1' => 'm',
 383      'pass2' => 'c',
 384      'email' => 'u',
 385      'name' => 'i',
 386      'url' => 'h',
 387      'subject' => 'd',
 388      'content' => 'g'
 389  );
 390  
 391  
 392  // ** Location of the b2evolution subdirectories **
 393  
 394  /*
 395      - You should only move these around if you really need to.
 396      - You should keep everything as subdirectories of the base folder
 397          ($baseurl which is set in _basic_config.php, default is the /blogs/ folder)
 398      - Remember you can set the baseurl to your website root (-> _basic_config.php).
 399  
 400      NOTE: All paths must have a trailing slash!
 401  
 402      Example of a possible setting:
 403          $conf_subdir = 'settings/b2evo/';   // Subdirectory relative to base
 404          $conf_subdir = '../../';            // Relative path to go back to base
 405  */
 406  /**
 407   * Location of the configuration files.
 408   *
 409   * Note: This folder NEEDS to by accessible by PHP only.
 410   *
 411   * @global string $conf_subdir
 412   */
 413  $conf_subdir = 'conf/';                  // Subdirectory relative to base
 414  $conf_path = str_replace( '\\', '/', dirname(__FILE__) ).'/';
 415  
 416  /**
 417   * @global string Path of the base.
 418   *                fp> made [i]nsensitive to case because of Windows URL oddities)
 419   */
 420  $basepath = preg_replace( '#/'.$conf_subdir.'$#i', '', $conf_path ).'/';
 421  // echo '<br/>basepath='.$basepath;
 422  
 423  /**
 424   * Location of the include folder.
 425   *
 426   * Note: This folder NEEDS to by accessible by PHP only.
 427   *
 428   * @global string $inc_subdir
 429   */
 430  $inc_subdir = 'inc/';                            // Subdirectory relative to base
 431  $inc_path = $basepath.$inc_subdir;                // You should not need to change this
 432  $misc_inc_path = $inc_path.'_misc/';           // You should not need to change this
 433  
 434  /**
 435   * Location of the HTml SeRVices folder.
 436   *
 437   * Note: This folder NEEDS to by accessible through HTTP.
 438   *
 439   * @global string $htsrv_subdir
 440   */
 441  $htsrv_subdir = 'htsrv/';                // Subdirectory relative to base
 442  $htsrv_path = $basepath.$htsrv_subdir;   // You should not need to change this
 443  $htsrv_url = $baseurl.$htsrv_subdir;     // You should not need to change this
 444  
 445  /**
 446   * Sensitive URL to the htsrv folder.
 447   *
 448   * Set this separately (based on {@link $htsrv_url}), if you want to use
 449   * SSL for login, registration and profile updates (where passwords are
 450   * involved), but not for the whole htsrv scripts.
 451   *
 452   * @global string
 453   */
 454  $htsrv_url_sensitive = $htsrv_url;
 455  
 456  /**
 457   * Location of the XML SeRVices folder.
 458   * @global string $xmlsrv_subdir
 459   */
 460  $xmlsrv_subdir = 'xmlsrv/';              // Subdirectory relative to base
 461  $xmlsrv_url = $baseurl.$xmlsrv_subdir;   // You should not need to change this
 462  
 463  /**
 464   * Location of the RSC folder.
 465   *
 466   * Note: This folder NEEDS to by accessible through HTTP.
 467   *
 468   * @global string $rsc_subdir
 469   */
 470  $rsc_subdir = 'rsc/';                    // Subdirectory relative to base
 471  $rsc_path = $basepath.$rsc_subdir;       // You should not need to change this
 472  $rsc_url = $baseurl.$rsc_subdir;         // You should not need to change this
 473  $rsc_uri = $basesubpath.$rsc_subdir;
 474  
 475  /**
 476   * Location of the skins folder.
 477   * @global string $skins_subdir
 478   */
 479  $skins_subdir = 'skins/';                // Subdirectory relative to base
 480  $skins_path = $basepath.$skins_subdir;   // You should not need to change this
 481  $skins_url = $baseurl.$skins_subdir;     // You should not need to change this
 482  
 483  /**
 484   * Location of the email skins folder.
 485   * @global string $emailskins_subdir
 486   */
 487  $emailskins_subdir = 'skins_email/';                // Subdirectory relative to base
 488  $emailskins_path = $basepath.$emailskins_subdir;   // You should not need to change this
 489  $emailskins_url = $baseurl.$emailskins_subdir;     // You should not need to change this
 490  
 491  
 492  /**
 493   * Location of the admin interface dispatcher
 494   */
 495  $dispatcher = 'admin.php'; // DEPRECATED
 496  $admin_url = $baseurl.$dispatcher;
 497  
 498  
 499  /**
 500   * Location of the admin skins folder.
 501   *
 502   * Note: This folder NEEDS to by accessible by both PHP AND through HTTP.
 503   *
 504   * @global string $adminskins_subdir
 505   */
 506  $adminskins_subdir = 'skins_adm/';         // Subdirectory relative to ADMIN
 507  $adminskins_path = $basepath.$adminskins_subdir; // You should not need to change this
 508  $adminskins_url = $baseurl.$adminskins_subdir;   // You should not need to change this
 509  
 510  /**
 511   * Location of the locales folder.
 512   *
 513   * Note: This folder NEEDS to by accessible by PHP AND MAY NEED to be accessible through HTTP.
 514   * Exact requirements depend on future uses like localized icons.
 515   *
 516   * @global string $locales_subdir
 517   */
 518  $locales_subdir = 'locales/';            // Subdirectory relative to base
 519  $locales_path = $basepath.$locales_subdir;  // You should not need to change this
 520  
 521  /**
 522   * Location of the plugins.
 523   *
 524   * Note: This folder NEEDS to by accessible by PHP AND MAY NEED to be accessible through HTTP.
 525   * Exact requirements depend on installed plugins.
 526   *
 527   * @global string $plugins_subdir
 528   */
 529  $plugins_subdir = 'plugins/';            // Subdirectory relative to base
 530  $plugins_path = $basepath.$plugins_subdir;  // You should not need to change this
 531  $plugins_url = $baseurl.$plugins_subdir;    // You should not need to change this
 532  
 533  /**
 534   * Location of the cron folder.
 535   *
 536   * Note: Depebding on how you will set up cron execution, this folder may or may not NEED to be accessible by PHP through HTTP.
 537   *
 538   * @global string $cron_subdir
 539   */
 540  $cron_subdir = 'cron/';                            // Subdirectory relative to base
 541  $cron_url = $baseurl.$cron_subdir;    // You should not need to change this
 542  
 543  /**
 544   * Location of the install folder.
 545   * @global string $install_subdir
 546   */
 547  $install_subdir = 'install/';                  // Subdirectory relative to base
 548  $install_path = $basepath.$install_subdir;  // You should not need to change this
 549  
 550  /**
 551   * Location of the rendered page cache folder.
 552   *
 553   * Note: This folder does NOT NEED to be accessible through HTTP.
 554   * This folder MUST be writable by PHP.
 555   *
 556   * @global string $cache_subdir
 557   */
 558  $cache_subdir = 'cache/';                // Subdirectory relative to base
 559  $cache_path = $basepath.$cache_subdir;   // You should not need to change this
 560  
 561  
 562  /**
 563   * Location of the root media folder.
 564   *
 565   * Note: This folder MAY or MAY NOT NEED to be accessible by PHP AND/OR through HTTP.
 566   * Exact requirements depend on $public_access_to_media .
 567   *
 568   * @global string $media_subdir
 569   */
 570  $media_subdir = 'media/';                // Subdirectory relative to base
 571  $media_path = $basepath.$media_subdir;   // You should not need to change this
 572  $media_url = $baseurl.$media_subdir;     // You should not need to change this
 573  
 574  
 575  /**
 576   * Location of the backup folder.
 577   *
 578   * Note: This folder does NOT NEED to be accessible through HTTP.
 579   * This folder MUST be writable by PHP.
 580   *
 581   * @global string $backup_subdir
 582   */
 583  $backup_subdir = '_backup/';                // Subdirectory relative to base
 584  $backup_path = $basepath.$backup_subdir;    // You should not need to change this
 585  
 586  
 587  /**
 588   * Location of the upgrade folder.
 589   *
 590   * Note: This folder does NOT NEED to be accessible through HTTP.
 591   * This folder MUST be writable by PHP.
 592   *
 593   * @global string $upgrade_subdir
 594   */
 595  $upgrade_subdir = '_upgrade/';              // Subdirectory relative to base
 596  $upgrade_path = $basepath.$upgrade_subdir;  // You should not need to change this
 597  
 598  
 599  // Define default avatar image URL
 600  // fp> TODO: do not use a setting for this.
 601  // fp> put the file into the shared files directory with the other sample "admin" avatars. That way it is very easy to replace with another default.
 602  // fp> PS: I like the ? image ;)
 603  $default_avatar = $rsc_url.'img/default_avatar.jpg';
 604  
 605  
 606  /**
 607   * Do you want to allow public access to the media dir?
 608   *
 609   * WARNING: If you set this to false, evocore will use /htsrv/getfile.php as a stub
 610   * to access files and getfile.php will check the User permisssion to view files.
 611   * HOWEVER this will not prevent users from hitting directly into the media folder
 612   * with their web browser. You still need to restrict access to the media folder
 613   * from your webserver.
 614   *
 615   * @global boolean
 616   */
 617  $public_access_to_media = true;
 618  
 619  
 620  /**
 621   * Do you want to stay in the current blog when you click on a post title or permalink,
 622   * even if the post main cat belongs to another blog?
 623   *
 624   * @global boolean
 625   */
 626  $cross_post_nav_in_same_blog = true;
 627  
 628  
 629  /**
 630   * File extensions that the admin will not be able to enable in the Settings
 631   */
 632  $force_upload_forbiddenext = array( 'cgi', 'exe', 'htaccess', 'htpasswd', 'php', 'php3', 'php4', 'php5', 'php6', 'phtml', 'pl', 'vbs' );
 633  
 634  /**
 635   * Admin can configure max file upload size, but he won't be able to set it higher than this "max max" value.
 636   */
 637  $upload_maxmaxkb = 32000;
 638  
 639  /**
 640   * The admin can configure the regexp for valid file names in the Settings interface
 641   * However if the following values are set to non empty, the admin will not be able to customize these values.
 642   */
 643  $force_regexp_filename = '';
 644  $force_regexp_dirname = '';
 645  
 646  /**
 647   * The maximum length of a file name. On new uploads file names with more characters are not allowed.
 648   */
 649  $filename_max_length = 64;
 650  
 651  /**
 652   * The maximum length of a file absolute path. Creating folders/files with longer path then this value is not allowed.
 653   * Note: 247 is the max length what php file operations functions can handle on windows
 654   */
 655  $dirpath_max_length = 247 - $filename_max_length - 35 /* the maximum additional path length because of the _evocache folder */;
 656  
 657  
 658  /**
 659   * XMLRPC logging. Set this to 1 to log XMLRPC calls received by this server (into /xmlsrv/xmlrpc.log).
 660   *
 661   * Default: 0
 662   *
 663   * @global int $debug_xmlrpc_logging
 664   */
 665  $debug_xmlrpc_logging = 0;
 666  
 667  
 668  /**
 669   * Seconds after which a scheduled task is considered to be timed out.
 670   */
 671  $cron_timeout_delay = 1800; // 30 minutes
 672  
 673  
 674  /**
 675   * Password change request delay in seconds. Only one email can be requested for one login or email address in each x seconds defined below.
 676   */
 677  $pwdchange_request_delay = 300; // 5 minutes
 678  
 679  
 680  /**
 681   * Account activation reminder settings.
 682   * Each element of the array is given in seconds
 683   * Assume that the number of element in the array below is n then the following must be followed:
 684   * n must be greater then 1; n - 1 will be the max number of account activation reminder emails.
 685   * The first element of the array ( in position 0 ) shows the time in seconds when the firs reminder email must be sent after the new user was registered, or the user status was changed to new, deactivated or emailchanged status
 686   * Each element between the postion [1 -> (n - 1)) shows the time in seconds when the next reminder email must be sent after the previous one
 687   * The last element of the array shows when an account status will be set to 'failedactivation' if it was not activated after the last reminder email. This value must be the highest value of the array!
 688   *
 689   * E.g. $activate_account_reminder_config = array( 86400, 129600, 388800, 604800 ); = array( 1 day, 1.5 days, 4.5 days, 7 days )
 690   * At most 3 reminder will be sent, the first 1 day after the registration or deactivation, the seond in 1.5 days after the first one, and the third one after 2.5 days after the second one.
 691   * 7 days after the last reminder email the account status will be set to 'failedactivation' and no more reminder will be sent.
 692   */
 693  $activate_account_reminder_config = array( 86400/* one day */, 129600/* 1.5 days */, 388800/* 4.5 days */, 604800/* 7 days */ );
 694  
 695  
 696  /**
 697   * Account activation reminder threshold given in seconds.
 698   * A user may receive Account activation reminder if the account was created at least x ( = threshold value defined below ) seconds ago.
 699   */
 700  $activate_account_reminder_threshold = 86400; // 24 hours
 701  
 702  
 703  /**
 704   * Comment moderation reminder threshold given in seconds.
 705   * A moderator user may receive Comment moderation reminder if there are comments awaiting moderation which were created at least x ( = threshold value defined below ) seconds ago.
 706   */
 707  $comment_moderation_reminder_threshold = 86400; // 24 hours
 708  
 709  
 710  /**
 711   * Post moderation reminder threshold given in seconds.
 712   * A moderator user may receive Post moderation reminder if there are posts awaiting moderation which were created at least x ( = threshold value defined below ) seconds ago.
 713   */
 714  $post_moderation_reminder_threshold = 86400; // 24 hours
 715  
 716  
 717  /**
 718   * Unread private messages reminder threshold given in seconds.
 719   * A user may receive unread message reminder if it has unread private messages at least as old as this threshold value.
 720   */
 721  $unread_messsage_reminder_threshold = 86400; // 24 hours
 722  
 723  
 724  /**
 725   * Unread message reminder is sent in every y days in case when a user last logged in date is below x days.
 726   * The array below is in x => y format.
 727   * The values of this array must be ascendant.
 728   */
 729  $unread_message_reminder_delay = array(
 730      10  => 3,  // less than 10 days -> 3 days spacing
 731      30  => 6,  // 10 to 30 days -> 6 days spacing
 732      90  => 15, // 30 to 90 days -> 15 days spacing
 733      180 => 30, // 90 to 180 days -> 30 days spacing
 734      365 => 60, // 180 to 365 days -> 60 days spacing
 735      730 => 120 // 365 to 730 days -> 120 days spacing
 736      // more => "The user has not logged in for x days, so we will not send him notifications any more".
 737  );
 738  
 739  
 740  /**
 741   * Enable a workaround to allow accessing posts with URL titles ending with
 742   * a dash (workaround for old bug).
 743   *
 744   * In b2evolution v2.4.5 new tag URLs were introduced: You could choose
 745   * to have tag URLs ending with a dash. This lead to problems with post
 746   * URL titles accidentially ending with a dash (today, URL titles cannot
 747   * end with a dash anymore): Instead of displaying the post, the post
 748   * title was handled as a tag name. When this setting is enabled, all tag
 749   * names which are exactly 40 chars long and end with a dash are handled
 750   * in the following way:
 751   * Try to find a post with the given tag name as the URL title. If there
 752   * is a matching post, display it; otherwise, display the normal tag page.
 753   *
 754   * Note: If you use a 39 chars-long tag name, have an URL title which is
 755   * the same as the tag *but* additionally has a dash at the end and you
 756   * use the dash as a tag URL "marker", you won't be able to access either
 757   * the post or the tag page, depending on the value of this setting.
 758   *
 759   * @global boolean $tags_dash_fix
 760   *
 761   * @internal Tblue> We perhaps should notify the user if we detect bogus
 762   *                  post URLs (check on upgrade?) and recommend enabling
 763   *                  this setting.
 764   */
 765  $tags_dash_fix = 0;
 766  
 767  
 768  /**
 769   * Use hacks file (DEPRECATED) -- see /inc/_main.inc.php
 770   */
 771  $use_hacks = false;
 772  
 773  
 774  
 775  /**
 776   * Additional params you may want to pass to sendmail when sending emails
 777   * For setting the return-path, some Linux servers will require -r, others will require -f.
 778   * Allowed placeholders: $from-address$ , $return-address$
 779   *
 780   * @global string $sendmail_additional_params
 781   */
 782  $sendmail_additional_params = '-r $return-address$';
 783  
 784  
 785  // ----- CHANGE THE FOLLOWING SETTINGS ONLY IF YOU KNOW WHAT YOU'RE DOING! -----
 786  $evonetsrv_host = 'rpc.b2evo.net';
 787  $evonetsrv_port = 80;
 788  $evonetsrv_uri = '/evonetsrv/xmlrpc.php';
 789  
 790  $antispamsrv_host = 'antispam.b2evo.net';
 791  $antispamsrv_port = 80;
 792  $antispamsrv_uri = '/evonetsrv/xmlrpc.php';
 793  ?>

title

Description

title

Description

title

Description

title

title

Body