mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Use PATH_INFO instead of REQUEST_URI for better windows compatibility.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1219 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f824d3efd5
commit
864b793c59
@ -31,7 +31,7 @@ require_once (ABSPATH . WPINC . '/wp-db.php');
|
|||||||
|
|
||||||
$wpdb->hide_errors();
|
$wpdb->hide_errors();
|
||||||
$users = $wpdb->get_results("SELECT * FROM $tableusers");
|
$users = $wpdb->get_results("SELECT * FROM $tableusers");
|
||||||
if (!$users && !strstr($_SERVER['REQUEST_URI'], 'install.php')) {
|
if (!$users && !strstr($_SERVER['PHP_SELF'], 'install.php')) {
|
||||||
die("It doesn't look like you've installed WP yet. Try running <a href='wp-admin/install.php'>install.php</a>.");
|
die("It doesn't look like you've installed WP yet. Try running <a href='wp-admin/install.php'>install.php</a>.");
|
||||||
}
|
}
|
||||||
$wpdb->show_errors();
|
$wpdb->show_errors();
|
||||||
@ -43,7 +43,7 @@ require (ABSPATH . WPINC . '/links.php');
|
|||||||
require (ABSPATH . WPINC . '/kses.php');
|
require (ABSPATH . WPINC . '/kses.php');
|
||||||
require_once (ABSPATH . WPINC . '/wp-l10n.php');
|
require_once (ABSPATH . WPINC . '/wp-l10n.php');
|
||||||
|
|
||||||
if (!strstr($_SERVER['REQUEST_URI'], 'install.php') && !strstr($_SERVER['REQUEST_URI'], 'wp-admin/import')) {
|
if (!strstr($_SERVER['PHP_SELF'], 'install.php') && !strstr($_SERVER['PHP_SELF'], 'wp-admin/import')) {
|
||||||
|
|
||||||
$querystring_start = '?';
|
$querystring_start = '?';
|
||||||
$querystring_equal = '=';
|
$querystring_equal = '=';
|
||||||
@ -63,7 +63,7 @@ if (get_settings('hack_file')) {
|
|||||||
require(ABSPATH . '/my-hacks.php');
|
require(ABSPATH . '/my-hacks.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!strstr($_SERVER['REQUEST_URI'], 'wp-admin/plugins.php') && get_settings('active_plugins')) {
|
if (!strstr($_SERVER['PHP_SELF'], 'wp-admin/plugins.php') && get_settings('active_plugins')) {
|
||||||
$current_plugins = explode("\n", (get_settings('active_plugins')));
|
$current_plugins = explode("\n", (get_settings('active_plugins')));
|
||||||
foreach ($current_plugins as $plugin) {
|
foreach ($current_plugins as $plugin) {
|
||||||
if (file_exists(ABSPATH . 'wp-content/plugins/' . $plugin))
|
if (file_exists(ABSPATH . 'wp-content/plugins/' . $plugin))
|
||||||
|
Loading…
Reference in New Issue
Block a user