Changeset 7971
- Timestamp:
- 05/21/2008 05:59:27 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 29 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r7956 r7971 2 2 define('DOING_AJAX', true); 3 3 4 require_once('../wp- config.php');4 require_once('../wp-load.php'); 5 5 require_once('includes/admin.php'); 6 6 -
trunk/wp-admin/admin.php
r7258 r7971 3 3 4 4 if ( defined('ABSPATH') ) 5 require_once( ABSPATH . 'wp-config.php');5 require_once(ABSPATH . 'wp-load.php'); 6 6 else 7 require_once('../wp-config.php');7 require_once('../wp-load.php'); 8 8 9 9 if ( get_option('db_version') != $wp_db_version ) { -
trunk/wp-admin/async-upload.php
r7682 r7971 6 6 7 7 if ( defined('ABSPATH') ) 8 require_once( ABSPATH . 'wp-config.php');8 require_once(ABSPATH . 'wp-load.php'); 9 9 else 10 require_once('../wp-config.php');10 require_once('../wp-load.php'); 11 11 12 12 // Flash often fails to send cookies with the POST or upload, so we need to pass it in GET or POST instead -
trunk/wp-admin/install-helper.php
r6363 r7971 1 1 <?php 2 require_once(dirname(dirname(__FILE__)).'/wp-config.php'); 2 $wp_only_load_config = true; 3 require_once(dirname(dirname(__FILE__)).'/wp-load.php'); 3 4 $debug = 0; 4 5 -
trunk/wp-admin/install.php
r7294 r7971 1 1 <?php 2 2 define('WP_INSTALLING', true); 3 if (!file_exists('../wp-config.php')) {4 require_once('../wp-includes/compat.php');5 require_once('../wp-includes/functions.php');6 wp_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://codex.wordpress.org/Editing_wp-config.php'>We got it</a>. You can create a <code>wp-config.php</code> file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.</p><p><a href='setup-config.php' class='button'>Create a Configuration File</a>", "WordPress › Error");7 }8 3 9 require_once('../wp- config.php');4 require_once('../wp-load.php'); 10 5 require_once('./includes/upgrade.php'); 11 6 -
trunk/wp-admin/link-parse-opml.php
r4495 r7971 1 1 <?php 2 require_once('../wp- config.php');2 require_once('../wp-load.php'); 3 3 4 4 // columns we wish to find are: link_url, link_name, link_target, link_description -
trunk/wp-admin/moderation.php
r7027 r7971 1 1 <?php 2 require_once('../wp- config.php');2 require_once('../wp-load.php'); 3 3 wp_redirect('edit-comments.php?comment_status=moderated'); 4 4 ?> -
trunk/wp-admin/setup-config.php
r7883 r7971 20 20 if (file_exists('../wp-config.php')) 21 21 wp_die("<p>The file 'wp-config.php' already exists. If you need to reset any of the configuration items in this file, please delete it first. You may try <a href='install.php'>installing now</a>.</p>"); 22 23 // Check if wp-config.php exists above the root directory 24 if (file_exists('../../wp-config.php')) 25 wp_die("<p>The file 'wp-config.php' already exists one level above your WordPress installation. If you need to reset any of the configuration items in this file, please delete it first. You may try <a href='install.php'>installing now</a>.</p>"); 22 26 23 27 if (isset($_GET['step'])) -
trunk/wp-admin/update-links.php
r7645 r7971 1 1 <?php 2 require_once('../wp- config.php');2 require_once('../wp-load.php'); 3 3 require_once( ABSPATH . 'wp-includes/class-snoopy.php'); 4 4 -
trunk/wp-admin/upgrade.php
r7095 r7971 1 1 <?php 2 2 define('WP_INSTALLING', true); 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://codex.wordpress.org/Installing_WordPress#Step_3:_Set_up_wp-config.php'>We got it</a>. You can create a <code>wp-config.php</code> file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.</p><p><a href='setup-config.php' class='button'>Create a Configuration File</a>");5 3 6 require('../wp- config.php');4 require('../wp-load.php'); 7 5 timer_start(); 8 6 require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); -
trunk/wp-app.php
r7351 r7971 10 10 define('APP_REQUEST', true); 11 11 12 require_once('./wp- config.php');12 require_once('./wp-load.php'); 13 13 require_once(ABSPATH . WPINC . '/post-template.php'); 14 14 require_once(ABSPATH . WPINC . '/atomlib.php'); -
trunk/wp-atom.php
r5843 r7971 2 2 3 3 if (empty($wp)) { 4 require_once('./wp- config.php');4 require_once('./wp-load.php'); 5 5 wp('feed=atom'); 6 6 } -
trunk/wp-blog-header.php
r6965 r7971 1 1 <?php 2 2 3 if (! isset($wp_did_header)): 4 if ( !file_exists( dirname(__FILE__) . '/wp-config.php') ) { 5 if (strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false) $path = ''; 6 else $path = 'wp-admin/'; 3 if ( !isset($wp_did_header) ) { 7 4 8 require_once( dirname(__FILE__) . '/wp-includes/classes.php'); 9 require_once( dirname(__FILE__) . '/wp-includes/functions.php'); 10 require_once( dirname(__FILE__) . '/wp-includes/plugin.php'); 11 wp_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://codex.wordpress.org/Editing_wp-config.php'>We got it</a>. You can create a <code>wp-config.php</code> file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.</p><p><a href='{$path}setup-config.php' class='button'>Create a Configuration File</a>", "WordPress › Error"); 5 $wp_did_header = true; 6 7 require_once( dirname(__FILE__) . '/wp-load.php' ); 8 9 wp(); 10 11 require_once( ABSPATH . WPINC . '/template-loader.php' ); 12 12 13 } 13 14 14 $wp_did_header = true;15 16 require_once( dirname(__FILE__) . '/wp-config.php');17 18 wp();19 20 require_once(ABSPATH . WPINC . '/template-loader.php');21 22 endif;23 24 15 ?> -
trunk/wp-comments-post.php
r7645 r7971 6 6 exit; 7 7 } 8 require( dirname(__FILE__) . '/wp- config.php' );8 require( dirname(__FILE__) . '/wp-load.php' ); 9 9 10 10 nocache_headers(); -
trunk/wp-commentsrss2.php
r5843 r7971 2 2 3 3 if (empty($wp)) { 4 require_once('./wp- config.php');4 require_once('./wp-load.php'); 5 5 wp('feed=rss2&withcomments=1'); 6 6 } -
trunk/wp-config-sample.php
r7810 r7971 24 24 /* That's all, stop editing! Happy blogging. */ 25 25 26 define('ABSPATH', dirname(__FILE__).'/'); 27 require_once(ABSPATH.'wp-settings.php'); 26 if ( !defined('ABSPATH') ) 27 define('ABSPATH', dirname(__FILE__) . '/'); 28 require_once(ABSPATH . 'wp-settings.php'); 28 29 ?> -
trunk/wp-cron.php
r5843 r7971 2 2 ignore_user_abort(true); 3 3 define('DOING_CRON', TRUE); 4 require_once('./wp- config.php');4 require_once('./wp-load.php'); 5 5 6 6 if ( $_GET['check'] != wp_hash('187425') ) -
trunk/wp-includes/js/tinymce/tiny_mce_config.php
r7854 r7971 13 13 while ( @ob_end_clean() ); 14 14 15 @ require('../../../wp- config.php');15 @ require('../../../wp-load.php'); 16 16 17 17 function getFileContents($path) { -
trunk/wp-includes/js/tinymce/wp-mce-help.php
r7556 r7971 1 <?php require_once('../../../wp- config.php');1 <?php require_once('../../../wp-load.php'); 2 2 header('Content-Type: text/html; charset=' . get_bloginfo('charset')); 3 3 ?> -
trunk/wp-links-opml.php
r6308 r7971 2 2 3 3 if (empty($wp)) { 4 require_once('./wp- config.php');4 require_once('./wp-load.php'); 5 5 wp(); 6 6 } -
trunk/wp-login.php
r7958 r7971 1 1 <?php 2 require( dirname(__FILE__) . '/wp- config.php' );2 require( dirname(__FILE__) . '/wp-load.php' ); 3 3 4 4 // Rather than duplicating this HTML all over the place, we'll stick it in function -
trunk/wp-mail.php
r6526 r7971 1 1 <?php 2 require(dirname(__FILE__) . '/wp- config.php');2 require(dirname(__FILE__) . '/wp-load.php'); 3 3 4 4 require_once(ABSPATH.WPINC.'/class-pop3.php'); -
trunk/wp-pass.php
r6131 r7971 1 1 <?php 2 require( dirname(__FILE__) . '/wp- config.php');2 require( dirname(__FILE__) . '/wp-load.php'); 3 3 4 4 if ( get_magic_quotes_gpc() ) -
trunk/wp-rdf.php
r5843 r7971 2 2 3 3 if (empty($wp)) { 4 require_once('./wp- config.php');4 require_once('./wp-load.php'); 5 5 wp('feed=rdf'); 6 6 } -
trunk/wp-register.php
r4375 r7971 4 4 # Use wp_register() to create a registration link instead, it's much better ;) 5 5 6 require('./wp- config.php');6 require('./wp-load.php'); 7 7 wp_redirect('wp-login.php?action=register'); 8 8 -
trunk/wp-rss.php
r5843 r7971 2 2 3 3 if (empty($wp)) { 4 require_once('./wp- config.php');4 require_once('./wp-load.php'); 5 5 wp('feed=rss'); 6 6 } -
trunk/wp-rss2.php
r5843 r7971 2 2 3 3 if (empty($wp)) { 4 require_once('./wp- config.php');4 require_once('./wp-load.php'); 5 5 wp('feed=rss2'); 6 6 } -
trunk/wp-trackback.php
r7645 r7971 2 2 3 3 if (empty($wp)) { 4 require_once('./wp- config.php');4 require_once('./wp-load.php'); 5 5 wp('tb=1'); 6 6 } -
trunk/xmlrpc.php
r7914 r7971 16 16 $HTTP_RAW_POST_DATA = trim($HTTP_RAW_POST_DATA); 17 17 18 include('./wp- config.php');18 include('./wp-load.php'); 19 19 20 20 if ( isset( $_GET['rsd'] ) ) { // http://archipelago.phrasewise.com/rsd
Note: See TracChangeset
for help on using the changeset viewer.