From fc41175af3a8c83b0de0833d7dfe9a79302d4afa Mon Sep 17 00:00:00 2001 From: mikelittle Date: Thu, 12 Jun 2003 22:42:48 +0000 Subject: [PATCH] require -> require_once b2config.php -> wp-config.php git-svn-id: http://svn.automattic.com/wordpress/trunk@212 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- b2comments.post.php | 4 ++-- b2login.php | 2 +- b2mail.php | 14 +++++++------- b2register.php | 4 ++-- b2trackback.php | 2 +- blog.header.php | 2 +- blogger-2-wp.php | 2 +- gm-2-b2.php | 4 ++-- wp-admin/b2-2-wp.php | 7 +++---- wp-admin/b2bookmarklet.php | 2 +- wp-admin/b2edit.showposts.php | 2 +- wp-admin/b2header.php | 4 ++-- wp-admin/b2template.php | 4 ++-- wp-admin/linkmanager.php | 2 +- wp-admin/links.import.php | 2 +- wp-admin/upgrade-070-to-071.php | 2 +- 16 files changed, 29 insertions(+), 30 deletions(-) diff --git a/b2comments.post.php b/b2comments.post.php index 23f1ddc01..140fc4c9d 100644 --- a/b2comments.post.php +++ b/b2comments.post.php @@ -3,8 +3,8 @@ # if you want to change the paths here, remember to put your new path BEFORE $b2inc, # like this: "b2/$b2inc/b2functions.php" -require('b2config.php'); -require($abspath.$b2inc.'/b2template.functions.php'); +require_once('wp-config.php'); +require_once($abspath.$b2inc.'/b2template.functions.php'); include($abspath.$b2inc.'/b2vars.php'); include($abspath.$b2inc.'/b2functions.php'); diff --git a/b2login.php b/b2login.php index b3814d30b..50be3448f 100644 --- a/b2login.php +++ b/b2login.php @@ -1,5 +1,5 @@ */ -require('b2config.php'); -require($abspath.$b2inc.'/b2functions.php'); +require_once('wp-config.php'); +require_once($abspath.$b2inc.'/b2functions.php'); function add_magic_quotes($array) { foreach ($array as $k => $v) { diff --git a/b2trackback.php b/b2trackback.php index fd1f259e2..84c9e588e 100644 --- a/b2trackback.php +++ b/b2trackback.php @@ -57,7 +57,7 @@ if ((strlen(''.$tb_id)) && (empty($HTTP_GET_VARS['__mode'])) && (strlen(''.$tb_u @header('Content-Type: text/xml'); - require_once('b2config.php'); + require_once('wp-config.php'); require_once($abspath.$b2inc.'/b2template.functions.php'); require_once($abspath.$b2inc.'/b2vars.php'); require_once($abspath.$b2inc.'/b2functions.php'); diff --git a/blog.header.php b/blog.header.php index 3cf7ffcd4..6dc9d249a 100644 --- a/blog.header.php +++ b/blog.header.php @@ -6,7 +6,7 @@ $use_gzipcompression = 1; /* Including config and functions files */ $curpath = dirname(__FILE__).'/'; -require_once ($curpath.'/b2config.php'); +require_once ($curpath.'/wp-config.php'); require_once ($curpath.$b2inc.'/b2template.functions.php'); require_once ($curpath.$b2inc.'/b2vars.php'); require_once ($curpath.$b2inc.'/b2functions.php'); diff --git a/blogger-2-wp.php b/blogger-2-wp.php index e5e151b90..fd00b41b2 100644 --- a/blogger-2-wp.php +++ b/blogger-2-wp.php @@ -20,7 +20,7 @@ switch ($action) { case "step1": - require('b2config.php'); + require('wp-config.php'); require($abspath.$b2inc.'/b2template.functions.php'); require($abspath.$b2inc.'/b2functions.php'); require($abspath.$b2inc.'/b2vars.php'); diff --git a/gm-2-b2.php b/gm-2-b2.php index de2d31e41..714597f2f 100644 --- a/gm-2-b2.php +++ b/gm-2-b2.php @@ -4,8 +4,8 @@ // 2. upload on your server in the directory where your b2 files are // 3. load in the browser from there -require('b2config.php'); -require($abspath.$b2inc.'/b2functions.php'); +require_once('wp-config.php'); +require_once($abspath.$b2inc.'/b2functions.php'); $b2varstoreset = array('action', 'gmpath', 'archivespath'); for ($i=0; $iThe templates are so much better, and there is so much more going on than before it's probably worth it to start from scratch and work back to your design. -
  • You can keeep your b2config.php file if you want to, but it - is very important that you take the last few lines from the - WordPress one and add those in, otherwise, nothing will work.
  • +
  • You need to transfer some of your settings from your old b2config.php + to wp-config.php file [NEED MORE INFO].
  • WordPress issues should be discussed in our support forums.
  • Back up your database before you do anything. Yes, you. diff --git a/wp-admin/b2bookmarklet.php b/wp-admin/b2bookmarklet.php index c74d8d36f..58590faf5 100644 --- a/wp-admin/b2bookmarklet.php +++ b/wp-admin/b2bookmarklet.php @@ -8,7 +8,7 @@ function selected($selected, $current) { $mode = 'bookmarklet'; $standalone = 1; -require('b2header.php'); +require_once('b2header.php'); if ($user_level == 0) die ("Cheatin' uh?"); diff --git a/wp-admin/b2edit.showposts.php b/wp-admin/b2edit.showposts.php index b28f855b1..5060707e1 100644 --- a/wp-admin/b2edit.showposts.php +++ b/wp-admin/b2edit.showposts.php @@ -1,7 +1,7 @@
    +?> \ No newline at end of file diff --git a/wp-admin/b2template.php b/wp-admin/b2template.php index 9e962793f..6050e68e8 100644 --- a/wp-admin/b2template.php +++ b/wp-admin/b2template.php @@ -40,7 +40,7 @@ switch($action) { case 'update': $standalone = 1; - require("b2header.php"); + require_once("b2header.php"); if ($user_level < 3) { die('

    You have no right to edit the template for this blog.
    Ask for a promotion to your blog admin. :)

    '); @@ -60,7 +60,7 @@ break; default: - require('b2header.php'); + require_once('b2header.php'); if ($user_level <= 3) { die('

    You have no right to edit the template for this blog.
    Ask for a promotion to your blog admin. :)

    '); diff --git a/wp-admin/linkmanager.php b/wp-admin/linkmanager.php index 3a2b5bedb..d25891c73 100644 --- a/wp-admin/linkmanager.php +++ b/wp-admin/linkmanager.php @@ -26,7 +26,7 @@ // // Mike Little (mike@zed1.com) // ***************************************************************** -include_once('../b2config.php'); +include_once('../wp-config.php'); include_once('../wp-links/links.config.php'); include_once("../wp-links/links.php"); diff --git a/wp-admin/links.import.php b/wp-admin/links.import.php index 438c1ce0b..edb8b7e71 100644 --- a/wp-admin/links.import.php +++ b/wp-admin/links.import.php @@ -26,7 +26,7 @@ // // Mike Little (mike@zed1.com) // ***************************************************************** -require('../b2config.php'); +require_once('../wp-config.php'); include_once('../wp-links/links.config.php'); include_once("../wp-links/links.php"); diff --git a/wp-admin/upgrade-070-to-071.php b/wp-admin/upgrade-070-to-071.php index c2e339b54..9c84b0209 100644 --- a/wp-admin/upgrade-070-to-071.php +++ b/wp-admin/upgrade-070-to-071.php @@ -1,5 +1,5 @@