forked from ka215/cdbt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcdbt.php
49 lines (44 loc) · 2.1 KB
/
cdbt.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?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 : [email protected])
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' );
}