version 1.7, 2003/03/06 13:28:54
|
version 1.22, 2003/03/21 22:34:01
|
Line 1
|
Line 1
|
<?php |
<?php |
|
|
require_once('/usr/local/sandbox/php/include/globals.h'); | // require('/usr/local/sandbox/php/include/globals.h'); |
require(PROJECT_PATH . '/protected/b2config.inc.php'); | |
| if (!isset($project)) |
| { |
| // bit after a '/', before 'www/' |
| |
| // $project = str_replace(, '', dirname(__FILE__)); |
| |
| $project = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), 'www') - 1); |
| |
| $project = substr($project, strrpos($echo, '/') + 1); |
| |
| } |
| |
| require('/usr/local/sandbox/php/include/globals.h'); |
| |
| require(PHP_INC.CONNECT); |
| |
| $_p_ = false; |
| |
| if (!isset($project) || empty($project)) |
| { |
| $project = 'cdn'; $_p_ = true; |
| } |
| |
/* * |
/* * |
* b2's config file * |
* b2's config file * |
* */ |
* */ |
Line 16
|
Line 38
|
# $blogfilename is the name of the default file for your blog |
# $blogfilename is the name of the default file for your blog |
# $blogname is the name of your blog |
# $blogname is the name of your blog |
|
|
$siteurl = 'http://' . $project . HOST; | $siteurl = 'http://' . $project . '.' . HOST; |
$blogfilename = 'index.html'; | $blogfilename = 'blog.html'; |
$blogname = "b2og"; | $blogname = "mozdev.org - b2og"; |
$blogdescription = "babblings !"; |
$blogdescription = "babblings !"; |
|
|
|
|
Line 35 $use_cafelogping = 0; # set this to 1
|
Line 57 $use_cafelogping = 0; # set this to 1
|
# $pathserver is where you have uploaded b2: for example, 'http://mydomain.com' (no ending slash !) |
# $pathserver is where you have uploaded b2: for example, 'http://mydomain.com' (no ending slash !) |
# by default b2 is set to run in the folder your blog resides, same as $siteurl |
# by default b2 is set to run in the folder your blog resides, same as $siteurl |
|
|
//$pathserver = 'http://www.cdn.uklinux.net/red'; | $pathserver = 'http://' . PROJECT_DIR . '.' . HOST; |
| //$pathserver = 'http://cdn.mozdev.org'; |
|
|
|
|
# your email (obvious uh ?) |
# your email (obvious uh ?) |
Line 47 $new_users_can_blog = 0;
|
Line 70 $new_users_can_blog = 0;
|
|
|
|
|
# set this to 0 or 1, whether you want to allow users to register on your blog. |
# set this to 0 or 1, whether you want to allow users to register on your blog. |
$users_can_register = 1; | $users_can_register = 0; |
|
|
|
|
# day at the start of the week: 0 for Sunday, 1 for Monday, 2 for Tuesday, etc |
# day at the start of the week: 0 for Sunday, 1 for Monday, 2 for Tuesday, etc |
Line 78 $tablecomments = $b2prefix . 'b2comments
|
Line 101 $tablecomments = $b2prefix . 'b2comments
|
// ** Post preview function ** |
// ** Post preview function ** |
|
|
# set this to 1 if you want to use the 'preview' function |
# set this to 1 if you want to use the 'preview' function |
|
$use_preview = 0; |
$use_preview = 1; |
$use_preview = 1; |
|
|
|
|
|
|
// ** Spell Checker functions ** |
// ** Spell Checker functions ** |
|
|
|
|
Line 201 $blodotgsping_url = 'http://example.com'
|
Line 224 $blodotgsping_url = 'http://example.com'
|
|
|
# set this to 0 or 1, whether you want to allow your posts to be trackback'able or not |
# set this to 0 or 1, whether you want to allow your posts to be trackback'able or not |
# note: setting it to zero would also disable sending trackbacks |
# note: setting it to zero would also disable sending trackbacks |
$use_trackback = 0; | $use_trackback = 1; |
|
|
# set this to 0 or 1, whether you want to allow your posts to be pingback'able or not |
# set this to 0 or 1, whether you want to allow your posts to be pingback'able or not |
# note: setting it to zero would also disable sending pingbacks |
# note: setting it to zero would also disable sending pingbacks |
$use_pingback = 0; | $use_pingback = 1; |
|
|
|
|
|
|