View | Details | Raw Unified
Collapse All | Expand All

(-) wordpress/index.php (-1 / +1 lines)
 Lines 52-58    Link Here 
	<?php trackback_rdf(); ?>
	<?php trackback_rdf(); ?>
	-->
	-->
<?php include(ABSPATH . 'wp-comments.php'); ?>
<?php include('./wp-comments.php'); ?>
</div>
</div>
<?php endforeach; else: ?>
<?php endforeach; else: ?>
(-) wordpress/wp-blog-header.php (-3 / +3 lines)
 Lines 1-11    Link Here 
<?php
<?php
if (!file_exists(dirname(__FILE__).'/' . 'wp-config.php'))
if (!file_exists('./wp-config.php'))
    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.");
    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.");
require_once(dirname(__FILE__).'/' . '/wp-config.php');
require_once('./wp-config.php');
require_once(dirname(__FILE__).'/' . 'wp-includes/wp-l10n.php');
require_once('./wp-includes/wp-l10n.php');
// Process PATH_INFO, if set.
// Process PATH_INFO, if set.
$path_info = array();
$path_info = array();
(-) wordpress/wp-comments-post.php (-2 / +2 lines)
 Lines 1-5    Link Here 
<?php
<?php
require( dirname(__FILE__) . '/wp-config.php' );
require('./wp-config.php' );
function add_magic_quotes($array) {
function add_magic_quotes($array) {
	foreach ($array as $k => $v) {
	foreach ($array as $k => $v) {
 Lines 101-104    Link Here 
	header("Location: $location");
	header("Location: $location");
}
}
?>
?>
(-) wordpress/wp-includes/links-update-xml.php (-2 / +2 lines)
 Lines 3-9    Link Here 
// Copyright (C) 2003 Mike Little -- mike@zed1.com
// Copyright (C) 2003 Mike Little -- mike@zed1.com
// Get the path of our parent directory:
// Get the path of our parent directory:
$parentpath = dirname(dirname(__FILE__));
$parentpath = '../';
require_once($parentpath.'/wp-config.php');
require_once($parentpath.'/wp-config.php');
 Lines 171-174    Link Here 
	//echo('</pre>');
	//echo('</pre>');
} // end if updated cache file
} // end if updated cache file
?>
?>
(-) wordpress/wp-includes/wp-l10n.php (-2 / +4 lines)
 Lines 1-7    Link Here 
<?php
<?php
$parentpath = dirname(dirname(__FILE__));
$parentpath = dirname(dirname(__FILE__));
 
require_once($parentpath.'/wp-config.php');
// Commented out by peter.westwood@ftwr.co.uk
// All files that require/include us have already the wp-config.php 
//require_once($parentpath.'/wp-config.php');
$curpath = dirname(__FILE__).'/';
$curpath = dirname(__FILE__).'/';
(-) wordpress/wp-login.php (-1 / +1 lines)
 Lines 1-5    Link Here 
<?php
<?php
require(dirname(__FILE__) . '/wp-config.php');
require('./wp-config.php');
if (!function_exists('add_magic_quotes')) {
if (!function_exists('add_magic_quotes')) {
	function add_magic_quotes($array) {
	function add_magic_quotes($array) {
(-) wordpress/wp-mail.php (-3 / +3 lines)
 Lines 1-7    Link Here 
<?php
<?php
require(dirname(__FILE__) . '/wp-config.php');
require('./wp-config.php');
require_once(ABSPATH.WPINC.'/class-pop3.php');
require_once('wp-includes/class-pop3.php');
error_reporting(2037);
error_reporting(2037);
 Lines 154-157    Link Here 
$pop3->quit();
$pop3->quit();
?>
?>
(-) wordpress/wp-pass.php (-2 / +2 lines)
 Lines 4-11    Link Here 
  It doesn't need to connect to the DB, or do anything fancy at all. Yum.
  It doesn't need to connect to the DB, or do anything fancy at all. Yum.
  -- Matt
  -- Matt
*/
*/
require(dirname(__FILE__) . '/wp-config.php');
require('./wp-config.php');
setcookie('wp-postpass_'.$cookiehash, $_POST['post_password'], time()+60*60*24*30);
setcookie('wp-postpass_'.$cookiehash, $_POST['post_password'], time()+60*60*24*30);
header('Location: ' . $_SERVER['HTTP_REFERER']);
header('Location: ' . $_SERVER['HTTP_REFERER']);
?>
?>
(-) wordpress/wp-trackback.php (-2 / +2 lines)
 Lines 1-5    Link Here 
<?php
<?php
require(dirname(__FILE__) . '/wp-config.php');
require('./wp-config.php');
// trackback is done by a POST
// trackback is done by a POST
$request_array = 'HTTP_POST_VARS';
$request_array = 'HTTP_POST_VARS';
 Lines 88-91    Link Here 
		do_action('trackback_post', $comment_ID);
		do_action('trackback_post', $comment_ID);
	}
	}
}
}
?>
?>