Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 53563
Collapse All | Expand All

(-)wordpress/index.php (-1 / +1 lines)
Lines 52-58 Link Here
52
	<?php trackback_rdf(); ?>
52
	<?php trackback_rdf(); ?>
53
	-->
53
	-->
54
54
55
<?php include(ABSPATH . 'wp-comments.php'); ?>
55
<?php include('./wp-comments.php'); ?>
56
</div>
56
</div>
57
57
58
<?php endforeach; else: ?>
58
<?php endforeach; else: ?>
(-)wordpress/wp-blog-header.php (-3 / +3 lines)
Lines 1-11 Link Here
1
<?php
1
<?php
2
2
3
if (!file_exists(dirname(__FILE__).'/' . 'wp-config.php'))
3
if (!file_exists('./wp-config.php'))
4
    die("There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://wordpress.org/docs/faq/#wp-config'>We got it</a>. You can <a href='wp-admin/setup-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file.");
4
    die("There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://wordpress.org/docs/faq/#wp-config'>We got it</a>. You can <a href='wp-admin/setup-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file.");
5
5
6
require_once(dirname(__FILE__).'/' . '/wp-config.php');
6
require_once('./wp-config.php');
7
7
8
require_once(dirname(__FILE__).'/' . 'wp-includes/wp-l10n.php');
8
require_once('./wp-includes/wp-l10n.php');
9
9
10
// Process PATH_INFO, if set.
10
// Process PATH_INFO, if set.
11
$path_info = array();
11
$path_info = array();
(-)wordpress/wp-comments-post.php (-2 / +2 lines)
Lines 1-5 Link Here
1
<?php
1
<?php
2
require( dirname(__FILE__) . '/wp-config.php' );
2
require('./wp-config.php' );
3
3
4
function add_magic_quotes($array) {
4
function add_magic_quotes($array) {
5
	foreach ($array as $k => $v) {
5
	foreach ($array as $k => $v) {
Lines 101-104 Link Here
101
	header("Location: $location");
101
	header("Location: $location");
102
}
102
}
103
103
104
?>
104
?>
(-)wordpress/wp-includes/links-update-xml.php (-2 / +2 lines)
Lines 3-9 Link Here
3
// Copyright (C) 2003 Mike Little -- mike@zed1.com
3
// Copyright (C) 2003 Mike Little -- mike@zed1.com
4
4
5
// Get the path of our parent directory:
5
// Get the path of our parent directory:
6
$parentpath = dirname(dirname(__FILE__));
6
$parentpath = '../';
7
7
8
require_once($parentpath.'/wp-config.php');
8
require_once($parentpath.'/wp-config.php');
9
9
Lines 171-174 Link Here
171
	//echo('</pre>');
171
	//echo('</pre>');
172
} // end if updated cache file
172
} // end if updated cache file
173
173
174
?>
174
?>
(-)wordpress/wp-includes/wp-l10n.php (-2 / +4 lines)
Lines 1-7 Link Here
1
<?php
1
<?php
2
$parentpath = dirname(dirname(__FILE__));
2
$parentpath = dirname(dirname(__FILE__));
3
 
3
4
require_once($parentpath.'/wp-config.php');
4
// Commented out by peter.westwood@ftwr.co.uk
5
// All files that require/include us have already the wp-config.php 
6
//require_once($parentpath.'/wp-config.php');
5
7
6
$curpath = dirname(__FILE__).'/';
8
$curpath = dirname(__FILE__).'/';
7
9
(-)wordpress/wp-login.php (-1 / +1 lines)
Lines 1-5 Link Here
1
<?php
1
<?php
2
require(dirname(__FILE__) . '/wp-config.php');
2
require('./wp-config.php');
3
3
4
if (!function_exists('add_magic_quotes')) {
4
if (!function_exists('add_magic_quotes')) {
5
	function add_magic_quotes($array) {
5
	function add_magic_quotes($array) {
(-)wordpress/wp-mail.php (-3 / +3 lines)
Lines 1-7 Link Here
1
<?php
1
<?php
2
require(dirname(__FILE__) . '/wp-config.php');
2
require('./wp-config.php');
3
3
4
require_once(ABSPATH.WPINC.'/class-pop3.php');
4
require_once('wp-includes/class-pop3.php');
5
5
6
error_reporting(2037);
6
error_reporting(2037);
7
7
Lines 154-157 Link Here
154
154
155
$pop3->quit();
155
$pop3->quit();
156
156
157
?>
157
?>
(-)wordpress/wp-pass.php (-2 / +2 lines)
Lines 4-11 Link Here
4
  It doesn't need to connect to the DB, or do anything fancy at all. Yum.
4
  It doesn't need to connect to the DB, or do anything fancy at all. Yum.
5
  -- Matt
5
  -- Matt
6
*/
6
*/
7
require(dirname(__FILE__) . '/wp-config.php');
7
require('./wp-config.php');
8
setcookie('wp-postpass_'.$cookiehash, $_POST['post_password'], time()+60*60*24*30);
8
setcookie('wp-postpass_'.$cookiehash, $_POST['post_password'], time()+60*60*24*30);
9
header('Location: ' . $_SERVER['HTTP_REFERER']);
9
header('Location: ' . $_SERVER['HTTP_REFERER']);
10
10
11
?>
11
?>
(-)wordpress/wp-trackback.php (-2 / +2 lines)
Lines 1-5 Link Here
1
<?php
1
<?php
2
require(dirname(__FILE__) . '/wp-config.php');
2
require('./wp-config.php');
3
3
4
// trackback is done by a POST
4
// trackback is done by a POST
5
$request_array = 'HTTP_POST_VARS';
5
$request_array = 'HTTP_POST_VARS';
Lines 88-91 Link Here
88
		do_action('trackback_post', $comment_ID);
88
		do_action('trackback_post', $comment_ID);
89
	}
89
	}
90
}
90
}
91
?>
91
?>

Return to bug 53563