File:  [mozdev] / cdn / www / b2config.php
Revision 1.14: download - view: text, annotated - select for diffs - revision graph
Fri Mar 7 20:25:26 2003 UTC (16 years, 7 months ago) by cdn
Branches: MAIN
CVS tags: HEAD
0o

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

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