Annotation of cdn/www/b2config.php, revision 1.3

1.1       cdn         1: <?php
                      2: 
1.2       cdn         3:   require(PHP_INC.CONNECT);
                      4: 
1.1       cdn         5: /* *
                      6:  * b2's config file *
                      7:                   * */
                      8: 
                      9: 
                     10: # Reminder: everything that starts with #, /* or // is a comment
                     11: 
                     12: /* Start editing */
                     13: 
                     14: # $siteurl is your blog's URL: for example, 'http://mydomain.com' (no trailing slash !)
                     15: # $blogfilename is the name of the default file for your blog
                     16: # $blogname is the name of your blog
                     17: 
1.2       cdn        18: $siteurl = 'http://' . $project . HOST;
                     19: $blogfilename = 'index.html';
                     20: $blogname = "b2og";
1.1       cdn        21: $blogdescription = "babblings !";
                     22: 
                     23: 
                     24: # fill these only if you have a Cafelog ID,
                     25: # this enables your blog to be in the Recently Updated b2 blogs list.
                     26: # to obtain this ID, e-mail update@tidakada.com with these details:
                     27: #  name of the weblog, weblog's URL, your e-mail address, and a password
                     28: # in the future, the password will allow you to change these details online
                     29: 
                     30: $cafelogID = '';
                     31: $use_cafelogping = 0;    # set this to 1 if you do have a Cafelog ID
                     32: 
                     33: 
                     34: # $pathserver is where you have uploaded b2: for example, 'http://mydomain.com' (no ending slash !)
                     35: #   by default b2 is set to run in the folder your blog resides, same as $siteurl
                     36: 
1.2       cdn        37: //$pathserver = 'http://www.cdn.uklinux.net/red';
1.1       cdn        38: 
                     39: 
                     40: # your email (obvious uh ?)
1.2       cdn        41: $admin_email = 'cdn@cdn.cx';
1.1       cdn        42: 
                     43: 
                     44: # set this to 0 or 1, whether you want new users to be able to post entries once they registered
1.2       cdn        45: $new_users_can_blog = 0;
1.1       cdn        46: 
                     47: 
                     48: # set this to 0 or 1, whether you want to allow users to register on your blog.      
                     49: $users_can_register = 1;
                     50: 
                     51: 
                     52: # day at the start of the week: 0 for Sunday, 1 for Monday, 2 for Tuesday, etc
                     53: $start_of_week = 1;
                     54: 
                     55: 
                     56: 
                     57: // ** MySQL settings **
                     58: 
                     59: # fill with your database details
1.2       cdn        60: $dbname = $database;//'b2';                    // the name of the database
                     61: $dbhost = $host;//'ankh.local';                // 99% chances you won't need to change this value
                     62: $dbusername = $user;//'root';                  // your MySQL username
                     63: $dbpassword = $password;//'';          // ...and password
1.1       cdn        64: 
                     65: # database tables' names (change them if you want to have multiple b2's in a single database)
1.2       cdn        66: 
                     67: $b2prefix = '_cdn_';
                     68: //$b2prefix = '';
                     69: 
                     70: $tableposts = $b2prefix . 'b2posts';
                     71: $tableusers = $b2prefix . 'b2users';
                     72: $tablesettings = $b2prefix . 'b2settings';
                     73: $tablecategories = $b2prefix . 'b2categories';
                     74: $tablecomments = $b2prefix . 'b2comments';
1.1       cdn        75: 
                     76: 
                     77: // ** Post preview function **
                     78: 
                     79: # set this to 1 if you want to use the 'preview' function
                     80: $use_preview = 1;
                     81: 
                     82: 
                     83: 
                     84: // ** Spell Checker functions **
                     85: 
                     86: 
                     87: # set this to 0 to disable the spell checker, or 1 to enable it
1.2       cdn        88: $use_spellchecker = 0;
1.1       cdn        89: 
                     90: 
                     91: 
                     92: // ** Text formatting options **
                     93: 
                     94: # these options can help you format your text without using too much html
