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

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

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