mirror of
https://github.com/PostgreSQL-For-Wordpress/postgresql-for-wordpress.git
synced 2026-01-25 16:02:19 +01:00
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@436154 b8457f37-d9ea-0310-8a92-e5e31aec5664
37 lines
1.2 KiB
PHP
37 lines
1.2 KiB
PHP
<?php
|
|
/*
|
|
Plugin Name: PostgreSQL for WordPress (PG4WP)
|
|
Plugin URI: http://www.hawkix.net
|
|
Description: PG4WP is a special 'plugin' enabling WordPress to use a PostgreSQL database.
|
|
Version: 1.2.2
|
|
Author: Hawk__
|
|
Author URI: http://www.hawkix.net
|
|
License: GPLv2 or newer.
|
|
*/
|
|
|
|
if( !defined('PG4WP_ROOT'))
|
|
{
|
|
// You can choose the driver to load here
|
|
define('DB_DRIVER', 'pgsql'); // 'pgsql' or 'mysql' are supported for now
|
|
|
|
// Set this to 'true' and check that `pg4wp` is writable if you want debug logs to be written
|
|
define( 'PG4WP_DEBUG', false);
|
|
// If you just want to log queries that generate errors, leave PG4WP_DEBUG to "false"
|
|
// and set this to true
|
|
define( 'PG4WP_LOG_ERRORS', false);
|
|
|
|
// If you want to allow insecure configuration (from the author point of view) to work with PG4WP,
|
|
// change this to true
|
|
define( 'PG4WP_INSECURE', false);
|
|
|
|
// This defines the directory where PG4WP files are loaded from
|
|
// 2 places checked : wp-content and wp-content/plugins
|
|
if( file_exists( ABSPATH.'/wp-content/pg4wp'))
|
|
define( 'PG4WP_ROOT', ABSPATH.'/wp-content/pg4wp');
|
|
else
|
|
define( 'PG4WP_ROOT', ABSPATH.'/wp-content/plugins/pg4wp');
|
|
|
|
// Here happens all the magic
|
|
require_once( PG4WP_ROOT.'/core.php');
|
|
} // Protection against multiple loading
|