예제 #1
0
  <p>{$message}</p>
  <p>{$data}</p>
</body>
<html>

HTML
);
}
if (version_compare(PHP_VERSION, '5.2.4', '<')) {
    pdo_log_error('PHP version on this server is too old.', sprinf("Your server is running PHP version %d but this version of WordPress requires at least 5.2.4", phpversion()));
}
if (!extension_loaded('pdo')) {
    pdo_log_error('PHP PDO Extension is not loaded.', 'Your PHP installation appears to be missing the PDO extension which is required for this version of WordPress.');
}
if (!extension_loaded('pdo_sqlite')) {
    pdo_log_error('PDO Driver for SQLite is missing.', 'Your PHP installtion appears not to have the right PDO drivers loaded. These are required for this version of WordPress and the type of database you have specified.');
}
/*
 * Notice:
 * Your scripts have the permission to create directories or files on your server.
 * If you write in your wp-config.php like below, we take these definitions.
 * define('DB_DIR', '/full_path_to_the_database_directory/');
 * define('DB_FILE', 'database_file_name');
 */
/*
 * PDODIR is SQLite Integration installed directory.
 */
if (defined('WP_PLUGIN_DIR')) {
    define('PDODIR', WP_PLUGIN_DIR . '/sqlite-integration/');
} else {
    if (defined('WP_CONTENT_DIR')) {
예제 #2
0
\t<p>{$data}</p>
</body>
</html>

HTML
);
    //}
}
if (version_compare('5.0', phpversion(), '>')) {
    pdo_log_error('Incorrect PHP Version', 'Your server is running PHP version ' . phpversion() . ' but this version of WordPress requires at least 5.0.');
}
if (!extension_loaded('pdo')) {
    pdo_log_error("Invalid or missing PHP Extensions", 'Your PHP installation appears to be missing the PDO extension which is required for this version of WordPress.');
}
if (!extension_loaded('pdo_' . DB_TYPE)) {
    pdo_log_error('Invalid or missing PDO Driver', "Your PHP installation appears not to have the right PDO drivers loaded.  These are required for this version of Wordpress and the type of database you have specified.");
}
function fileModified($file)
{
    global $wpdb;
    $dbTime = $wpdb->get_var("select modTime from modTimes where modFile = '" . $wpdb->escape($file) . "'");
    if (empty($dbTime) || $dbTime !== getModTime($file)) {
        return true;
    } else {
        return false;
    }
}
/**
*	writes the new file modification timestamp to the management table
*	@param	$file	string	a string holding the full path to the file in question	
*/