Changeset 96
- Timestamp:
- 05/25/2003 12:43:31 PM (22 years ago)
- Location:
- trunk
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/b2-include/b2vars.php
r46 r96 268 268 $b2_smiliesreplace[] = "<img src='$smilies_directory/$img' alt='$smiley_masked' />"; 269 269 } 270 include_once('textile.php');271 270 272 271 add_filter('all', 'wptexturize'); 273 272 add_filter('the_content', 'wpautop'); 274 273 add_filter('comment_text', 'wpautop'); 275 // Uncomment the next line for Textile support 274 // Uncomment the following for Textile support 275 // include_once('textile.php'); 276 276 // add_filter('the_content', 'textile'); 277 277 // There is some duplication of effore so textile.php really should be tweaked to eliminate that. -
trunk/b2archives.php
r14 r96 3 3 // *** b2 Archive file 4 4 5 require _once('./b2config.php');6 require _once($b2inc.'/b2functions.php');5 require('b2config.php'); 6 require($abspath.$b2inc.'/b2functions.php'); 7 7 8 8 dbconnect(); -
trunk/b2calendar.php
r74 r96 52 52 53 53 54 include('b2config.php');55 require_once( "$b2inc/b2template.functions.php");56 require_once( "$b2inc/b2functions.php");57 require_once( "$b2inc/b2vars.php");54 require('b2config.php'); 55 require_once($abspath.$b2inc.'/b2template.functions.php'); 56 require_once($abspath.$b2inc.'/b2functions.php'); 57 require_once($abspath.$b2inc.'/b2vars.php'); 58 58 dbconnect(); 59 59 -
trunk/b2comments.post.php
r7 r96 4 4 # like this: "b2/$b2inc/b2functions.php" 5 5 6 require( "b2config.php");7 require( "$b2inc/b2template.functions.php");8 include( "$b2inc/b2vars.php");9 include( "$b2inc/b2functions.php");6 require('b2config.php'); 7 require($abspath.$b2inc.'/b2template.functions.php'); 8 include($abspath.$b2inc.'/b2vars.php'); 9 include($abspath.$b2inc.'/b2functions.php'); 10 10 11 11 dbconnect(); -
trunk/b2config.php
r94 r96 1 1 <?php 2 3 2 /* * 4 3 * WordPress's config file * 5 4 * */ 6 5 7 8 6 // Reminder: everything that starts with #, /* or // is a comment 9 7 … … 14 12 // $blogname is the name of your blog 15 13 16 $siteurl = 'http://example.com'; 14 $siteurl = 'http://example.com'; // Double check this, it's very important. 17 15 $blogfilename = 'index.php'; 18 16 $blogname = "my weblog"; … … 24 22 // ** MySQL settings ** 25 23 26 // fill with your database details 27 $dbname = 'b2'; // the name of the database 28 $dbusername = 'user'; // your MySQL username 24 $dbname = 'b2'; // The name of the database 25 $dbusername = 'user'; // Your MySQL username 29 26 $dbpassword = 'pass'; // ...and password 30 $dbhost = 'localhost'; // 99% chances you won't need to change this value 27 $dbhost = 'localhost'; // 99% chance you won't need to change this value 28 29 30 // If you've finished up to here you should be able to install now. 31 31 32 32 33 // set this to 0 or 1, whether you want new users to be able to post entries once they registered … … 260 261 261 262 262 // $b2inc is where the included b2 files are: that's generally the directory b2-include, 263 // so you shouldn't have to change that setting 263 // This is the name of the include directory. No "/" allowed. 264 264 $b2inc = 'b2-include'; 265 265 … … 322 322 $base = $dbname; 323 323 324 // This is so the new admin location works 325 // Set this path separator appropriately for your OS: semi-colon on windows, colon on unix 326 //$path_sep=';'; 327 $path_sep = ':'; 328 ini_set('include_path', ".$path_sep..$path_sep../$b2inc$path_sep./$b2inc"); 324 325 // This should get us the relative path of WordPress and the absolute path on the server. Yipee! 326 $relpath = ''; 327 $url = explode('/', $siteurl); 328 for ($i = 3; $i < count($url); $i++) { 329 $relpath .= '/'. $url[$i]; 330 } 331 $abspath = getenv('DOCUMENT_ROOT') . $relpath . '/'; 332 $b2inc = "/$b2inc"; 333 $pathserver = &$siteurl; 329 334 ?> -
trunk/b2login.php
r85 r96 1 1 <?php 2 2 require('b2config.php'); 3 require_once($ b2inc.'/b2template.functions.php');4 require_once($ b2inc.'/b2functions.php');5 require_once($ b2inc.'/b2vars.php');3 require_once($abspath.$b2inc.'/b2template.functions.php'); 4 require_once($abspath.$b2inc.'/b2functions.php'); 5 require_once($abspath.$b2inc.'/b2vars.php'); 6 6 7 7 if (!function_exists('add_magic_quotes')) { -
trunk/b2mail.php
r3 r96 5 5 6 6 require('b2config.php'); 7 require($ b2inc."/b2template.functions.php");8 require($ b2inc.'/b2vars.php');9 require($ b2inc.'/class.POP3.php');10 require($ b2inc.'/b2functions.php');11 require($ b2inc."/xmlrpc.inc");12 require($ b2inc."/xmlrpcs.inc");7 require($abspath.$b2inc."/b2template.functions.php"); 8 require($abspath.$b2inc.'/b2vars.php'); 9 require($abspath.$b2inc.'/class.POP3.php'); 10 require($abspath.$b2inc.'/b2functions.php'); 11 require($abspath.$b2inc."/xmlrpc.inc"); 12 require($abspath.$b2inc."/xmlrpcs.inc"); 13 13 14 14 dbconnect(); -
trunk/b2rdf.php
r29 r96 1 1 <?php /* RDF 1.0 generator, original version by garym@teledyn.com */ 2 $blog =1; // enter your blog's ID3 header( "Content-type: text/xml");4 include ("blog.header.php");2 $blog = 1; // enter your blog's ID 3 header('Content-type: text/xml'); 4 include('blog.header.php'); 5 5 add_filter('the_content', 'trim'); 6 6 if (!isset($rss_language)) { $rss_language = 'en'; } 7 ?><?php echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?".">"; ?> 7 ?> 8 <?php echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?".">"; ?> 8 9 <!-- generator="wordpress/<?php echo $b2_version ?>" --> 9 10 <rdf:RDF -
trunk/b2register.php
r82 r96 2 2 /* <Register> */ 3 3 4 include("./b2config.php");5 include($b2inc."/b2functions.php");4 require('b2config.php'); 5 require($abspath.$b2inc.'/b2functions.php'); 6 6 7 7 function add_magic_quotes($array) { -
trunk/b2rss.php
r29 r96 1 1 <?php /* These first lines are the first part of a CaféLog template. 2 2 In every template you do, you got to copy them before the CaféLog 'loop' */ 3 $blog =1; // enter your blog's ID4 header( "Content-type: text/xml");5 include ("blog.header.php");3 $blog = 1; // enter your blog's ID 4 header('Content-type: text/xml'); 5 include('blog.header.php'); 6 6 if (!isset($rss_language)) { $rss_language = 'en'; } 7 7 if (!isset($rss_encoded_html)) { $rss_encoded_html = 0; } 8 8 if (!isset($rss_excerpt_length) || ($rss_encoded_html == 1)) { $rss_excerpt_length = 0; } 9 ?><?php echo "<?xml version=\"1.0\"?".">"; ?> 9 ?> 10 <?php echo "<?xml version=\"1.0\"?".">"; ?> 10 11 <!-- generator="wordpress/<?php echo $b2_version ?>" --> 11 12 <rss version="0.92"> -
trunk/b2rss2.php
r68 r96 2 2 In every template you do, you got to copy them before the CafeLog 'loop' */ 3 3 $blog=1; // enter your blog's ID 4 header( "Content-type: text/xml");5 include ("blog.header.php");4 header('Content-type: text/xml'); 5 include('blog.header.php"'); 6 6 if (!isset($rss_language)) { $rss_language = 'en'; } 7 7 if (!isset($rss_encoded_html)) { $rss_encoded_html = 0; } 8 8 if (!isset($rss_excerpt_length) || ($rss_encoded_html == 1)) { $rss_excerpt_length = 0; } 9 ?><?php echo "<?xml version=\"1.0\"?".">"; ?> 9 ?> 10 <?php echo "<?xml version=\"1.0\"?".">"; ?> 10 11 <!-- generator="wordpress/<?php echo $b2_version ?>" --> 11 12 <rss version="2.0" -
trunk/b2trackback.php
r60 r96 58 58 59 59 60 require_once( "b2config.php");61 require_once( "$b2inc/b2template.functions.php");62 require_once( "$b2inc/b2vars.php");63 require_once( "$b2inc/b2functions.php");60 require_once('b2config.php'); 61 require_once($abspath.$b2inc.'/b2template.functions.php'); 62 require_once($abspath.$b2inc.'/b2vars.php'); 63 require_once($abspath.$b2inc.'/b2functions.php'); 64 64 65 65 if (!$use_trackback) { -
trunk/blog.header.php
r83 r96 5 5 6 6 /* Including config and functions files */ 7 require_once (dirname(__FILE__).'/b2config.php');7 require_once('b2config.php'); 8 8 $b2blah = dirname(__FILE__).'/'; 9 if ( (substr($b2inc,0,1)=='/') || (substr($b2inc,1,1)==':') ) { 10 $b2blah='./'; 11 } 12 require_once ($b2blah.$b2inc.'/b2template.functions.php'); 13 require_once ($b2blah.$b2inc.'/b2vars.php'); 14 require_once ($b2blah.$b2inc.'/b2functions.php'); 15 require_once ($b2blah.$b2inc.'/xmlrpc.inc'); 16 require_once ($b2blah.$b2inc.'/xmlrpcs.inc'); 9 10 require_once ($abspath.$b2inc.'/b2template.functions.php'); 11 require_once ($abspath.$b2inc.'/b2vars.php'); 12 require_once ($abspath.$b2inc.'/b2functions.php'); 13 require_once ($abspath.$b2inc.'/xmlrpc.inc'); 14 require_once ($abspath.$b2inc.'/xmlrpcs.inc'); 17 15 18 16 $b2varstoreset = array('m','p','posts','w','c', 'cat','withcomments','s','search','exact', 'sentence','poststart','postend','preview','debug', 'calendar','page','paged','more','tb', 'pb','author','order','orderby'); -
trunk/blogger-2-b2.php
r86 r96 21 21 case "step1": 22 22 23 require( "b2config.php");24 require( "$b2inc/b2functions.php");25 require( "$b2inc/b2vars.php");23 require('b2config.php'); 24 require($abspath.$b2inc.'/b2functions.php'); 25 require($abspath.$b2inc.'/b2vars.php'); 26 26 27 27 ?> -
trunk/gm-2-b2.php
r86 r96 5 5 // 3. load in the browser from there 6 6 7 require( "b2config.php");8 require($ b2inc."/b2functions.php");7 require('b2config.php'); 8 require($abspath.$b2inc.'/b2functions.php'); 9 9 10 10 $b2varstoreset = array('action', 'gmpath', 'archivespath'); -
trunk/index.php
r56 r96 1 1 <?php /* Don't remove this line, it calls the b2 function files ! */ $blog=1; 2 2 require('blog.header.php'); 3 require( 'wp-links/links.php');4 require( 'wp-links/links.weblogs.com.php');3 require($abspath.'wp-links/links.php'); 4 require($abspath.'wp-links/links.weblogs.com.php'); 5 5 ?> 6 6 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> … … 14 14 15 15 <style type="text/css" media="screen"> 16 @import url( <?php echo $ pathserver; ?>/layout2b.css );16 @import url( <?php echo $siteurl; ?>/layout2b.css ); 17 17 </style> 18 18 19 <link rel="stylesheet" type="text/css" media="print" href="<?php echo $ pathserver; ?>/print.css" />19 <link rel="stylesheet" type="text/css" media="print" href="<?php echo $siteurl; ?>/print.css" /> 20 20 <link rel="alternate" type="text/xml" title="RDF" href="<?php bloginfo('rdf_url'); ?>" /> 21 21 <link rel="alternate" type="text/xml" title="RSS" href="<?php bloginfo('rss2_url'); ?>" /> -
trunk/readme.html
r95 r96 109 109 on than before it's probably worth it to start from scratch and work 110 110 back to your design.</li> 111 <li>You can keeep your <code>b2config.php</code> file if you want to, 112 but it is <strong>very important</strong> that you take the last few 113 lines from the WordPress and add those in, otherwise, nothing will work.</li> 111 <li>You <em>must</em> update your <code>b2config.php</code>. There's all 112 sort of new stuff in there.</li> 114 113 <li>WordPress issues should be discussed in our <a href="http://wordpress.org/support/">support 115 114 forums</a>.</li> … … 870 869 http://mydomain.com/me/b2login.php, then you have:</p> 871 870 <ul> 872 <li>server: http:// mydomain.com/me</li>871 <li>server: http://example.com/me</li> 873 872 <li>path: /me/xmlrpc.php</li> 874 <li>complete URL (just in case): http:// mydomain.com/me/xmlrpc.php</li>873 <li>complete URL (just in case): http://example.com/me/xmlrpc.php</li> 875 874 </ul> 876 875 <p>There's also a b2-specific method: b2.getCategories. Request it with … … 974 973 Final notes:</h1> 975 974 <ul> 976 <li>WordPress is function nal, but a lot of coding and code clean-up remain975 <li>WordPress is functional, but a lot of coding and code clean-up remain 977 976 to be done.</li> 978 977 <li>If you've got suggestions, ideas, or comments, or if you found a bug, 979 978 why not joining us in the <a href="http://wordpress.org/support/">Support 980 979 Forums</a>?</li> 981 <li>If you can code in PHP, you'll see the structure of b2is flexible980 <li>If you can code in PHP, you'll see the structure of WordPress is flexible 982 981 enough to allow for more functions and sections to be added.</li> 983 982 </ul> … … 987 986 <li> Wherever third party code has been used, credit has been given in 988 987 the code's comments.</li> 989 <li>WordPress is released under the GPL (see license.txt).</li> 988 <li>WordPress is released under the <acronym title="GNU Public License">GPL</acronym> 989 (see license.txt).</li> 990 990 </ul></td> 991 991 </tr> -
trunk/wp-admin/b2edit.showposts.php
r92 r96 2 2 <?php 3 3 4 require_once(' b2config.php');4 require_once('../b2config.php'); 5 5 6 6 if (!$posts) { … … 229 229 <?php 230 230 // these lines are b2's "motor", do not alter nor remove them 231 include( "blog.header.php");231 include($abspath.'blog.header.php'); 232 232 233 233 while($row = mysql_fetch_object($result)) { -
trunk/wp-admin/b2header.php
r44 r96 1 1 <?php 2 2 3 require( "../b2config.php");4 require_once($ b2inc."/b2template.functions.php");5 require_once( "b2verifauth.php");6 require_once($ b2inc."/b2vars.php");7 require_once($ b2inc."/b2functions.php");8 require_once($ b2inc."/xmlrpc.inc");9 require_once($ b2inc."/xmlrpcs.inc");3 require('../b2config.php'); 4 require_once($abspath.$b2inc.'/b2template.functions.php'); 5 require_once($abspath.'/wp-admin/b2verifauth.php'); 6 require_once($abspath.$b2inc.'/b2vars.php'); 7 require_once($abspath.$b2inc.'/b2functions.php'); 8 require_once($abspath.$b2inc.'/xmlrpc.inc'); 9 require_once($abspath.$b2inc.'/xmlrpcs.inc'); 10 10 11 11 if (!isset($use_cache)) $use_cache=1; -
trunk/wp-admin/b2profile.php
r83 r96 35 35 } 36 36 37 require_once( "../b2config.php");38 require_once( "$b2inc/b2functions.php");37 require_once('../b2config.php'); 38 require_once($abspath.$b2inc.'/b2functions.php'); 39 39 40 40 dbconnect(); -
trunk/wp-admin/linkmanager.php
r54 r96 27 27 // Mike Little (mike@zed1.com) 28 28 // ***************************************************************** 29 29 include_once('../b2config.php'); 30 30 include_once('../wp-links/links.config.php'); 31 31 include_once("../wp-links/links.php");
Note: See TracChangeset
for help on using the changeset viewer.