| 1 |
<?php |
| 2 |
/* |
| 3 |
Plugin Name: Code Engine |
| 4 |
Plugin URI: https://meowapps.com/code-engine |
| 5 |
Description: Versatile plugin that not only manages PHP code snippets but also acts as a powerful bridge connecting WordPress, AI, and external digital platforms. |
| 6 |
Version: 0.5.0 |
| 7 |
Author: Jordy Meow |
| 8 |
Author URI: https://meowapps.com |
| 9 |
Text Domain: code-engine |
| 10 |
|
| 11 |
Dual licensed under the MIT and GPL licenses: |
| 12 |
http://www.opensource.org/licenses/mit-license.php |
| 13 |
http://www.gnu.org/licenses/gpl.html |
| 14 |
*/ |
| 15 |
|
| 16 |
define( 'MWCODE_VERSION', '0.5.0' ); |
| 17 |
define( 'MWCODE_PREFIX', 'mwcode' ); |
| 18 |
define( 'MWCODE_DOMAIN', 'code-engine' ); |
| 19 |
define( 'MWCODE_ENTRY', __FILE__ ); |
| 20 |
define( 'MWCODE_PATH', dirname( __FILE__ ) ); |
| 21 |
define( 'MWCODE_URL', plugin_dir_url( __FILE__ ) ); |
| 22 |
define( 'MWCODE_ITEM_ID', 23612190 ); |
| 23 |
|
| 24 |
/** |
| 25 |
* Define the database schema for Code Engine. |
| 26 |
* |
| 27 |
* ⚠️ Don't forget to update the version number when you update the schema. |
| 28 |
* (mwcode_db_snippet_version) |
| 29 |
*/ |
| 30 |
define( 'MWCODE_SNIPPET_COLUMNS', [ |
| 31 |
'id' => 'BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT', |
| 32 |
'name' => 'TINYTEXT NOT NULL', |
| 33 |
'description' => 'TEXT NOT NULL', |
| 34 |
'code' => 'LONGTEXT NOT NULL', |
| 35 |
'tags' => 'LONGTEXT NOT NULL', |
| 36 |
'scope' => "VARCHAR(255) NOT NULL DEFAULT ''", |
| 37 |
'priority' => "SMALLINT(6) NOT NULL DEFAULT 10", |
| 38 |
'active' => "TINYINT(1) NOT NULL DEFAULT 0", |
| 39 |
'endpoint' => "VARCHAR(255) NOT NULL DEFAULT ''", |
| 40 |
'token' => "VARCHAR(255) NOT NULL DEFAULT ''", |
| 41 |
'method' => "VARCHAR(15) NOT NULL DEFAULT 'POST'", |
| 42 |
'created' => 'DATETIME NOT NULL', |
| 43 |
'updated' => 'DATETIME NOT NULL', |
| 44 |
]); |
| 45 |
|
| 46 |
|
| 47 |
require_once( 'classes/init.php' ); |
| 48 |
require_once( 'classes/load.php' ); |
| 49 |
|
| 50 |
?> |
| 51 |
|