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

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

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