1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386
|
<?php
/**
* This is b2evolution's advanced config file
*
* This file includes advanced settings for b2evolution
* Last significant changes to this file: version 0.9.0.11
*
* b2evolution - {@link http://b2evolution.net/}
* Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
* @copyright (c)2003-2005 by Francois PLANQUE - {@link http://fplanque.net/}
*
* @package conf
*/
if( !defined('DB_USER') ) die( 'Please, do not access this page directly.' );
# General params:
# (these must be forced to prevent URL overrides).
$debug = false;
$obhandler_debug = false;
$demo_mode = false;
/**
* Comments: set this to 1 to require e-mail and name, or 0 to allow comments without e-mail/name
* @global boolean $require_name_email
*/
$require_name_email = 1;
/**
* Minimum interval (in seconds) between consecutive comments from same IP
* @global int $minimum_comment_interval
*/
$minimum_comment_interval = 30;
# Set the blog number to be used when not otherwise specified
# 2 is the default setting, since it is the first user blog created by b2evo
# 1 is also a popular choice, since it is a special blog aggregating all the others
if( !isset($default_to_blog) ) $default_to_blog = 2;
/**
* Set the length of the online session time out (in seconds).
*
* This is for the Who's Online block.
*
* @global int $online_session_timeout
*/
$online_session_timeout = 300; // default: 5 minutes
/**
* How many days of stats do you want to keep before auto pruning them?
*
* Set to 0 to disable auto pruning
*
* @global int $stats_autoprune
*/
$stats_autoprune = 30; // Default: 30 days
// Get hostname out of baseurl
// YOU SHOULD NOT EDIT THIS unless you know what you're doing
if( preg_match( '#(https?://(.+?)(:.+?)?)/#', $baseurl.'/', $matches ) )
{
$baseurlroot = $matches[1];
// echo "baseurlroot=$baseurlroot <br />";
$basehost = $matches[2];
// echo "basehost=$basehost <br />";
}
else
{
die( 'Your baseurl ('.$baseurl.') set in _config.php seems invalid. You probably missed the "http://" prefix. Please correct that.' );
}
# Short name of this system (will be used for cookies and notification emails)
# Change this only if you install mutliple b2evolutions on the same website.
# WARNING: don't play with this or you'll have tons of cookies sent away and your
# readers surely will complain about it!
# You can change notification email address alone a few lines below
$b2evo_name = 'b2evo'; // MUST BE A SINGLE WORD! NO SPACES!!
# default email address for sending notifications (comments, trackbacks, user registrations...)
# Set a custom address like this:
# $notify_from = 'b2evolution@your_server.com'; // uncomment this line if you want to customize
# Alternatively you can use this automated address generation
$notify_from = $b2evo_name.'@'.$basehost; // comment this line if you want to customize
// ** Configuration for htsrv/getmail.php **
// (skip this if you don't intend to blog via email)
# mailserver settings
$mailserver_url = 'mail.example.com';
$mailserver_login = 'login@example.com';
$mailserver_pass = 'password';
$mailserver_port = 110;
# by default posts will have this category
$default_category = 1;
# subject prefix
$subjectprefix = 'blog:';
# body terminator string (starting from this string, everything will be ignored, including this string)
$bodyterminator = "___";
# set this to 1 to run in test mode
$thisisforfunonly = 0;
### Special Configuration for some phone email services
# some mobile phone email services will send identical subject & content on the same line
# if you use such a service, set $use_phoneemail to 1, and indicate a separator string
# when you compose your message, you'll type your subject then the separator string
# then you type your login:password, then the separator, then content
$use_phoneemail = 0;
$phoneemail_separator = ':::';
# When pinging http://blo.gs, use extended ping to RSS?
$use_rss = 1;
# If a particular post is requested (by id or title) but on the wrong blog,
# do you want to automatically redirect to the right blog?
# This is overly usefull if you move posts or categories from one blog to another
# If this is disabled, the post will be displayed in the wrong blog template.
$redirect_to_postblog = false;
// ** DB table names **
/**#@+
* database tables' names
*
* (change them if you want to have multiple b2's in a single database)
*/
$tableposts = 'evo_posts';
$tableusers = 'evo_users';
$tablesettings = 'evo_settings';
$tablecategories = 'evo_categories';
$tablecomments = 'evo_comments';
$tableblogs = 'evo_blogs';
$tablepostcats = 'evo_postcats';
$tablehitlog = 'evo_hitlog';
$tableantispam = 'evo_antispam';
$tablegroups = 'evo_groups';
$tableblogusers = 'evo_blogusers';
$tablelocales = 'evo_locales';
/**#@-*/
/**
* Aliases for class DB:
*/
$db_aliases = array(
'T_posts' => $tableposts ,
'T_users' => $tableusers ,
'T_settings' => $tablesettings ,
'T_categories' => $tablecategories ,
'T_comments' => $tablecomments ,
'T_blogs' => $tableblogs ,
'T_postcats' => $tablepostcats ,
'T_hitlog' => $tablehitlog ,
'T_antispam' => $tableantispam ,
'T_groups' => $tablegroups ,
'T_blogusers' => $tableblogusers ,
'T_locales' => $tablelocales ,
);
/**#@+
* Old b2 tables used exclusively by the upgrade mode of the install script
*
* You can ignore those if you're not planning to upgrade from an original b2 database.
*/
$oldtableposts = 'b2posts';
$oldtableusers = 'b2users';
$oldtablesettings = 'b2settings';
$oldtablecategories = 'b2categories';
$oldtablecomments = 'b2comments';
/**#@-*/
/**
* WordPress table prefix used exclusively by the upgrade script
* You can ignore this if you're not planning to upgrade from a WordPress database.
*/
$wp_prefix = 'wp_';
// ** Saving bandwidth **
/**
* use output buffer.
*
* This is required for gzip and ETags (see below).
*
* Disabled by default.
*
* Even without using gzip compression or ETags this allows to send a Content-Length.
*
* Warning: this will prevent from sending the output progressively to the webserver.
* If a long page takes 2 seconds to be generated completely on a loaded server, the top
* of the page will only be sent after those 2 seconds, and the user won't see anything
* during at least 2 seconds (generation + transmission time). Without this setting, the
* output will be sent progressively starting at 0 seconds and the user will start seeing
* something earlier (0 + transmission time).
*
* @global boolean $use_obhandler
*/
$use_obhandler = 0;
/**
* GZip compression.
*
* Disabled by default.
*
* Can actually be done either by PHP or your webserver [default]
* (for example if you use Apache with mod_gzip).
* - Set this to 1 if you want PHP to do gzip compression
* - Set this to 0 if you want to let Apache do the job instead of PHP (you must enable this there)
* Letting apache do the compression will make PHP debugging easier.
* Thus it is recommended to keep it that way.
*
* @global boolean $use_gzipcompression
*/
$use_gzipcompression = 0;
/**
* ETags support.
*
* Disabled by default.
*
* This will send an ETag with every page, so we can say "Not Modified." if exactly the same
* page had been sent before.
*
* Etags don't work right in some versions of IE. You won't be able to force refreshment of a page.
*
* @global boolean $use_etags
*/
$use_etags = 0;
// ** Cookies **
/**
* This is the path that will be associated to cookies
*
* That means cookies set by this b2evo install won't be seen outside of this path on the domain below
*
* @global string $cookie_path
*/
$cookie_path = preg_replace('#https?://[^/]+#', '', $baseurl ).'/';
/**
* Cookie domain.
*
* That means cookies set by this b2evo install won't be seen outside of this domain.
*
* This setting gets uses for blogs which are not on an own domain. See {@link Blog::get_cookie_domain()}.
*
* We'll take {@link $basehost} by default (the leading dot includes subdomains), but
* when there's no dot in it, at least Firefox will not set the cookie. The best
* example for having no dot in the host name is 'localhost', but it's the case for
* host names in an intranet also.
*
* @global string Default: ( strpos($basehost, '.') ) ? '.'. $basehost : '';
*/
$cookie_domain = ( strpos($basehost, '.') ) ? '.'. $basehost : '';
//echo 'cookie_domain='. $cookie_domain. ' cookie_path='. $cookie_path;
/**#@+
* Names for cookies.
*/
$cookie_user = 'cookie'. $b2evo_name. 'user';
$cookie_pass = 'cookie'. $b2evo_name. 'pass';
$cookie_state = 'cookie'. $b2evo_name. 'state';
$cookie_name = 'cookie'. $b2evo_name. 'name';
$cookie_email = 'cookie'. $b2evo_name. 'email';
$cookie_url = 'cookie'. $b2evo_name. 'url';
/**#@-*/
/**
* Expiration for cookies.
*
* Value in seconds, set this to 0 if you wish to use non permanent cookies (erased when browser is closed).
*
* @global int $cookie_expires
*/
$cookie_expires = time() + 31536000; // Default: one year from now
/**
* Expired-time used to erase cookies.
*
* @global int $cookie_expired
*/
$cookie_expired = time() - 86400; // Default: 24 hours ago
// ** Location of the b2evolution subdirectories **
/*
- You should only move these around if you really need to.
- You should keep everything as subdirectories of the base folder
($baseurl which is set in _config.php, default is the /blogs folder)
- Remember you can set the baseurl to your website root (-> _config.php).
NOTE: ALL PATHS MUST HAVE NO LEADING AND NO TRAILING SLASHES !!!
Example of a possible setting:
$admin_subdir = 'backoffice/b2evo'; // Subdirectory relative to base
$admin_dirout = '../..'; // Relative path to go back to base
*/
/**
* Location of the configuration files.
* @global string $conf_subdir
*/
$conf_subdir = 'conf'; // Subdirectory relative to base
$conf_dirout = '..'; // Relative path to go back to base
$conf_path = str_replace( '\\', '/', dirname(__FILE__) );
$basepath = preg_replace( '#/'.$conf_subdir.'$#', '', $conf_path ); // Remove his file's subpath
/**
* Location of the backoffice (admin) folder.
* @global string $admin_subdir
*/
$admin_subdir = 'admin'; // Subdirectory relative to base
$admin_dirout = '..'; // Relative path to go back to base
$admin_url = $baseurl.'/'.$admin_subdir; // You should not need to change this
/**
* Location of the HTml SeRVices folder.
* @global string $htsrv_subdir
*/
$htsrv_subdir = 'htsrv'; // Subdirectory relative to base
$htsrv_dirout = '..'; // Relative path to go back to base
$htsrv_url = $baseurl.'/'.$htsrv_subdir; // You should not need to change this
/**
* Location of the XML SeRVices folder.
* @global string $xmlsrv_subdir
*/
$xmlsrv_subdir = 'xmlsrv'; // Subdirectory relative to base
$xmlsrv_dirout = '..'; // Relative path to go back to base
$xmlsrv_url = $baseurl.'/'.$xmlsrv_subdir; // You should not need to change this
/**
* Location of the IMG folder.
* @global string $img_subdir
*/
$img_subdir = 'img'; // Subdirectory relative to base
$img_url = $baseurl.'/'.$img_subdir; // You should not need to change this
/**
* Location of the skins folder.
* @global string $skins_subdir
*/
$skins_subdir = 'skins'; // Subdirectory relative to base
$skins_dirout = '..'; // Relative path to go back to base
$skins_url = $baseurl.'/'.$skins_subdir; // You should not need to change this
/**
* Location of the core (the "includes") files.
* @global string $core_subdir
*/
$core_subdir = 'b2evocore'; // Subdirectory relative to base
$core_dirout = '..'; // Relative path to go back to base
/**
* Location of the locales folder.
* @global string $locales_subdir
*/
$locales_subdir = 'locales'; // Subdirectory relative to base
$locales_dirout = '..'; // Relative path to go back to base
/**
* Location of the plug-ins.
* @global string $plugins_subdir
*/
$plugins_subdir = 'plugins'; // Subdirectory relative to base
$plugins_subdir_dirout = '..'; // Relative path to go back to base
/**
* Location of the install folder.
* @global string $install_subdir
*/
$install_subdir = 'install'; // Subdirectory relative to base
$install_dirout = '..'; // Relative path to go back to base
// ----- CHANGE THE FOLLOWING ONLY IF YOU KNOW WHAT YOU'RE DOING! -----
$use_cache = 1; // Not using this will dramatically overquery the DB !
$sleep_after_edit = 0; // let DB do its stuff...
$evonetsrv_host = 'b2evolution.net';
$evonetsrv_port = 80;
$evonetsrv_uri = '/evonetsrv/xmlrpc.php';
$antispamsrv_host = 'antispam.b2evolution.net';
$antispamsrv_port = 80;
$antispamsrv_uri = '/evonetsrv/xmlrpc.php';
?>
|