2003-04-01 09:12:34 -05:00
|
|
|
<?php
|
|
|
|
/* *
|
2003-05-22 08:18:13 -04:00
|
|
|
* WordPress's config file *
|
|
|
|
* */
|
2003-04-01 09:12:34 -05:00
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// Reminder: everything that starts with #, /* or // is a comment
|
2003-04-01 09:12:34 -05:00
|
|
|
|
|
|
|
/* Start editing */
|
|
|
|
|
2003-05-24 19:14:58 -04:00
|
|
|
// $siteurl is your blog's URL: for example, 'http://mydomain.com/wordpress' (no trailing slash !)
|
2003-05-22 18:51:40 -04:00
|
|
|
// $blogfilename is the name of the default file for your blog
|
|
|
|
// $blogname is the name of your blog
|
2003-04-01 09:12:34 -05:00
|
|
|
|
2003-05-25 08:43:31 -04:00
|
|
|
$siteurl = 'http://example.com'; // Double check this, it's very important.
|
2003-04-01 09:12:34 -05:00
|
|
|
$blogfilename = 'index.php';
|
|
|
|
$blogname = "my weblog";
|
|
|
|
$blogdescription = "babblings !";
|
|
|
|
|
2003-05-24 19:14:58 -04:00
|
|
|
// Your email (obvious eh?)
|
2003-04-01 09:12:34 -05:00
|
|
|
$admin_email = 'you@example.com';
|
|
|
|
|
2003-05-24 19:14:58 -04:00
|
|
|
// ** MySQL settings **
|
|
|
|
|
2003-05-29 10:04:30 -04:00
|
|
|
define('DB_NAME', 'b2'); // The name of the database
|
|
|
|
define('DB_USER', 'user'); // Your MySQL username
|
|
|
|
define('DB_PASSWORD', 'pass'); // ...and password
|
|
|
|
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
|
2003-05-25 08:43:31 -04:00
|
|
|
|
|
|
|
|
|
|
|
// If you've finished up to here you should be able to install now.
|
|
|
|
|
2003-04-01 09:12:34 -05:00
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// set this to 0 or 1, whether you want new users to be able to post entries once they registered
|
2003-05-22 08:18:13 -04:00
|
|
|
$new_users_can_blog = 0;
|
2003-04-01 09:12:34 -05:00
|
|
|
|
|
|
|
|
2003-05-24 20:39:16 -04:00
|
|
|
// set this to 0 or 1, whether you want to allow users to register on your blog.
|
2003-04-01 09:12:34 -05:00
|
|
|
$users_can_register = 1;
|
|
|
|
|
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// day at the start of the week: 0 for Sunday, 1 for Monday, 2 for Tuesday, etc
|
2003-04-01 09:12:34 -05:00
|
|
|
$start_of_week = 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// database tables' names (change them if you want to have multiple b2's in a single database)
|
2003-04-01 09:12:34 -05:00
|
|
|
$tableposts = 'b2posts';
|
|
|
|
$tableusers = 'b2users';
|
|
|
|
$tablesettings = 'b2settings';
|
|
|
|
$tablecategories = 'b2categories';
|
|
|
|
$tablecomments = 'b2comments';
|
|
|
|
|
|
|
|
|
|
|
|
// ** Post preview function **
|
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// set this to 1 if you want to use the 'preview' function
|
2003-04-01 09:12:34 -05:00
|
|
|
$use_preview = 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ** Text formatting options **
|
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// these options can help you format your text without using too much html
|
2003-05-24 20:39:16 -04:00
|
|
|
$use_bbcode = 0; // use BBCode, like [b]bold[/b]
|
|
|
|
$use_gmcode = 0; // use GreyMatter-styles: **bold** \italic\ __underline__
|
|
|
|
$use_quicktags = 1; // buttons for HTML tags (they won't work on IE Mac yet)
|
2003-04-01 09:12:34 -05:00
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// IMPORTANT! set this to 0 if you are using Chinese, Japanese, Korean,
|
|
|
|
// or other double-bytes languages
|
2003-04-01 09:12:34 -05:00
|
|
|
$use_htmltrans = 1;
|
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// this could help balance your HTML code. if it gives bad results, set it to 0
|
2003-04-01 09:12:34 -05:00
|
|
|
$use_balanceTags = 1;
|
|
|
|
|
|
|
|
|
|
|
|
// ** Image upload **
|
|
|
|
|
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// set this to 0 to disable file upload, or 1 to enable it
|
2003-05-24 19:14:58 -04:00
|
|
|
$use_fileupload = 0;
|
2003-04-01 09:12:34 -05:00
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// enter the real path of the directory where you'll upload the pictures
|
|
|
|
// if you're unsure about what your real path is, please ask your host's support staff
|
|
|
|
// note that the directory must be writable by the webserver (ChMod 766)
|
|
|
|
// note for windows-servers users: use forwardslashes instead of backslashes
|
|
|
|
//$fileupload_realpath = '/home/your/site/b2/images';
|
2003-04-01 09:12:34 -05:00
|
|
|
$fileupload_realpath = '/home/example/public_html/images';
|
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// enter the URL of that directory (it's used to generate the links to the pictures)
|
2003-04-01 09:12:34 -05:00
|
|
|
$fileupload_url = 'http://example.com/images';
|
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// accepted file types, you can add to that list if you want
|
|
|
|
// note: add a space before and after each file type
|
|
|
|
// example: $fileupload_allowedtypes = ' jpg gif png ';
|
2003-04-01 09:12:34 -05:00
|
|
|
$fileupload_allowedtypes = ' jpg gif png ';
|
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// by default, most servers limit the size of uploads to 2048 KB
|
|
|
|
// if you want to set it to a lower value, here it is (you cannot set a higher value)
|
2003-04-01 09:12:34 -05:00
|
|
|
$fileupload_maxk = '96';
|
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// you may not want all users to upload pictures/files, so you can set a minimum level for this
|
2003-04-01 09:12:34 -05:00
|
|
|
$fileupload_minlevel = '1';
|
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// ...or you may authorize only some users. enter their logins here, separated by spaces
|
|
|
|
// if you leave that variable blank, all users who have the minimum level are authorized to upload
|
|
|
|
// note: add a space before and after each login name
|
|
|
|
// example: $fileupload_allowedusers = ' barbara anne ';
|
2003-04-01 09:12:34 -05:00
|
|
|
$fileupload_allowedusers = '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ** RSS syndication options **
|
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// these options are used by b2rdf.php (1.0), b2rss.php (0.92), and b2rss2.php (2.0)
|
|
|
|
// note: if you don't want to syndicate your news, you can delete these files
|
2003-04-01 09:12:34 -05:00
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// number of last posts to syndicate
|
2003-04-01 09:12:34 -05:00
|
|
|
$posts_per_rss = 10;
|
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// the language of your blog ( see this: http://backend.userland.com/stories/storyReader$16 )
|
2003-04-01 09:12:34 -05:00
|
|
|
$rss_language = 'en';
|
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// for b2rss.php: allow encoded HTML in <description> tag? 1=yes, 0=no
|
2003-04-01 09:12:34 -05:00
|
|
|
$rss_encoded_html = 0;
|
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// length (in words) of excerpts in the RSS feed? 0=unlimited
|
|
|
|
// note: in b2rss.php, this will be set to 0 if you use encoded HTML
|
2003-04-01 09:12:34 -05:00
|
|
|
$rss_excerpt_length = 50;
|
2003-05-22 18:51:40 -04:00
|
|
|
//use the excerpt field for rss feed.
|
2003-05-24 20:39:16 -04:00
|
|
|
$rss_use_excerpt = 1;
|
2003-04-01 09:12:34 -05:00
|
|
|
|
|
|
|
|
|
|
|
// ** Weblogs.com ping **
|
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// set this to 1 if you want your site to be listed on http://weblogs.com when you add a new post
|
2003-04-01 09:12:34 -05:00
|
|
|
$use_weblogsping = 0;
|
|
|
|
|
|
|
|
|
|
|
|
// ** Blo.gs ping **
|
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// set this to 1 if you want your site to be listed on http://blo.gs when you add a new post
|
2003-04-01 09:12:34 -05:00
|
|
|
$use_blodotgsping = 0;
|
|
|
|
|
2003-05-24 19:14:58 -04:00
|
|
|
// You shouldn't need to change this.
|
|
|
|
$blodotgsping_url = $siteurl;
|
2003-04-01 09:12:34 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ** Trackback / PingBack **
|
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// 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
|
2003-05-22 08:18:13 -04:00
|
|
|
$use_trackback = 1;
|
2003-04-01 09:12:34 -05:00
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// 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
|
2003-05-22 08:18:13 -04:00
|
|
|
$use_pingback = 1;
|
2003-04-01 09:12:34 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ** Comments options **
|
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// set this to 1 to require e-mail and name, or 0 to allow comments without e-mail/name
|
2003-04-01 09:12:34 -05:00
|
|
|
$require_name_email = 0;
|
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// here is a list of the tags that are allowed in the comments.
|
|
|
|
// you can add tags to the list, just add them in the string,
|
|
|
|
// add only the opening tag: for example, only '<a>' instead of '<a href=""></a>'
|
2003-04-01 09:12:34 -05:00
|
|
|
|
2003-05-24 19:14:58 -04:00
|
|
|
$comment_allowed_tags = '<b><i><strong><em><code><blockquote><p><br><strike><a>';
|
2003-04-01 09:12:34 -05:00
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// set this to 1 to let every author be notified about comments on their posts
|
2003-05-22 08:18:13 -04:00
|
|
|
$comments_notify = 1;
|
2003-04-01 09:12:34 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ** Smilies options **
|
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// set this to 1 to enable smiley conversion in posts
|
|
|
|
// (note: this makes smiley conversion in ALL posts)
|
2003-04-01 09:12:34 -05:00
|
|
|
$use_smilies = 0;
|
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// the directory where your smilies are (no trailing slash)
|
2003-05-24 19:14:58 -04:00
|
|
|
$smilies_directory = $siteurl . '/b2-img/smilies';
|
2003-04-01 09:12:34 -05:00
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// here's the conversion table, you can modify it if you know what you're doing
|
2003-04-01 09:12:34 -05:00
|
|
|
$b2smiliestrans = array(
|
2003-05-24 20:39:16 -04:00
|
|
|
':)' => 'icon_smile.gif',
|
|
|
|
':D' => 'icon_biggrin.gif',
|
|
|
|
':-D' => 'icon_biggrin.gif',
|
|
|
|
':grin:' => 'icon_biggrin.gif',
|
|
|
|
':)' => 'icon_smile.gif',
|
|
|
|
':-)' => 'icon_smile.gif',
|
|
|
|
':smile:' => 'icon_smile.gif',
|
|
|
|
':(' => 'icon_sad.gif',
|
|
|
|
':-(' => 'icon_sad.gif',
|
|
|
|
':sad:' => 'icon_sad.gif',
|
|
|
|
':o' => 'icon_surprised.gif',
|
|
|
|
':-o' => 'icon_surprised.gif',
|
|
|
|
':eek:' => 'icon_surprised.gif',
|
|
|
|
'8O' => 'icon_eek.gif',
|
|
|
|
'8-O' => 'icon_eek.gif',
|
|
|
|
':shock:' => 'icon_eek.gif',
|
|
|
|
':?' => 'icon_confused.gif',
|
|
|
|
':-?' => 'icon_confused.gif',
|
|
|
|
':???:' => 'icon_confused.gif',
|
|
|
|
'8)' => 'icon_cool.gif',
|
|
|
|
'8-)' => 'icon_cool.gif',
|
|
|
|
':cool:' => 'icon_cool.gif',
|
|
|
|
':lol:' => 'icon_lol.gif',
|
|
|
|
':x' => 'icon_mad.gif',
|
|
|
|
':-x' => 'icon_mad.gif',
|
|
|
|
':mad:' => 'icon_mad.gif',
|
|
|
|
':P' => 'icon_razz.gif',
|
|
|
|
':-P' => 'icon_razz.gif',
|
|
|
|
':razz:' => 'icon_razz.gif',
|
|
|
|
':oops:' => 'icon_redface.gif',
|
|
|
|
':cry:' => 'icon_cry.gif',
|
|
|
|
':evil:' => 'icon_evil.gif',
|
|
|
|
':twisted:' => 'icon_twisted.gif',
|
|
|
|
':roll:' => 'icon_rolleyes.gif',
|
|
|
|
':wink:' => 'icon_wink.gif',
|
|
|
|
';)' => 'icon_wink.gif',
|
|
|
|
';-)' => 'icon_wink.gif',
|
|
|
|
':!:' => 'icon_exclaim.gif',
|
|
|
|
':?:' => 'icon_question.gif',
|
|
|
|
':idea:' => 'icon_idea.gif',
|
|
|
|
':arrow:' => 'icon_arrow.gif',
|
|
|
|
':|' => 'icon_neutral.gif',
|
|
|
|
':-|' => 'icon_neutral.gif',
|
|
|
|
':neutral:' => 'icon_neutral.gif',
|
|
|
|
':mrgreen:' => 'icon_mrgreen.gif',
|
2003-04-01 09:12:34 -05:00
|
|
|
);
|
|
|
|
|
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// the weekdays and the months.. translate them if necessary
|
2003-04-01 09:12:34 -05:00
|
|
|
|
|
|
|
$weekday[0]='Sunday';
|
|
|
|
$weekday[1]='Monday';
|
|
|
|
$weekday[2]='Tuesday';
|
|
|
|
$weekday[3]='Wednesday';
|
|
|
|
$weekday[4]='Thursday';
|
|
|
|
$weekday[5]='Friday';
|
|
|
|
$weekday[6]='Saturday';
|
|
|
|
|
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// the months, translate them if necessary - note: this isn't active everywhere yet
|
2003-04-01 09:12:34 -05:00
|
|
|
$month['01']='January';
|
|
|
|
$month['02']='February';
|
|
|
|
$month['03']='March';
|
|
|
|
$month['04']='April';
|
|
|
|
$month['05']='May';
|
|
|
|
$month['06']='June';
|
|
|
|
$month['07']='July';
|
|
|
|
$month['08']='August';
|
|
|
|
$month['09']='September';
|
|
|
|
$month['10']='October';
|
|
|
|
$month['11']='November';
|
|
|
|
$month['12']='December';
|
|
|
|
|
|
|
|
|
|
|
|
|
2003-05-25 08:43:31 -04:00
|
|
|
// This is the name of the include directory. No "/" allowed.
|
2003-05-22 08:18:13 -04:00
|
|
|
$b2inc = 'b2-include';
|
2003-04-01 09:12:34 -05:00
|
|
|
|
|
|
|
|
|
|
|
// ** Querystring Configuration ** (don't change if you don't know what you're doing)
|
|
|
|
|
|
|
|
$querystring_start = '?';
|
|
|
|
$querystring_equal = '=';
|
|
|
|
$querystring_separator = '&';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ** Configuration for b2mail.php ** (skip this if you don't intend to blog via email)
|
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// mailserver settings
|
2003-04-01 09:12:34 -05:00
|
|
|
$mailserver_url = 'mail.example.com';
|
|
|
|
$mailserver_login = 'login@example.com';
|
|
|
|
$mailserver_pass = 'password';
|
|
|
|
$mailserver_port = 110;
|
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// by default posts will have this category
|
2003-04-01 09:12:34 -05:00
|
|
|
$default_category = 1;
|
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// subject prefix
|
2003-04-01 09:12:34 -05:00
|
|
|
$subjectprefix = 'blog:';
|
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// body terminator string (starting from this string, everything will be ignored, including this string)
|
2003-04-01 09:12:34 -05:00
|
|
|
$bodyterminator = "___";
|
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// set this to 1 to run in test mode
|
2003-04-01 09:12:34 -05:00
|
|
|
$thisisforfunonly = 0;
|
|
|
|
|
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
////// Special Configuration for some phone email services
|
2003-04-01 09:12:34 -05:00
|
|
|
|
2003-05-22 18:51:40 -04:00
|
|
|
// 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
|
2003-04-01 09:12:34 -05:00
|
|
|
|
|
|
|
$use_phoneemail = 0;
|
|
|
|
$phoneemail_separator = ':::';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Stop editing */
|
|
|
|
|
|
|
|
|
2003-05-24 19:14:58 -04:00
|
|
|
$HTTP_HOST = getenv('HTTP_HOST'); /* domain name */
|
|
|
|
$REMOTE_ADDR = getenv('REMOTE_ADDR'); /* visitor's IP */
|
|
|
|
$HTTP_USER_AGENT = getenv('HTTP_USER_AGENT'); /* visitor's browser */
|
2003-04-01 09:12:34 -05:00
|
|
|
|
|
|
|
$server = $dbhost;
|
|
|
|
$loginsql = $dbusername;
|
|
|
|
$passsql = $dbpassword;
|
2003-05-24 17:50:22 -04:00
|
|
|
$path = $siteurl;
|
2003-04-01 09:12:34 -05:00
|
|
|
$base = $dbname;
|
|
|
|
|
2003-05-25 08:43:31 -04:00
|
|
|
|
|
|
|
// This should get us the relative path of WordPress and the absolute path on the server. Yipee!
|
|
|
|
$relpath = '';
|
|
|
|
$url = explode('/', $siteurl);
|
|
|
|
for ($i = 3; $i < count($url); $i++) {
|
|
|
|
$relpath .= '/'. $url[$i];
|
|
|
|
}
|
|
|
|
$abspath = getenv('DOCUMENT_ROOT') . $relpath . '/';
|
|
|
|
$b2inc = "/$b2inc";
|
|
|
|
$pathserver = &$siteurl;
|
2003-05-24 17:50:22 -04:00
|
|
|
?>
|