<?php
/*
  Plugin Name: Custom DataBase Tables
  Plugin URI: https://ka2.org/
  Description: <strong>C</strong>ustom <strong>D</strong>ata<strong>B</strong>ase <strong>T</strong>ables is a database management tool to enhance WordPress as the strongest CMS. Whereby this plugin will dominate the MySQL database of the WordPress, you will be able to create a new custom table. Also you will be able to more thoroughly to manipulate the data.
  Version: 2.1.34beta
  Author: ka2
  Author URI: https://ka2.org/
  Copyright: 2016 Monaural Sound (email : ka2@ka2.org)
  License: GPL2 - http://www.gnu.org/licenses/gpl.txt
  Text Domain: custom-database-tables
  Domain Path: /langs
*/
?>
<?php
/*  Copyright 2016 ka2 (https://ka2.org/)

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License, version 2, as
	published by the Free Software Foundation.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/
?>
<?php
define('CDBT_PLUGIN_VERSION', '2.1.34beta');
define('CDBT_DB_VERSION', '2.1');
define('CDBT', 'custom-database-tables'); // This plugin domain name

// Check environment
$current_php_version = phpversion();
$required_php_version = '5.4';
if (version_compare( $required_php_version, $current_php_version, '>=' )) {
  $message = sprintf( 'Your server is running PHP version %s but this plugin requires at least PHP %s. Please run an upgrade.', $current_php_version, $required_php_version);
  $notification_html = '<div id="message" class="%s"><p>%s</p></div>';
  printf( $notification_html, 'error', $message );
  return false;
} else {
  require_once plugin_dir_path(__FILE__) . 'functions.php';
  
  CustomDataBaseTables\Lib\factory( 'set_global' );
}
