Plugin Directory

source: code-engine/trunk/code-engine.php

Last change on this file was 3477990, checked in by TigrouMeow, 3 weeks ago

Version 0.4.3.

File size: 1.6 KB
Line 
1<?php
2/*
3Plugin Name: Code Engine
4Plugin URI: https://meowapps.com/code-engine
5Description: Versatile plugin that not only manages PHP code snippets but also acts as a powerful bridge connecting WordPress, AI, and external digital platforms.
6Version: 0.4.3
7Author: Jordy Meow
8Author URI: https://meowapps.com
9Text Domain: code-engine
10
11Dual licensed under the MIT and GPL licenses:
12http://www.opensource.org/licenses/mit-license.php
13http://www.gnu.org/licenses/gpl.html
14*/
15
16define( 'MWCODE_VERSION', '0.4.3' );
17define( 'MWCODE_PREFIX', 'mwcode' );
18define( 'MWCODE_DOMAIN', 'code-engine' );
19define( 'MWCODE_ENTRY', __FILE__ );
20define( 'MWCODE_PATH', dirname( __FILE__ ) );
21define( 'MWCODE_URL', plugin_dir_url( __FILE__ ) );
22define( '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 */
30define( '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
47require_once( 'classes/init.php' );
48require_once( 'classes/load.php' );
49
50?>
Note: See TracBrowser for help on using the repository browser.