File:  [mozdev] / cdn / www / b2config.php
Revision 1.8: download - view: text, annotated - select for diffs - revision graph
Thu Mar 6 14:01:51 2003 UTC (15 years, 9 months ago) by cdn
Branches: MAIN
CVS tags: HEAD
*** empty log message ***

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

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