1.2       cdn        95: $use_bbcode = 1;       // use BBCode, like [b]bold[/b]
1.1       cdn        96: $use_gmcode = 0;       // use GreyMatter-styles: **bold** \italic\ __underline__
                     97: $use_quicktags = 1;    // buttons for HTML tags (they won't work on IE Mac yet)
                     98: 
                     99: # IMPORTANT! set this to 0 if you are using Chinese, Japanese, Korean,
                    100: #                                           or other double-bytes languages
                    101: $use_htmltrans = 1;
                    102: 
                    103: # this could help balance your HTML code. if it gives bad results, set it to 0
                    104: $use_balanceTags = 1;
                    105: 
                    106: # this would convert quotes into smart/curly quotes, set it to 1 to enable it
                    107: $use_smartquotes = 0;
                    108: 
                    109: 
                    110: // ** Image upload **
                    111: 
                    112: 
                    113: # set this to 0 to disable file upload, or 1 to enable it
                    114: $use_fileupload = 0;
                    115: 
                    116: # enter the real path of the directory where you'll upload the pictures
                    117: #   if you're unsure about what your real path is, please ask your host's support staff
                    118: #   note that the  directory must be writable by the webserver (ChMod 766)
                    119: #   note for windows-servers users: use forwardslashes instead of backslashes
                    120: #$fileupload_realpath = '/home/your/site/b2/images';
                    121: $fileupload_realpath = '/home/example/public_html/images';
                    122: 
                    123: # enter the URL of that directory (it's used to generate the links to the pictures)
                    124: $fileupload_url = 'http://example.com/images';
                    125: 
                    126: # accepted file types, you can add to that list if you want
                    127: #   note: add a space before and after each file type
                    128: #   example: $fileupload_allowedtypes = ' jpg gif png ';
                    129: $fileupload_allowedtypes = ' jpg gif png ';
                    130: 
                    131: # by default, most servers limit the size of uploads to 2048 KB
                    132: #   if you want to set it to a lower value, here it is (you cannot set a higher value)
                    133: $fileupload_maxk = '96';
                    134: 
                    135: # you may not want all users to upload pictures/files, so you can set a minimum level for this
                    136: $fileupload_minlevel = '1';
                    137: 
                    138: # ...or you may authorize only some users. enter their logins here, separated by spaces
                    139: #   if you leave that variable blank, all users who have the minimum level are authorized to upload
                    140: #   note: add a space before and after each login name
                    141: #   example: $fileupload_allowedusers = ' barbara anne ';
                    142: $fileupload_allowedusers = '';
                    143: 
                    144: // ** LiveJournal Integration settings **
                    145: // enable livejournal integration
1.2       cdn       146: $use_ljupdate = 0;
1.1       cdn       147: 
                    148: // database tables' names (change them if you want to have multiple b2's with ljupdate in a single database)
                    149: $tableljusers = 'ljusers';
                    150: $tableljposts = 'ljposts';
                    151: 
                    152: // post default settings
                    153: // lju_post: 0/1 - post to LiveJournal
                    154: // lju_disablecomments: 0/1 - disable commentting on the post at LiveJournal
                    155: // lju_sourcefooter: 0/1 - include a link back to the b2 post
                    156: $lju_post = 1;
                    157: $lju_disablecomments = 1;
                    158: $lju_sourcefooter = 1;
                    159: 
                    160: // ** end LiveJournal Integration settings **
                    161: 
                    162: 
                    163: // ** RSS syndication options **
                    164: 
                    165: # these options are used by b2rdf.php (1.0), b2rss.php (0.92), and b2rss2.php (2.0)
                    166: #  note: if you don't want to syndicate your news, you can delete these files
                    167: 
                    168: # number of last posts to syndicate
                    169: $posts_per_rss = 10;
                    170: 
                    171: # the language of your blog ( see this: http://backend.userland.com/stories/storyReader$16 )
                    172: $rss_language = 'en';
                    173: 
                    174: # for b2rss.php: allow encoded HTML in <description> tag? 1=yes, 0=no
                    175: $rss_encoded_html = 0;
                    176: 
                    177: # length (in words) of excerpts in the RSS feed? 0=unlimited
                    178: #  note: in b2rss.php, this will be set to 0 if you use encoded HTML
                    179: $rss_excerpt_length = 50;
                    180: 
                    181: 
                    182: 
                    183: // ** Weblogs.com ping **
                    184: 
                    185: # set this to 1 if you want your site to be listed on http://weblogs.com when you add a new post
                    186: $use_weblogsping = 0;
                    187: 
                    188: 
                    189: // ** Blo.gs ping **
                    190: 
                    191: # set this to 1 if you want your site to be listed on http://blo.gs when you add a new post
                    192: $use_blodotgsping = 0;
                    193: 
                    194: # if you ping blo.gs, this is the URL that will be sent to it (enter your blog's URL):
                    195: $blodotgsping_url = 'http://example.com';
                    196: 
                    197: 
                    198: 
                    199: // ** Trackback / PingBack **
                    200: 
                    201: # set this to 0 or 1, whether you want to allow your posts to be trackback'able or not
                    202: # note: setting it to zero would also disable sending trackbacks
                    203: $use_trackback = 0;
                    204: 
                    205: # set this to 0 or 1, whether you want to allow your posts to be pingback'able or not
                    206: # note: setting it to zero would also disable sending pingbacks
                    207: $use_pingback = 0;
                    208: 
                    209: 
                    210: 
                    211: // ** Comments options **
                    212: 
                    213: # set this to 1 to require e-mail and name, or 0 to allow comments without e-mail/name
