Checking for PHP < 4.1 from John Gray.

git-svn-id: https://develop.svn.wordpress.org/trunk@1367 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2004-05-27 17:44:53 +00:00
parent 1cb1a9bf7a
commit 546e0da910
1 changed files with 5 additions and 2 deletions

View File

@ -27,11 +27,14 @@ $wpdb->optiongroups = $table_prefix . 'optiongroups';
$wpdb->optiongroup_options = $table_prefix . 'optiongroup_options';
$wpdb->postmeta = $table_prefix . 'postmeta';
if ( !(phpversion() >= '4.1') )
die( 'Your server is running PHP version ' . phpversion() . ' but WordPress requires at least 4.1' );
$wpdb->hide_errors();
$users = $wpdb->get_results("SELECT * FROM $wpdb->users");
if (!$users && !strstr($_SERVER['PHP_SELF'], '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>.");
}
$wpdb->show_errors();
require (ABSPATH . WPINC . '/functions.php');