version 1.16, 2003/03/07 20:32:11
|
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'); |
| |
| 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); |
require(PHP_INC.CONNECT); |
|
|
$_p_ = false; |
$_p_ = false; |
| |
if (!isset($project) || empty($project)) |
if (!isset($project) || empty($project)) |
{ |
{ |
$project = 'cdn'; $_p_ = true; |
$project = 'cdn'; $_p_ = true; |
Line 25
|
Line 40
|
|
|
$siteurl = 'http://' . $project . '.' . HOST; |
$siteurl = 'http://' . $project . '.' . HOST; |
$blogfilename = 'blog.html'; |
$blogfilename = 'blog.html'; |
$blogname = "b2og"; | $blogname = "mozdev.org - b2og"; |
$blogdescription = "babblings !"; |
$blogdescription = "babblings !"; |
|
|
|
|
Line 42 $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 54 $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 85 $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 208 $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; |
|
|
|
|
|
|