1.2       cdn       214: $require_name_email = 1;
1.1       cdn       215: 
                    216: # here is a list of the tags that are allowed in the comments.
                    217: #  you can add tags to the list, just add them in the string,
                    218: #  add only the opening tag: for example, only '<a>' instead of '<a href=""></a>'
                    219: 
                    220: $comment_allowed_tags = '<b><i><u><strong><em><code><blockquote><p><br><strike><a>';
                    221: 
                    222: # set this to 1 to let every author be notified about comments on their posts
                    223: $comments_notify = 0;
                    224: 
                    225: 
                    226: 
                    227: // ** Smilies options **
                    228: 
                    229: # set this to 1 to enable smiley conversion in posts
                    230: #     (note: this makes smiley conversion in ALL posts)
                    231: $use_smilies = 0;
                    232: 
                    233: # the directory where your smilies are (no trailing slash)
                    234: $smilies_directory = 'http://example.com/b2-img/smilies';
                    235: 
                    236: # here's the conversion table, you can modify it if you know what you're doing
                    237: $b2smiliestrans = array(
                    238:        ':)'            => 'icon_smile.gif',
                    239:        ':D'            => 'icon_biggrin.gif',
                    240:        ':-D'           => 'icon_biggrin.gif',
                    241:        ':grin:'                => 'icon_biggrin.gif',
                    242:        ':)'            => 'icon_smile.gif',
                    243:        ':-)'           => 'icon_smile.gif',
                    244:        ':smile:'               => 'icon_smile.gif',
                    245:        ':('            => 'icon_sad.gif',
                    246:        ':-('           => 'icon_sad.gif',
                    247:        ':sad:'         => 'icon_sad.gif',
                    248:        ':o'            => 'icon_surprised.gif',
                    249:        ':-o'           => 'icon_surprised.gif',
                    250:        ':eek:'         => 'icon_surprised.gif',
                    251:        '8O'            => 'icon_eek.gif',
                    252:        '8-O'           => 'icon_eek.gif',
                    253:        ':shock:'               => 'icon_eek.gif',
                    254:        ':?'            => 'icon_confused.gif',
                    255:        ':-?'           => 'icon_confused.gif',
                    256:        ':???:'         => 'icon_confused.gif',
                    257:        '8)'            => 'icon_cool.gif',
                    258:        '8-)'           => 'icon_cool.gif',
                    259:        ':cool:'                => 'icon_cool.gif',
                    260:        ':lol:'         => 'icon_lol.gif',
                    261:        ':x'            => 'icon_mad.gif',
                    262:        ':-x'           => 'icon_mad.gif',
                    263:        ':mad:'         => 'icon_mad.gif',
                    264:        ':P'            => 'icon_razz.gif',
                    265:        ':-P'           => 'icon_razz.gif',
                    266:        ':razz:'                => 'icon_razz.gif',
                    267:        ':oops:'                => 'icon_redface.gif',
                    268:        ':cry:'         => 'icon_cry.gif',
                    269:        ':evil:'                => 'icon_evil.gif',
                    270:        ':twisted:'             => 'icon_twisted.gif',
                    271:        ':roll:'                => 'icon_rolleyes.gif',
                    272:        ':wink:'                => 'icon_wink.gif',
                    273:        ';)'            => 'icon_wink.gif',
                    274:        ';-)'           => 'icon_wink.gif',
                    275:        ':!:'           => 'icon_exclaim.gif',
                    276:        ':?:'           => 'icon_question.gif',
                    277:        ':idea:'                => 'icon_idea.gif',
                    278:        ':arrow:'               => 'icon_arrow.gif',
                    279:        ':|'            => 'icon_neutral.gif',
                    280:        ':-|'           => 'icon_neutral.gif',
                    281:        ':neutral:'             => 'icon_neutral.gif',
                    282:        ':mrgreen:'             => 'icon_mrgreen.gif',
                    283: );
                    284: 
                    285: 
                    286: # the weekdays and the months.. translate them if necessary
                    287: 
                    288: $weekday[0]='Sunday';
                    289: $weekday[1]='Monday';
                    290: $weekday[2]='Tuesday';
                    291: $weekday[3]='Wednesday';
                    292: $weekday[4]='Thursday';
                    293: $weekday[5]='Friday';
                    294: $weekday[6]='Saturday';
                    295: 
                    296: 
                    297: # the months, translate them if necessary - note: this isn't active everywhere yet
                    298: $month['01']='January';
                    299: $month['02']='February';
                    300: $month['03']='March';
                    301: $month['04']='April';
                    302: $month['05']='May';
                    303: $month['06']='June';
                    304: $month['07']='July';
                    305: $month['08']='August';
                    306: $month['09']='September';
                    307: $month['10']='October';
                    308: $month['11']='November';
                    309: $month['12']='December';
                    310: 
                    311: 
                    312: 
                    313: # $b2inc is where the included b2 files are: that's generally the directory b2-include,
                    314: #  so you shouldn't have to change that setting
1.2       cdn       315: $b2inc = substr(basename(__FILE__), 0, strrpos(basename(__FILE__), '/')) . '/b2-include';
                    316: $b2inc = dirname(__FILE__) . '/b2-include';
1.1       cdn       317: $b2inc = './b2-include';
1.3     ! cdn       318: $b2inc = 'b2-include';
1.1       cdn       319: 
                    320: // ** Querystring Configuration ** (don't change if you don't know what you're doing)
                    321: 
                    322: $querystring_start = '?';
                    323: $querystring_equal = '=';
                    324: $querystring_separator = '&amp;';
                    325: 
1.2       cdn       326: /*
                    327: $querystring_start = '/';
                    328: $querystring_equal = '/';
                    329: $querystring_separator = '/';
                    330: */
1.1       cdn       331: 
                    332: 
                    333: // ** Configuration for b2mail.php ** (skip this if you don't intend to blog via email)
                    334: 
                    335: # mailserver settings
                    336: $mailserver_url = 'mail.example.com';
                    337: $mailserver_login = 'login@example.com';
                    338: $mailserver_pass = 'password';
                    339: $mailserver_port = 110;
                    340: 
                    341: # by default posts will have this category
                    342: $default_category = 1;
                    343: 
                    344: # subject prefix
                    345: $subjectprefix = 'blog:';
                    346: 
                    347: # body terminator string (starting from this string, everything will be ignored, including this string)
                    348: $bodyterminator = "___";
                    349: 
                    350: # set this to 1 to run in test mode
1.2       cdn       351: $thisisforfunonly = 01;
1.1       cdn       352: 
                    353: 
                    354: ### Special Configuration for some phone email services
                    355: 
                    356: # some mobile phone email services will send identical subject & content on the same line
                    357: # if you use such a service, set $use_phoneemail to 1, and indicate a separator string
                    358: # when you compose your message, you'll type your subject then the separator string
                    359: # then you type your login:password, then the separator, then content
                    360: 
                    361: $use_phoneemail = 0;
                    362: $phoneemail_separator = ':::';
                    363: 
                    364: 
                    365: 
                    366: 
                    367: 
                    368: /* Stop editing */
                    369: 
                    370: 
                    371: $HTTP_HOST=getenv('HTTP_HOST');  /* domain name */
                    372: $REMOTE_ADDR=getenv('REMOTE_ADDR'); /* visitor's IP */
                    373: $HTTP_USER_AGENT=getenv('HTTP_USER_AGENT'); /* visitor's browser */
                    374: 
                    375: $server = $dbhost;
                    376: $loginsql = $dbusername;
                    377: $passsql = $dbpassword;
                    378: $path = $pathserver;
                    379: $base = $dbname;
                    380: 
1.2       cdn       381: ?>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>